diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2005-07-16 20:18:56 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2005-07-16 20:18:56 +0000 |
commit | f6d22a7a638132e7f32c6fb4cc9878c665157058 (patch) | |
tree | 877a6902054cb23021ac8892f07f4ee41def3b69 /net-misc/java-wakeonlan | |
parent | Marked stable on x86. Removed old ebuild. (diff) | |
download | gentoo-2-f6d22a7a638132e7f32c6fb4cc9878c665157058.tar.gz gentoo-2-f6d22a7a638132e7f32c6fb4cc9878c665157058.tar.bz2 gentoo-2-f6d22a7a638132e7f32c6fb4cc9878c665157058.zip |
another package nobody ever merges and was broken
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-misc/java-wakeonlan')
-rw-r--r-- | net-misc/java-wakeonlan/java-wakeonlan-0.3.0.ebuild | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/net-misc/java-wakeonlan/java-wakeonlan-0.3.0.ebuild b/net-misc/java-wakeonlan/java-wakeonlan-0.3.0.ebuild index a623d73194a5..b8d95f5b5ea6 100644 --- a/net-misc/java-wakeonlan/java-wakeonlan-0.3.0.ebuild +++ b/net-misc/java-wakeonlan/java-wakeonlan-0.3.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/java-wakeonlan/java-wakeonlan-0.3.0.ebuild,v 1.6 2005/02/17 17:53:03 luckyduck Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/java-wakeonlan/java-wakeonlan-0.3.0.ebuild,v 1.7 2005/07/16 20:18:56 axxo Exp $ inherit java-pkg @@ -12,29 +12,35 @@ SLOT="0" KEYWORDS="x86 ~ppc ~sparc" IUSE="doc" -DEPEND=">=virtual/jdk-1.3 - >=dev-java/ant-1.4 +RDEPEND=">=virtual/jre-1.3 >=dev-java/commons-logging-1.0.2 - >=dev-java/commons-cli-1.0 + >=dev-java/commons-cli-1.0" +DEPEND=">=virtual/jdk-1.3 + ${RDEPEND} + dev-java/ant-core app-arch/unzip" -RDEPEND=">=virtual/jdk-1.3" S=${WORKDIR}/wakeonlan -src_compile() { - rm lib/commons-cli-1.0.jar - rm lib/commons-logging.jar +src_unpack() { + unpack ${A} + cd ${S}/lib + rm *.jar + java-pkg_jarfrom commons-logging + java-pkg_jarfrom commons-cli-1 +} - CLASSPATH=`java-config --classpath=commons-logging,commons-cli` - ant -Dbuild.classpath=${CLASSPATH} deploy || die - use doc && ant -Dbuild.classpath=${CLASSPATH} javadoc +src_compile() { + local antflags="deploy" + use doc && antflags="${antflags} javadoc" + ant ${antflags} || die } src_install() { java-pkg_dojar deploy/wakeonlan.jar echo "#!/bin/sh" > ${PN} - echo '${JAVA_HOME}'/bin/java -cp '$(java-config -p commons-logging,commons-cli,java-wakeonlan)' wol.WakeOnLan '$*' >> ${PN} + echo '${JAVA_HOME}'/bin/java -cp '$(java-config -p commons-logging,commons-cli-1,java-wakeonlan)' wol.WakeOnLan '$*' >> ${PN} dobin ${PN} dodoc doc/README |