summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-java/guice/Manifest5
-rw-r--r--dev-java/guice/files/guice-2.0-build.xml.patch16
-rw-r--r--dev-java/guice/files/guice-2.0-common.xml.patch21
-rw-r--r--dev-java/guice/guice-2.0.ebuild59
-rw-r--r--dev-java/guice/metadata.xml7
5 files changed, 108 insertions, 0 deletions
diff --git a/dev-java/guice/Manifest b/dev-java/guice/Manifest
new file mode 100644
index 0000000..2437221
--- /dev/null
+++ b/dev-java/guice/Manifest
@@ -0,0 +1,5 @@
+AUX guice-2.0-build.xml.patch 624 SHA256 cb5f8c4021ab7386ffeab33e86c3443b5b88623bdd9e1572770cb1e54110d9f3 SHA512 1619d921e7bb4718ea754ccb3beb7a7facda933c716a87ae063392f7f3b9e3478ce74c50ec6cce12fe23277a48a1831564252293c79577c846fade993079f91d WHIRLPOOL 212332e3cf4e0aacad39d76ba2e90af32e3038d8ee327aa72b4a5a7a027d5fa0c82cd70ef01de5867fef938a9cd0837dc6897de4889da5adf43e020c3efa2eb1
+AUX guice-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 1351 SHA256 e7618a453464af450827c6207fec3b233166efabf5f4540b0cd8951cde5d1eef SHA512 c56417cfc2540483e8e6c3227d83718ff50e9a80c5fb4c6f249f691930db9a1342b33520401bbefe220d8d1145487d3e315d6e8d5efddd6c6b637eaa224acee5 WHIRLPOOL af8791a75e88a6fd88d29504a214dd6b24edfa25fc863e3948c27499cac275cd6d5b44a8f6250d1a273cefe4f6da7aa63429903ef60340a0208b48dd06d66916
+MISC metadata.xml 205 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce SHA512 e7c77c724739d0af43cc338ded09dcbeee2a710eb0e49f1e656dc4c891bee85bfd6935bf70a191a1c5823f473643e676d64970416e5f1820ea466681016757c5 WHIRLPOOL 5b7f0c2a5243244fa06b072c8f0d9f53e7b6f45c7e1b74a0d945bdcc28b7137fddfd58e85b0d3e721e80963916ceae0d4cca59f48114ba26c47b24a91d6abb27
diff --git a/dev-java/guice/files/guice-2.0-build.xml.patch b/dev-java/guice/files/guice-2.0-build.xml.patch
new file mode 100644
index 0000000..4b0e24d
--- /dev/null
+++ b/dev-java/guice/files/guice-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/guice-2.0-common.xml.patch b/dev-java/guice/files/guice-2.0-common.xml.patch
new file mode 100644
index 0000000..f410a64
--- /dev/null
+++ b/dev-java/guice/files/guice-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 0000000..1ed7f55
--- /dev/null
+++ b/dev-java/guice/guice-2.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+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"
+#wasn't tested: IUSE="servletapi"
+IUSE=""
+KEYWORDS="~amd64"
+
+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
+ test? ( dev-java/junit )
+ ${COMMON_DEPEND}"
+
+S="${WORKDIR}"
+
+# TODO make these work
+RESTRICT="test"
+
+JAVA_PKG_BSFIX_NAME="build.xml common.xml servlet/build.xml"
+JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc"
+
+S="${WORKDIR}/${P}-src/"
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_GENTOO_CLASSPATH="aopalliance-1,asm-3,cglib-2.2"
+
+java_prepare() {
+ find . -name '*.jar' -exec rm -v {} +
+ find . -name '*.class' -exec rm -v {} +
+ epatch "${FILESDIR}"/${P}-common.xml.patch
+ epatch "${FILESDIR}"/${P}-build.xml.patch
+}
+
+src_install() {
+ java-pkg_dojar build/${PN}.jar
+
+ use doc && java-pkg_dojavadoc javadoc/
+ use source && java-pkg_dosrc src/com
+}
+
+src_test() {
+ EANT_BUILD_XML="common.xml"
+ java-pkg-2_src_test
+}
diff --git a/dev-java/guice/metadata.xml b/dev-java/guice/metadata.xml
new file mode 100644
index 0000000..80859ae
--- /dev/null
+++ b/dev-java/guice/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>the.dmol@gmail.com</email>
+ </maintainer>
+</pkgmetadata>