diff options
author | Vlastimil Babka <caster@gentoo.org> | 2008-01-15 20:17:10 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2008-01-15 20:17:10 +0000 |
commit | ce54f03df4dea95845f01c350442f3f475829c91 (patch) | |
tree | fee63fef239520e76ff91a505bc5b97ddd608a2e /net-p2p/phex/phex-3.2.0.102.ebuild | |
parent | alpha/ia64/sparc stable wrt #205518 (diff) | |
download | historical-ce54f03df4dea95845f01c350442f3f475829c91.tar.gz historical-ce54f03df4dea95845f01c350442f3f475829c91.tar.bz2 historical-ce54f03df4dea95845f01c350442f3f475829c91.zip |
Version bump, bug #185634. Build from source, most bundled deps removed, few that we don't have package for are left - bug #176739. Added java herd to metadata.xml.
Package-Manager: portage-2.1.4
Diffstat (limited to 'net-p2p/phex/phex-3.2.0.102.ebuild')
-rw-r--r-- | net-p2p/phex/phex-3.2.0.102.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/net-p2p/phex/phex-3.2.0.102.ebuild b/net-p2p/phex/phex-3.2.0.102.ebuild new file mode 100644 index 000000000000..36dbc0616339 --- /dev/null +++ b/net-p2p/phex/phex-3.2.0.102.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/phex/phex-3.2.0.102.ebuild,v 1.1 2008/01/15 20:17:10 caster Exp $ + +inherit java-pkg-2 java-ant-2 + +MY_P="${PN}_${PV}" + +DESCRIPTION="java gnutella file-sharing application" +HOMEPAGE="http://phex.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}_src.zip" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +COMMON_DEPEND="=dev-java/commons-httpclient-3.0* + >=dev-java/commons-logging-1.1 + >=dev-java/jgoodies-forms-1.0.5 + >=dev-java/jgoodies-looks-2.0 + dev-java/log4j + dev-java/l2fprod-common + =dev-java/commons-beanutils-1.7* + dev-java/commons-codec + dev-java/commons-collections + >=dev-java/commons-lang-2.1" + +DEPEND="app-arch/unzip + >=virtual/jdk-1.5 + ${COMMON_DEPEND}" +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPEND}" + +S="${WORKDIR}/${MY_P}_src" + +JAVA_PKG_BSFIX="off" + +src_unpack() { + unpack ${A} + cd "${S}" + + # build macosx gui against the bundled library, but don't install the library + # easier than to patch the gui out, it won't be executed anyway ... + mv lib/MRJAdapter.jar . || die + rm -vf lib/*.jar || die + # avoid patches like plague + sed -i "s/createJar, copyThirdpartyJars/createJar/" build/buildJava.xml || die + JAVA_ANT_REWRITE_CLASSPATH="true" java-ant_bsfix_files build/*.xml + # remove bundled packages that we have - bug #176739 + rm -rf src/com/l2fprod src/org/apache || die +} + +src_compile() { + local gcp="$(java-pkg_getjars commons-httpclient-3,commons-logging,jgoodies-forms,jgoodies-looks-2.0,log4j,l2fprod-common,commons-beanutils-1.7,commons-codec,commons-collections,commons-lang-2.1)" + cd build + eant -Dgentoo.classpath="${gcp}:MRJAdapter.jar" -Dproject.buildtarget=build buildJava +} + +src_install() { + java-pkg_dojar build/lib/${PN}.jar + + java-pkg_dolauncher ${PN} --main phex.Main + + dohtml docs/readme/* || die +} |