summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-04-11 18:37:34 +0000
committerPatrice Clement <monsieurp@gentoo.org>2015-04-11 18:37:34 +0000
commit4fd0d3efe1f8c80ad399af9ca95019f4e500ee1f (patch)
treed98593483a9076039656ab7e7e081d51c12810e4 /dev-java/cglib
parentsci-physics/lammps: Adding new version. (diff)
downloadgentoo-2-4fd0d3efe1f8c80ad399af9ca95019f4e500ee1f.tar.gz
gentoo-2-4fd0d3efe1f8c80ad399af9ca95019f4e500ee1f.tar.bz2
gentoo-2-4fd0d3efe1f8c80ad399af9ca95019f4e500ee1f.zip
Version bump.
Signed-off-by: monsieurp@gentoo.org (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)
Diffstat (limited to 'dev-java/cglib')
-rw-r--r--dev-java/cglib/ChangeLog8
-rw-r--r--dev-java/cglib/cglib-3.1.ebuild59
-rw-r--r--dev-java/cglib/files/cglib-3.1-build.xml.patch36
3 files changed, 102 insertions, 1 deletions
diff --git a/dev-java/cglib/ChangeLog b/dev-java/cglib/ChangeLog
index 9fb535fdf63e..8a2c7edd03ad 100644
--- a/dev-java/cglib/ChangeLog
+++ b/dev-java/cglib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/cglib
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/cglib/ChangeLog,v 1.58 2015/03/27 10:20:10 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/cglib/ChangeLog,v 1.59 2015/04/11 18:37:34 monsieurp Exp $
+
+*cglib-3.1 (11 Apr 2015)
+
+ 11 Apr 2015; Patrice Clement <monsieurp@gentoo.org> +cglib-3.1.ebuild,
+ +files/cglib-3.1-build.xml.patch:
+ Version bump.
27 Mar 2015; Agostino Sarubbo <ago@gentoo.org> cglib-3.0.ebuild:
Stable for x86, wrt bug #543944
diff --git a/dev-java/cglib/cglib-3.1.ebuild b/dev-java/cglib/cglib-3.1.ebuild
new file mode 100644
index 000000000000..3f500a5496e7
--- /dev/null
+++ b/dev-java/cglib/cglib-3.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/cglib/cglib-3.1.ebuild,v 1.1 2015/04/11 18:37:34 monsieurp Exp $
+
+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 ~x86"
+
+IUSE=""
+
+COMMON_DEP="dev-java/asm:4
+ >=dev-java/ant-core-1.7.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" /> -->
+