summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Schmitz <ercpe@gentoo.org>2013-09-25 17:20:15 +0000
committerJohann Schmitz <ercpe@gentoo.org>2013-09-25 17:20:15 +0000
commit5ab51159516ec9e3da15a216217765267c575f6f (patch)
treef3903aa05afc702d105431744dfbf506bc166f51 /dev-java
parentEbuild for guice:2 - lightweight dependency injection framework (diff)
downloadhistorical-5ab51159516ec9e3da15a216217765267c575f6f.tar.gz
historical-5ab51159516ec9e3da15a216217765267c575f6f.tar.bz2
historical-5ab51159516ec9e3da15a216217765267c575f6f.zip
Ebuild for guice:2 - lightweight dependency injection framework
Package-Manager: portage-2.2.1/cvs/Linux x86_64 Manifest-Sign-Key: 0x77C501ED
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/guice/Manifest18
-rw-r--r--dev-java/guice/files/2.0-build.xml.patch16
-rw-r--r--dev-java/guice/files/2.0-common.xml.patch21
-rw-r--r--dev-java/guice/guice-2.0.ebuild51
-rw-r--r--dev-java/guice/metadata.xml9
5 files changed, 113 insertions, 2 deletions
diff --git a/dev-java/guice/Manifest b/dev-java/guice/Manifest
index 1b167d74dc49..6125ccc03c4d 100644
--- a/dev-java/guice/Manifest
+++ b/dev-java/guice/Manifest
@@ -1,6 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX 2.0-build.xml.patch 624 SHA256 cb5f8c4021ab7386ffeab33e86c3443b5b88623bdd9e1572770cb1e54110d9f3 SHA512 1619d921e7bb4718ea754ccb3beb7a7facda933c716a87ae063392f7f3b9e3478ce74c50ec6cce12fe23277a48a1831564252293c79577c846fade993079f91d WHIRLPOOL 212332e3cf4e0aacad39d76ba2e90af32e3038d8ee327aa72b4a5a7a027d5fa0c82cd70ef01de5867fef938a9cd0837dc6897de4889da5adf43e020c3efa2eb1
AUX 2.0-common.xml.patch 1122 SHA256 c68dd2657cf7f056ce60039dbe0f93d3672390adcbb0a2d8a7b7103b8ebd483f SHA512 5689455fc54732e06ca162e937d8acb889cef410e266b5d287b398edaff4a1fe1322bcf9643eff7c3b0c493d19172975bedb5e2d75028329bd4b1d8d9fd140c5 WHIRLPOOL 6bb269abf389a2864206768dfe900487bef42685bba903d66d18b8704e2b96b37167ce7ac21795536cca17508582292afd2bb5962b2a564c9ed24fbecb92f28f
DIST guice-2.0-src.zip 17342981 SHA256 7f836156d9d6b7688d373a4c70971b8b42e3a553e26a8f98a110a868eb749394 SHA512 61e1c5b6bbd7db5017a99b2998b706071717781360ab8d622d163be2cc954d9b34ab8b68d2ab02f29bb1a8b640ac25350dca302c390855641ca3e4cc4438a1b9 WHIRLPOOL 7be8673b603ad1aa722ddb76cefaec5e1d03e9a4199d25cbb1a58a31f89c33ac1d9e0a479951b5412cc2c94504d46afd56f42a57f3d87ef3915554fbf821d506
-EBUILD guice-2.0.ebuild 1192 SHA256 704d76d67a0eaf0b7cee934bffd71c219fdc2ceb11a510a670ff004189e4882e SHA512 6343f64d07dbc1e56a52991eef196548683c6da53f3e4cfba2f5554605da44efb7dee56286a60551971fa50e32ddb8fedc103bb28ec006ca8fde880aaeebdfff WHIRLPOOL b7ba2778d567430b0e2bc0e26a93d6b1513e115a0ae83691f529f45bc5dad4282ce1d2317aa7dd92c98a42c03672453b80981e47b16d5d29bea1e5a71f0b6c79
-MISC ChangeLog 349 SHA256 e4c7a052f40471115b15776c1096d7bcd93c8bf0ce900506446bfb85bbc1dc70 SHA512 b6bd219e6883d7fe5ccb9a006a8b5f811dccae71bf268081ecde5485fe689156b3f6fb6dae46bc21d3f4050cd139e1032c1ffe7bdf90efd6cda8b7c7ec278010 WHIRLPOOL b8ab3063cf6a84dfa3b898d0b0112b71a5bda425cb23386e409c77082dcc5c82837c0d1ec4d905dab2830d803fe335fb916d9eef063df8e4969c8cc02c935b6a
+EBUILD guice-2.0.ebuild 1284 SHA256 ceeadcb5221e0c5f593a11f98666c54bec4ebd520949337947c7df28650f7ecd SHA512 2b12d2e60b252ee57973e12f60eba185ab0ab75e135f562376d6eb5821cff52a9319e5331c0691dae16e210f90d4f841bfe2473ee1bd569c6ac9c861b4daf063 WHIRLPOOL 6b6f59aecb139b41ed9d7b7fe3877f5d838f275aa26a730bebd72a2e727acc71357b3e2ee5e1d6dbd044c58a726058ec05435be3c8d5194374abf33166d16bbe
+MISC ChangeLog 434 SHA256 1ddaede3b96f5f8717c3d428534dc3b05eeacdd48490563d99d72e5ad716632f SHA512 6e2e0be39c9095fa9abdaf89f69ba15d2f1b8c4a3bc04beba80e77a072f0e2243f0ff5b1fa49d52249dd58ae7feb8edf605c0c60fde8ceb9df9c6555280f9528 WHIRLPOOL a949741497886af81024d01c21194535529aadad66791b59bed2d35b6388d42c2c906e56f57c6ada697275a0045139510be19539006b4e5019477e8f4308d88c
MISC metadata.xml 241 SHA256 06abd52331abac969df4f818ffe7047e0cc3fdfc1a243cec03e53b5a665cfdb1 SHA512 2aab29c42487d867d041d8753ad7fa8261f418a14aa8981c169955c6ccca991e1fd5b7c83a451fb1dc724c5a94ac28a552fff7eb9a78ea5988a1916a1803246f WHIRLPOOL c53ad30024ef34350c7759715758ec6b8296d5dcbd322724c0e0c3ee5a3a6f4fbfddd7d2d605bd08d605103c56e05e7e9038e12074a623631d2c542898581850
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.20 (GNU/Linux)
+
+iQEcBAEBCAAGBQJSQxtPAAoJEKCEBkJ3xQHtOzYH/RuOLvioak9cZkCGTvvIC9dP
+Hznfbt0SwXlBZ0AgzRAQjvlMc68Qle3OQlwmtzHHyscvcSW4y+lh+PZ5BPfbc5yK
+Kmqn+ECHzrl60wcbQCAqUVgbGuFJ1sZvRvkUIBYQKekKA2HCOq/1czWhq+LRg6j0
+jSiCSjfL1OFpsyRsdtrZ/iWO/Nghjc+eY1M7BBSsU6bhpKZ1gBRgSVWl4CwI5WgM
+kOAhaI+qpy2VIckIJirLabP75xxtKMn67Hu2cUKpEn2DKXZYZmtgBi7OHa7jNEcn
+zHZSKEa+QIRofiL6w6FCmeWV4S/UcZFI1mb/+DTXGFLAgKnro18eBCqkkJpFm5A=
+=v0kN
+-----END PGP SIGNATURE-----
diff --git a/dev-java/guice/files/2.0-build.xml.patch b/dev-java/guice/files/2.0-build.xml.patch
new file mode 100644
index 000000000000..4b0e24d3951f
--- /dev/null
+++ b/dev-java/guice/files/2.0-build.xml.patch
@@ -0,0 +1,16 @@
+--- /tmp/guice-2.0-src.orig/build.xml 2012-08-23 23:04:55.759642915 +0300
++++ build.xml 2012-08-23 23:30:05.899593954 +0300
+@@ -13,11 +13,8 @@
+ </path>
+
+
+- <target name="jar" depends="jar.withdeps, manifest" description="Build jar.">
+- <jar jarfile="${build.dir}/dist/guice-${version}.jar"
+- manifest="${build.dir}/META-INF/MANIFEST.MF">
+- <zipfileset src="${build.dir}/${ant.project.name}-with-deps.jar"/>
+- </jar>
++ <target name="jar" depends="jar.withdeps" description="Build jar.">
++ <echo>${build.dir}/${ant.project.name}</echo>
+ </target>
+
+ <target name="dist" depends="distjars, javadoc"
diff --git a/dev-java/guice/files/2.0-common.xml.patch b/dev-java/guice/files/2.0-common.xml.patch
new file mode 100644
index 000000000000..f410a6438c06
--- /dev/null
+++ b/dev-java/guice/files/2.0-common.xml.patch
@@ -0,0 +1,21 @@
+--- /tmp/guice-2.0-src.orig/common.xml 2012-08-23 23:28:51.056596381 +0300
++++ common.xml 2012-08-23 23:28:14.416597570 +0300
+@@ -108,17 +108,7 @@
+ <target name="jar.withdeps" depends="compile"
+ description="Build jar with dependencies embedded.">
+ <mkdir dir="${build.dir}/dist"/>
+- <dirname property="common.basedir" file="${ant.file.common}"/>
+- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask"
+- classpath="${common.basedir}/lib/build/jarjar-1.0rc8.jar"/>
+- <jarjar jarfile="${build.dir}/${ant.project.name}-with-deps.jar">
+- <fileset dir="${build.dir}/classes"/>
+- <zipfileset src="${common.basedir}/lib/build/cglib-2.2.1-snapshot.jar"/>
+- <zipfileset src="${common.basedir}/lib/build/asm-3.1.jar"/>
+- <rule pattern="net.sf.cglib.**" result="com.google.inject.internal.cglib.@1"/>
+- <rule pattern="org.objectweb.asm.**" result="com.google.inject.internal.asm.@1"/>
+- <keep pattern="com.google.inject.**"/>
+- </jarjar>
++ <jar destfile="${build.dir}/${ant.project.name}.jar" basedir="${build.dir}/classes" />
+ </target>
+
+ </project>
diff --git a/dev-java/guice/guice-2.0.ebuild b/dev-java/guice/guice-2.0.ebuild
new file mode 100644
index 000000000000..b970dd36e977
--- /dev/null
+++ b/dev-java/guice/guice-2.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/guice/guice-2.0.ebuild,v 1.1 2013/09/25 17:20:14 ercpe Exp $
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Guice is a lightweight dependency injection framework for Java 5 and above"
+HOMEPAGE="http://code.google.com/p/google-guice/"
+SRC_URI="http://google-guice.googlecode.com/files/${P}-src.zip"
+
+LICENSE="Apache-2.0"
+SLOT="2"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+COMMON_DEPEND="dev-java/aopalliance:1
+ dev-java/asm:3
+ dev-java/cglib:2.2"
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEPEND}"
+DEPEND=">=virtual/jdk-1.5
+ ${COMMON_DEPEND}"
+
+S="${WORKDIR}/${P}-src/"
+
+RESTRICT="test"
+
+JAVA_PKG_BSFIX_NAME="build.xml common.xml servlet/build.xml"
+JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc"
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_GENTOO_CLASSPATH="aopalliance-1,asm-3,cglib-2.2"
+
+java_prepare() {
+ find . -name '*.jar' -delete || die
+ find . -name '*.class' -delete || die
+ epatch "${FILESDIR}"/${PV}-common.xml.patch
+ epatch "${FILESDIR}"/${PV}-build.xml.patch
+}
+
+src_install() {
+ java-pkg_dojar build/${PN}.jar
+
+ use doc && java-pkg_dojavadoc javadoc/
+ use source && java-pkg_dosrc src/com
+}
diff --git a/dev-java/guice/metadata.xml b/dev-java/guice/metadata.xml
new file mode 100644
index 000000000000..32433bd1dedb
--- /dev/null
+++ b/dev-java/guice/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <upstream>
+ <remote-id type="google-code">google-guice</remote-id>
+ </upstream>
+</pkgmetadata>
+