summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Schmitz <ercpe@gentoo.org>2013-09-25 17:20:14 +0000
committerJohann Schmitz <ercpe@gentoo.org>2013-09-25 17:20:14 +0000
commitdc164f42be4d1a45b89b1f66579e291342bcff12 (patch)
tree1446cc5517b2c033271fc63b1397bcc29e6037da /dev-java/guice
parentStable for ppc, wrt bug #485128 (diff)
downloadgentoo-2-dc164f42be4d1a45b89b1f66579e291342bcff12.tar.gz
gentoo-2-dc164f42be4d1a45b89b1f66579e291342bcff12.tar.bz2
gentoo-2-dc164f42be4d1a45b89b1f66579e291342bcff12.zip
Ebuild for guice:2 - lightweight dependency injection framework
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 77C501ED)
Diffstat (limited to 'dev-java/guice')
-rw-r--r--dev-java/guice/ChangeLog9
-rw-r--r--dev-java/guice/Manifest6
-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
6 files changed, 112 insertions, 0 deletions
diff --git a/dev-java/guice/ChangeLog b/dev-java/guice/ChangeLog
new file mode 100644
index 000000000000..f8a19adb4cf0
--- /dev/null
+++ b/dev-java/guice/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-java/guice
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/guice/ChangeLog,v 1.1 2013/09/25 17:20:14 ercpe Exp $
+
+*guice-2.0 (25 Sep 2013)
+
+ 25 Sep 2013; Johann Schmitz <ercpe@gentoo.org> +files/2.0-build.xml.patch,
+ +files/2.0-common.xml.patch, +guice-2.0.ebuild, +metadata.xml:
+ Ebuild for guice:2 - lightweight dependency injection framework
diff --git a/dev-java/guice/Manifest b/dev-java/guice/Manifest
new file mode 100644
index 000000000000..1b167d74dc49
--- /dev/null
+++ b/dev-java/guice/Manifest
@@ -0,0 +1,6 @@
+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
+MISC metadata.xml 241 SHA256 06abd52331abac969df4f818ffe7047e0cc3fdfc1a243cec03e53b5a665cfdb1 SHA512 2aab29c42487d867d041d8753ad7fa8261f418a14aa8981c169955c6ccca991e1fd5b7c83a451fb1dc724c5a94ac28a552fff7eb9a78ea5988a1916a1803246f WHIRLPOOL c53ad30024ef34350c7759715758ec6b8296d5dcbd322724c0e0c3ee5a3a6f4fbfddd7d2d605bd08d605103c56e05e7e9038e12074a623631d2c542898581850
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>
+