diff options
Diffstat (limited to 'pcr/java-asm')
-rw-r--r-- | pcr/java-asm/PKGBUILD | 97 | ||||
-rw-r--r-- | pcr/java-asm/java-asm-remove_bnd.patch | 174 | ||||
-rw-r--r-- | pcr/java-asm/java-asm-rm_sigtest.patch | 75 |
3 files changed, 346 insertions, 0 deletions
diff --git a/pcr/java-asm/PKGBUILD b/pcr/java-asm/PKGBUILD new file mode 100644 index 000000000..3f8c2236f --- /dev/null +++ b/pcr/java-asm/PKGBUILD @@ -0,0 +1,97 @@ +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +_pkgname=asm +pkgname=java-${_pkgname} +pkgver=5.0.4 +pkgrel=1 +pkgdesc="An all purpose Java bytecode manipulation and analysis framework" +arch=('any') +url="http://asm.ow2.org/" +license=('BSD') +depends=('java-runtime') +makedepends=('apache-ant' 'java-ow-util-ant-tasks' 'jh') +provides=("${pkgname}4") +replaces=("${pkgname}4") +source=("https://download.forge.ow2.org/${_pkgname}/${_pkgname}-${pkgver}.tar.gz" + "https://anonscm.debian.org/cgit/pkg-java/lib${_pkgname}4-java.git/plain/debian/osgi/${_pkgname}-all.osgi" + "https://anonscm.debian.org/cgit/pkg-java/lib${_pkgname}4-java.git/plain/debian/osgi/${_pkgname}-analysis.osgi" + "https://anonscm.debian.org/cgit/pkg-java/lib${_pkgname}4-java.git/plain/debian/osgi/${_pkgname}-commons.osgi" + "https://anonscm.debian.org/cgit/pkg-java/lib${_pkgname}4-java.git/plain/debian/osgi/${_pkgname}-debug-all.osgi" + "https://anonscm.debian.org/cgit/pkg-java/lib${_pkgname}4-java.git/plain/debian/osgi/${_pkgname}-tree.osgi" + "https://anonscm.debian.org/cgit/pkg-java/lib${_pkgname}4-java.git/plain/debian/osgi/${_pkgname}-util.osgi" + "https://anonscm.debian.org/cgit/pkg-java/lib${_pkgname}4-java.git/plain/debian/osgi/${_pkgname}-xml.osgi" + "https://anonscm.debian.org/cgit/pkg-java/lib${_pkgname}4-java.git/plain/debian/osgi/${_pkgname}.osgi" + "java-asm-remove_bnd.patch" + "java-asm-rm_sigtest.patch") +md5sums=('bc328e4336a4fc30636b395b7f8081f3' + 'e9642186799f0b84a566fdf5f7fa3316' + '482e376fdab1748bd6752f393d06785c' + 'd1106e99bd3cd95276de3e2486c52ca8' + 'a2628c0dcf771135d2d6df89d0adcc34' + '2181f546ffd31355fb2b4edb4ff1e041' + '713b3705dd6ae1ca85e739c090fe61a6' + '40df5b93d559f9adf0dbdd4b42906b09' + 'b98f5fbd36e71efdaa5989fe683214cc' + 'c3518a026924311bf9b626dc83ccdc74' + '19f97cfd07a888271a13b22b3aea05b6') + +_ow_util_ant_tasks='/usr/share/java/ow_util_ant_tasks.jar' + +prepare() { + cd "${srcdir}/${_pkgname}-${pkgver}" + cp -v ../{asm,asm-{all,analysis,commons,debug-all,tree,util,xml}}.osgi archive + patch -Np1 -i "${srcdir}/java-asm-remove_bnd.patch" + patch -Np1 -i "${srcdir}/java-asm-rm_sigtest.patch" +} + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + echo "objectweb.ant.tasks.path ${_ow_util_ant_tasks}" >> build.properties + ant dist +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + # Install license file + install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" + + # Install documentation + install -d "${pkgdir}/usr/share/doc/${pkgname}" + cp -r output/dist/doc/javadoc/user "${pkgdir}/usr/share/doc/${pkgname}/javadoc" + cp -r output/dist/examples "${pkgdir}/usr/share/doc/${pkgname}/examples" + + # Install Maven artifacts + export DESTDIR=${pkgdir} + for artifact in $(find "output/dist/lib" -name \*.pom | sed 's/\.\///' | sed 's/-[0-9.]*\.pom$//'); do + # Set artifactId + _artifact=${artifact##*/} + + # Set mvn-basename to different versions + base=$(jh mvn-basename "org.ow2.asm" ${_artifact} ${pkgver}) + _base=${base//${pkgver}/4.x} + install -d "${pkgdir}${_base%/*}" + + if [[ -f ${artifact}-${pkgver}.jar ]]; then + # This artifact has a jar file + jh mvn-install "org.ow2.asm" ${_artifact} ${pkgver} \ + "${artifact}-${pkgver}."{pom,jar} \ + "${_artifact}-4.jar" + ln -s "/usr/share/java/${_artifact}-4.jar" \ + "${pkgdir}/usr/share/java/${_artifact}-${pkgver}.jar" + + # Jar symlink + ln -s "${base}.jar" \ + "${pkgdir}${_base}.jar" + else + # This artifact is just a pom + jh mvn-install "org.ow2.asm" ${_artifact} ${pkgver} \ + "${artifact}-${pkgver}.pom" + fi + + # Pom symlink + ln -s "${base}.pom" \ + "${pkgdir}${_base}.pom" + done +} diff --git a/pcr/java-asm/java-asm-remove_bnd.patch b/pcr/java-asm/java-asm-remove_bnd.patch new file mode 100644 index 000000000..d2212eefc --- /dev/null +++ b/pcr/java-asm/java-asm-remove_bnd.patch @@ -0,0 +1,174 @@ +--- asm-5.0.4.orig/archive/asm.xml 2015-05-15 09:37:24.000000000 -0500 ++++ asm-5.0.4/archive/asm.xml 2015-09-12 00:40:39.702197123 -0500 +@@ -33,15 +33,10 @@ + <target name="dist" depends="build-jar,build-snapshot"/> + + <target name="build-jar"> +- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${config}/biz.aQute.bnd.jar"/> +- <bnd +- classpath="${out.build}" +- eclipse="true" +- failok="false" +- exceptions="true" +- files="archive/asm.bnd" +- output="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar"/> +- ++ <jar destfile="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar" ++ basedir="${out.build}" manifest="archive/${ant.project.name}.osgi" ++ includes="org/objectweb/asm/*,org/objectweb/asm/signature/*" ++ excludes="tmp/**"/> + <copy file="${archive}/asm.pom" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.name@" value="${ant.project.name}"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.artifact@" value="${product.artifact}"/> +--- asm-5.0.4.orig/archive/asm-all.xml 2015-05-15 09:37:24.000000000 -0500 ++++ asm-5.0.4/archive/asm-all.xml 2015-09-12 00:43:15.974683899 -0500 +@@ -34,15 +34,9 @@ + + <target name="build-jar"> + <mkdir dir="${out.dist.lib}/all"/> +- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${config}/biz.aQute.bnd.jar"/> +- <bnd +- classpath="${out.build}" +- eclipse="true" +- failok="false" +- exceptions="true" +- files="archive/asm-all.bnd" +- output="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.jar"/> +- ++ <jar destfile="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.jar" ++ basedir="${out.build}" manifest="archive/${ant.project.name}.osgi" ++ excludes="tmp/**,org/objectweb/asm/optimizer**"/> + <copy file="${archive}/asm-all.pom" toFile="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.pom"/> + <replace file="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.pom" token="@product.name@" value="${ant.project.name}"/> + <replace file="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.pom" token="@product.artifact@" value="${product.artifact}"/> +--- asm-5.0.4.orig/archive/asm-analysis.xml 2015-05-15 09:37:24.000000000 -0500 ++++ asm-5.0.4/archive/asm-analysis.xml 2015-09-12 00:46:21.293679991 -0500 +@@ -33,15 +33,10 @@ + <target name="dist" depends="build-jar,build-snapshot"/> + + <target name="build-jar"> +- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${config}/biz.aQute.bnd.jar"/> +- <bnd +- classpath="${out.build}" +- eclipse="true" +- failok="false" +- exceptions="true" +- files="archive/asm-analysis.bnd" +- output="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar"/> +- ++ <jar destfile="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar" ++ basedir="${out.build}" manifest="archive/${ant.project.name}.osgi" ++ includes="org/objectweb/asm/tree/analysis/*" ++ excludes="tmp/**"/> + <copy file="${archive}/asm-analysis.pom" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.name@" value="${ant.project.name}"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.artifact@" value="${product.artifact}"/> +--- asm-5.0.4.orig/archive/asm-commons.xml 2015-05-15 09:37:24.000000000 -0500 ++++ asm-5.0.4/archive/asm-commons.xml 2015-09-12 00:47:33.099957670 -0500 +@@ -33,15 +33,10 @@ + <target name="dist" depends="build-jar,build-snapshot"/> + + <target name="build-jar"> +- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${config}/biz.aQute.bnd.jar"/> +- <bnd +- classpath="${out.build}" +- eclipse="true" +- failok="false" +- exceptions="true" +- files="archive/asm-commons.bnd" +- output="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar"/> +- ++ <jar destfile="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar" ++ basedir="${out.build}" manifest="archive/${ant.project.name}.osgi" ++ includes="org/objectweb/asm/commons/*" ++ excludes="tmp/**"/> + <copy file="${archive}/asm-commons.pom" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.name@" value="${ant.project.name}"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.artifact@" value="${product.artifact}"/> +--- asm-5.0.4.orig/archive/asm-debug-all.xml 2015-05-15 09:37:24.000000000 -0500 ++++ asm-5.0.4/archive/asm-debug-all.xml 2015-09-12 01:02:18.168496421 -0500 +@@ -34,15 +34,9 @@ + + <target name="build-jar"> + <mkdir dir="${out.dist.lib}/all"/> +- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${config}/biz.aQute.bnd.jar"/> +- <bnd +- classpath="${out.build}/tmp" +- eclipse="true" +- failok="false" +- exceptions="true" +- files="archive/asm-debug-all.bnd" +- output="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.jar"/> +- ++ <jar destfile="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.jar" ++ basedir="${out.build}" manifest="archive/${ant.project.name}.osgi" ++ excludes="tmp/**,org/objectweb/asm/optimizer**"/> + <copy file="${archive}/asm-debug-all.pom" toFile="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.pom"/> + <replace file="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.pom" token="@product.name@" value="${ant.project.name}"/> + <replace file="${out.dist.lib}/all/${ant.project.name}-${product.artifact}.pom" token="@product.artifact@" value="${product.artifact}"/> +--- asm-5.0.4.orig/archive/asm-tree.xml 2015-05-15 09:37:24.000000000 -0500 ++++ asm-5.0.4/archive/asm-tree.xml 2015-09-12 00:51:45.141925645 -0500 +@@ -33,15 +33,10 @@ + <target name="dist" depends="build-jar,build-snapshot"/> + + <target name="build-jar"> +- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${config}/biz.aQute.bnd.jar"/> +- <bnd +- classpath="${out.build}" +- eclipse="true" +- failok="false" +- exceptions="true" +- files="archive/asm-tree.bnd" +- output="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar"/> +- ++ <jar destfile="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar" ++ basedir="${out.build}" manifest="archive/${ant.project.name}.osgi" ++ includes="org/objectweb/asm/tree/*" ++ excludes="tmp/**"/> + <copy file="${archive}/asm-tree.pom" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.name@" value="${ant.project.name}"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.artifact@" value="${product.artifact}"/> +--- asm-5.0.4.orig/archive/asm-util.xml 2015-05-15 09:37:24.000000000 -0500 ++++ asm-5.0.4/archive/asm-util.xml 2015-09-12 01:03:14.101526755 -0500 +@@ -33,15 +33,10 @@ + <target name="dist" depends="build-jar,build-snapshot"/> + + <target name="build-jar"> +- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${config}/biz.aQute.bnd.jar"/> +- <bnd +- classpath="${out.build}" +- eclipse="true" +- failok="false" +- exceptions="true" +- files="archive/asm-util.bnd" +- output="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar"/> +- ++ <jar destfile="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar" ++ basedir="${out.build}" manifest="archive/${ant.project.name}.osgi" ++ includes="org/objectweb/asm/util/*" ++ excludes="tmp/**"/> + <copy file="${archive}/asm-util.pom" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.name@" value="${ant.project.name}"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.artifact@" value="${product.artifact}"/> +--- asm-5.0.4.orig/archive/asm-xml.xml 2015-05-15 09:37:24.000000000 -0500 ++++ asm-5.0.4/archive/asm-xml.xml 2015-09-12 00:54:49.180928671 -0500 +@@ -33,15 +33,10 @@ + <target name="dist" depends="build-jar,build-snapshot"/> + + <target name="build-jar"> +- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${config}/biz.aQute.bnd.jar"/> +- <bnd +- classpath="${out.build}" +- eclipse="true" +- failok="false" +- exceptions="true" +- files="archive/asm-xml.bnd" +- output="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar"/> +- ++ <jar destfile="${out.dist.lib}/${ant.project.name}-${product.artifact}.jar" ++ basedir="${out.build}" manifest="archive/${ant.project.name}.osgi" ++ includes="org/objectweb/asm/xml/*" ++ excludes="tmp/**"/> + <copy file="${archive}/asm-xml.pom" toFile="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.name@" value="${ant.project.name}"/> + <replace file="${out.dist.lib}/${ant.project.name}-${product.artifact}.pom" token="@product.artifact@" value="${product.artifact}"/> diff --git a/pcr/java-asm/java-asm-rm_sigtest.patch b/pcr/java-asm/java-asm-rm_sigtest.patch new file mode 100644 index 000000000..e5fbd911b --- /dev/null +++ b/pcr/java-asm/java-asm-rm_sigtest.patch @@ -0,0 +1,75 @@ +--- asm-5.0.4.orig/build.xml 2015-05-15 09:37:28.000000000 -0500 ++++ asm-5.0.4/build.xml 2015-09-12 02:09:55.543183528 -0500 +@@ -490,7 +490,7 @@ + </target> + --> + +- <target name="dist" depends="jar,sigtest,jdoc,examples"> ++ <target name="dist" depends="jar,jdoc,examples"> + <zip zipFile="${out.dist}/src.zip" basedir="${src}" excludes="**/optimizer/**/*" /> + </target> + +@@ -539,18 +539,6 @@ + <fileset dir="${src}" excludes="**/optimizer/**/*" /> + </jar> + </target> +- +- <!-- ================================== --> +- <!-- ===== BINARY COMPATIBILITY ==== --> +- <!-- ================================== --> +- +- <target name="sigtest-setup" depends="jar"> +- <ant antfile="${test}/build.xml" target="sigtest-setup" inheritRefs="true" /> +- </target> +- +- <target name="sigtest" depends="jar"> +- <ant antfile="${test}/build.xml" target="sigtest" inheritRefs="true" /> +- </target> + + <!-- =================================== --> + <!-- ========== CLEAN ========== --> +--- asm-5.0.4.orig/test/build.xml 2015-05-15 09:37:31.000000000 -0500 ++++ asm-5.0.4/test/build.xml 2015-09-12 02:10:51.599546527 -0500 +@@ -208,42 +208,5 @@ + <report todir="${out.test}/reports"/> + </junitreport--> + </target> +- +- <!-- ================================== --> +- <!-- ===== BINARY COMPATIBILITY ==== --> +- <!-- ================================== --> +- +- <target name="sigtest-setup"> +- <java classname="com.sun.tdk.signaturetest.Setup"> +- <classpath> +- <pathelement location="${test}/lib/sigtestdev.jar"/> +- </classpath> +- <arg value="-apiversion"/> +- <arg value="${product.artifact}"/> +- <arg value="-static"/> +- <arg value="-classpath"/> +- <arg value="${java.home}/lib/rt.jar;${out.dist}/lib/all/asm-all-${product.artifact}.jar"/> +- <arg value="-package"/> +- <arg value="org.objectweb.asm"/> +- <arg value="-filename"/> +- <arg value="${test}/ASM.sig"/> +- </java> +- </target> +- +- <target name="sigtest"> +- <taskdef name="atest" classname="com.sun.tdk.signaturetest.ant.ATest" +- classpath="${test}/lib/sigtestdev.jar"/> +- <atest filename="${test}/ASM.sig" +- apiversion="${product.artifact}" +- backward="true" +- binary="true" +- failonerror="true"> +- <package name="org.objectweb.asm"/> +- <classpath> +- <pathelement location="${java.home}/lib/rt.jar"/> +- <pathelement location="${out.dist}/lib/all/asm-all-${product.artifact}.jar"/> +- </classpath> +- </atest> +- </target> + + </project> |