summaryrefslogtreecommitdiff
path: root/dev-java/cglib
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/cglib')
-rw-r--r--dev-java/cglib/Manifest6
-rw-r--r--dev-java/cglib/cglib-3.1.ebuild58
-rw-r--r--dev-java/cglib/files/cglib-3.1-build.xml.patch36
-rw-r--r--dev-java/cglib/metadata.xml17
4 files changed, 117 insertions, 0 deletions
diff --git a/dev-java/cglib/Manifest b/dev-java/cglib/Manifest
new file mode 100644
index 000000000000..96e271818a0e
--- /dev/null
+++ b/dev-java/cglib/Manifest
@@ -0,0 +1,6 @@
+AUX cglib-3.1-build.xml.patch 1864 SHA256 32038e3fc9250631ba5cab909a442470b847ea3f9e4c096434066e95ce33e147 SHA512 609cf02dd64fe57307ad9571f8b7d4bc3c7f9b452ce755fa968870fc252df08c985b5dc12647f8c543e39d57a01b532a4188d5ffc07359ddfc7967d32dfd978b WHIRLPOOL bc5118e74512cc104e11fe06f52a356cc6f1660c75f9e51a91b301dad2a935d30df20da54b4f2aff65767716d6a26e9ac0c2d687c392cd4de2801899cbd7aee6
+DIST cglib-src-3.1.jar 1541525 SHA256 386f9a55ae8fed3cf8014f2c20344ce9ce05cd2e4fa467e5e4d8027abb3d62eb SHA512 3b246b37f1c90acaefd4ba64f1f1db0b4d1fa64025f0e4e216ae7955e05701671bf8dc01d19c754286966cc5f8c06d78d02cb4f4500542f4448656768109c13f WHIRLPOOL e3a865296790e1de31889e7624797418392466f7756567382fa9c0b1108d386ee848be2e6b4e96db206101cde8d0320293e58d0b83e0a5a7633afc46b3a37e22
+EBUILD cglib-3.1.ebuild 1127 SHA256 f40303d0aa38aeb981952d33bf98c42cf57fa2f5cc63988fef666aaa2d1f93ef SHA512 59d439cc175332afe47931b43cf10c65e5fa46ccf81a6fad57059bb0dbad6e9f22f2ab4d51f8bf068449c0be7f180a1dbffb84aba69bf4a84f4e76cbdb2b1cfd WHIRLPOOL 6d2c952119e775c5c9606f041d1c80e534a27ddb2b73e799b4aa5f4cee0a17c3e7b7722bfa2837ffa83f7bb65d8ca2d1dc49ec97fc5bd5ccc5670fd263869de7
+MISC ChangeLog 3500 SHA256 3865daea339273ef6afe8a32e8bb8877eb1a7782ee47e47c2a165c6978f43131 SHA512 905e2154abf5e468e33b0337754e98c745caf2777527f23aa9af3acec4176124a6804e0b950bda7b081ce1cc0a571e6d9d0c8d5f96453a6f4cd7a1ff1afcb241 WHIRLPOOL de33b7b22e55f7892788042298e767f96cbbb7342583ca8a67316a42453877dc53f6f699d83e56d0353d1a1dc83c70607e1b95c9f9353480d6ff0eade0d8f533
+MISC ChangeLog-2015 9389 SHA256 c967df33b8edfcd1535890aba7b7e8c3396d9c94791758af2010f6f37dbaf547 SHA512 618576d597bfc16a45d1b6b12beabb28e468551e679aa2fe6fff888b10436e789f3f34bddc7cf1bff8b33f198aae6e9a092bf1ec40de8e284f675cefc2b17e58 WHIRLPOOL 0d020bef7b87e18153e4f1df919cf788d9f0ed8fb29c6fca3529e7d89ab3d83235a7783c1725a0e6efebf1a5e29ec518681f694d4f74e06af9f0afbda8dc444f
+MISC metadata.xml 554 SHA256 d9c9dbc3e33e617931729ef2605c1433285750a6c97c06078f296578813a9d63 SHA512 480a6d306dd997a40cc695c42a4d51d12cd1ba131b5b3d80b4ca18ec751ba3dcf2394cb139c4c1a06ad98da30127c65c65eab036aaca167f46a6b63336f2c7ec WHIRLPOOL 406df8b2368cafcc674dcd91c8ba9aa5340a7afab8ca5d43de00dd98aa4cacdf672b6fe4c417f889817d254885f27529b9cff84b2b6b14e69f06172bdef0def8
diff --git a/dev-java/cglib/cglib-3.1.ebuild b/dev-java/cglib/cglib-3.1.ebuild
new file mode 100644
index 000000000000..88dbbfbb6dd9
--- /dev/null
+++ b/dev-java/cglib/cglib-3.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc examples source test"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="cglib is a powerful, high performance and quality Code Generation Library"
+HOMEPAGE="https://github.com/cglib/cglib"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.jar"
+
+LICENSE="Apache-2.0"
+SLOT="3"
+KEYWORDS="amd64 ~arm64 ppc64 x86"
+
+IUSE=""
+
+COMMON_DEP="dev-java/asm:4
+ dev-java/ant-core:0"
+RDEPEND=">=virtual/jre-1.6
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.6
+ test? ( dev-java/junit:4 )
+ ${COMMON_DEP}"
+
+S="${WORKDIR}"
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_GENTOO_CLASSPATH="asm-4 ant-core"
+
+java_prepare() {
+ find . -iname '*.jar' -delete || die
+
+ # Get rid of some parts in XML.
+ epatch "${FILESDIR}"/${P}-build.xml.patch
+}
+
+src_install() {
+ java-pkg_newjar dist/${P}.jar ${PN}.jar
+
+ if use doc; then
+ java-pkg_dojavadoc docs
+ fi
+
+ if use source; then
+ java-pkg_dosrc src/proxy/net
+ fi
+
+ if use examples; then
+ java-pkg_doexamples --subdir samples src/proxy/samples
+ fi
+}
+
+src_test() {
+ java-pkg-2_src_test
+}
diff --git a/dev-java/cglib/files/cglib-3.1-build.xml.patch b/dev-java/cglib/files/cglib-3.1-build.xml.patch
new file mode 100644
index 000000000000..0bf60be7b014
--- /dev/null
+++ b/dev-java/cglib/files/cglib-3.1-build.xml.patch
@@ -0,0 +1,36 @@
+--- build.xml.orig 2015-04-11 20:26:25.459688628 +0200
++++ build.xml 2015-04-11 20:28:41.930026892 +0200
+@@ -73,7 +73,7 @@
+ <target depends="prepare" description="Compile shareable components"
+ name="compile">
+ <javac debug="${compile.debug}" deprecation="${compile.deprecation}" destdir="${build.home}/classes" optimize="${compile.optimize}" srcdir="${source.home}"
+- target="${compile.target}" bootclasspath="${compile.bootclasspath}" extdirs="${compile.extdirs}" source="${compile.source}">
++ target="${compile.target}" extdirs="${compile.extdirs}" source="${compile.source}">
+ <classpath refid="compile.classpath"/>
+ <compilerarg compiler="jikes" value="-nowarn"/>
+ </javac>
+@@ -123,15 +123,6 @@
+ <include name="**/*"/>
+ <exclude name="samples/**" />
+ </jar>
+-
+- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="compile.classpath"/>
+- <jarjar basedir="${build.home}/classes" jarfile="${dist.home}/${component.name}-nodep-${component.version}.jar" >
+- <zipfileset dir="lib" includes="asm*.txt"/>
+- <zipfileset src="lib/asm-4.2.jar" excludes="META-INF"/>
+- <rule pattern="org.objectweb.asm.**" result="net.sf.cglib.asm.@1"/>
+- <include name="**/*"/>
+- <exclude name="samples/**"/>
+- </jarjar>
+ </target>
+
+ <target depends="compile,javadoc" description="Create docs and source distribution" name="srcjar">
+@@ -246,7 +237,7 @@
+ <!-- <jvmarg value="-verbose:class"/> -->
+ <!-- <jvmarg value="-Xprof"/> -->
+ <!-- <jvmarg value="-server"/> -->
+- <!-- <sysproperty key="cglib.debugLocation" value="debug"/> -->
++ <sysproperty key="cglib.debugLocation" value="debug"/>
+ <!-- <jvmarg value="-Djava.security.policy==java.policy" /> -->
+ <!-- <jvmarg value="-Djava.security.manager" /> -->
+
diff --git a/dev-java/cglib/metadata.xml b/dev-java/cglib/metadata.xml
new file mode 100644
index 000000000000..5f26effad5fd
--- /dev/null
+++ b/dev-java/cglib/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription>
+ cglib is a powerful, high performance and quality Code Generation
+ Library, It is used to extend JAVA classes and implements interfaces
+ at runtime.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">cglib/cglib</remote-id>
+ <remote-id type="sourceforge">cglib</remote-id>
+ </upstream>
+</pkgmetadata>