diff options
-rw-r--r-- | net-p2p/phex/ChangeLog | 12 | ||||
-rw-r--r-- | net-p2p/phex/files/digest-phex-3.2.0.102 | 3 | ||||
-rw-r--r-- | net-p2p/phex/metadata.xml | 1 | ||||
-rw-r--r-- | net-p2p/phex/phex-3.2.0.102.ebuild | 64 |
4 files changed, 78 insertions, 2 deletions
diff --git a/net-p2p/phex/ChangeLog b/net-p2p/phex/ChangeLog index 7e267a01703f..038288d94e2a 100644 --- a/net-p2p/phex/ChangeLog +++ b/net-p2p/phex/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-p2p/phex -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/phex/ChangeLog,v 1.11 2007/07/21 09:47:27 betelgeuse Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/phex/ChangeLog,v 1.12 2008/01/15 20:17:10 caster Exp $ + +*phex-3.2.0.102 (15 Jan 2008) + + 15 Jan 2008; Vlastimil Babka <caster@gentoo.org> metadata.xml, + +phex-3.2.0.102.ebuild: + 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. 21 Jul 2007; Petteri Räty <betelgeuse@gentoo.org> phex-3.0.0.99.ebuild: Change RDEPEND from >=dev-java/jgoodies-looks-1.3.2 to >=2.0 because this diff --git a/net-p2p/phex/files/digest-phex-3.2.0.102 b/net-p2p/phex/files/digest-phex-3.2.0.102 new file mode 100644 index 000000000000..2e643c33eb3a --- /dev/null +++ b/net-p2p/phex/files/digest-phex-3.2.0.102 @@ -0,0 +1,3 @@ +MD5 bcb61203ef343a5a302b10ad04b05268 phex_3.2.0.102_src.zip 5416827 +RMD160 6c9e359aac0b1786333b25f20699a4e6bd61a782 phex_3.2.0.102_src.zip 5416827 +SHA256 e5b6316a3e60c68949ca33321804ae9473858f7d65d5fb59275a4f0e7a64eda9 phex_3.2.0.102_src.zip 5416827 diff --git a/net-p2p/phex/metadata.xml b/net-p2p/phex/metadata.xml index aa0f3664825f..5466afb2ddd8 100644 --- a/net-p2p/phex/metadata.xml +++ b/net-p2p/phex/metadata.xml @@ -2,4 +2,5 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>net-p2p</herd> +<herd>java</herd> </pkgmetadata> 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 +} |