diff options
Diffstat (limited to 'dev-java/hamcrest-integration')
4 files changed, 144 insertions, 0 deletions
diff --git a/dev-java/hamcrest-integration/Manifest b/dev-java/hamcrest-integration/Manifest new file mode 100644 index 000000000000..61f811f3254a --- /dev/null +++ b/dev-java/hamcrest-integration/Manifest @@ -0,0 +1,6 @@ +AUX 1.3-remove-targets.patch 3721 SHA256 b998aeaf914535d01802981fa7c7b0b94277c89dfeb5e22c83f677b156083ff9 SHA512 1af75ef60b6a6ac6a24d4725c548b34493968fd67d93c192867d9da6fa79c26a25ee68f1b2987008160100052d22aca5fde9440133566a55d630b241579f2463 WHIRLPOOL 30a4226f0edb0bdc5b184345c19db4cd37ce57aa25eb0b1b6e18e83d0f023ca64c62ecdd8887c08d9848efef99a1b5694bbecdd96a63981736b867d9ecb07ed9 +DIST hamcrest-1.3.tgz 3686096 SHA256 c6428e40d069fff3f99780efaae96c35ebdbf7cbfd475504254ebffcc19620c2 SHA512 5672bc627bc71d6fd64b6f776b89ac16ed68819fa4a0748c1250b57f1065c1e7e18ba184d9fe3392e54000ddeb353d0d8d67f4eecdf464974563f05c6b226fc2 WHIRLPOOL 9edc85f8d988ba9e7d080e3240d02956775bb73857903a2ec2a72e80d5a1b8570111c97d7b9906951273a1a1db6213a77de9cc2c55a6c73246d45157fed11ed9 +EBUILD hamcrest-integration-1.3.ebuild 1289 SHA256 eafb1f0307fef00a5815023d977983d8673d7f49c733e19b532f1d7cdc1898fd SHA512 6c145ecf5215028ec16eb7605182f6ea257427d09e4350f55f8a33b98b5ad65e6db5d5239c3d217df4d2536fe90cb8d34380ce2d8a551d8e971bcf8b8f95ef7a WHIRLPOOL 7da9b62cc979ecff365f61a803ee1ce3c79d6c9174cc566a2d83e1bec822e1e4b01b078ad52a9ee946cf13f7a2cc2c04b7738523074141f04ed29c112233a8b4 +MISC ChangeLog 3406 SHA256 7faf4c89ff1b2534ce667082a66ee5b99b5f8cd842ab36c5a347cb3095ced761 SHA512 4f05a6def9de1a8572e1d7494592bf7907d97ca1f87da65df92b5cc0cdbff31aebce5e9ba9017aeb9ac852a6c82c67f235ebdf46d10eb7c528eb141f5db8f744 WHIRLPOOL cdb125a20cea9a14cd94fe2d6281c1826c51f4d10ed251c744787109295ba80d9230baead30ef15accbd730d6cc34de06a51fd99201fcd9dcd314eaf0bdc884b +MISC ChangeLog-2015 1030 SHA256 22014b71c80139ed9c37042069b52aee00f565dbd19719605c107cc2bd0442a2 SHA512 bd7b3a2f057d5b72dc7ab377fd239877389f7fa6a006ed000a4d0400de50cd2835dde47a63f45ee928c056a4ddddb7bea9aa08fbd51cae14df498d104fae16c8 WHIRLPOOL 699c7330e9d9e5e9106fbd54dad10eb9c7f228373dbd194b08681dbb5a12a9607a55dbb27c4893a8ec38831492b5236a1207cd9886d412653451262e1e3ccdca +MISC metadata.xml 310 SHA256 40a5944596db062a145437ba8202992f4d1c495d11a25f6ca2381172092afca7 SHA512 04a1836dd5ab9e764bdde86a1944830b3e272ecba3a6ae7ee84e8128edeff96b5936bf3a7dcd133171b97ab1feac4a2ff639951168d0937e7b76a6958e566cef WHIRLPOOL 04a904b7ef2c714ab03b7c55e00a5457fc01bc6d91d64dc7d8ae17461d154a567dc408092fd65f0a5e1b7b261be03b58340da7a1bf81fb2b2612eff55ae04d53 diff --git a/dev-java/hamcrest-integration/files/1.3-remove-targets.patch b/dev-java/hamcrest-integration/files/1.3-remove-targets.patch new file mode 100644 index 000000000000..e534eddfb750 --- /dev/null +++ b/dev-java/hamcrest-integration/files/1.3-remove-targets.patch @@ -0,0 +1,74 @@ +diff --git a/hamcrest-1.3/build.xml b/hamcrest-1.3/build.xml +index 1cfd4fb..396ebc5 100644 +--- a/hamcrest-1.3/build.xml ++++ b/hamcrest-1.3/build.xml +@@ -12,69 +12,14 @@ + </target>
+
+ <target name="generator" description="Build code generator tool">
+- <java-to-jar srcdir="hamcrest-generator/src/main/java"
+- modulename="hamcrest-generator-nodeps"
+- classpath="lib/generator/qdox-1.12.jar"/>
+-
+- <!-- Bundle QDox classes in hamcrest-generator.jar using JarJar to place classes under a different package -->
+- <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="lib/generator/jarjar-1.3.jar"/>
+- <jarjar jarfile="build/hamcrest-generator-${version}.jar">
+- <zipfileset src="build/hamcrest-generator-nodeps-${version}.jar"/>
+- <zipfileset src="lib/generator/qdox-1.12.jar"/>
+- <rule pattern="com.thoughtworks.qdox.**" result="org.hamcrest.generator.qdox.@1"/>
+- </jarjar>
+- <copy file="build/hamcrest-generator-nodeps-${version}-sources.jar" tofile="build/hamcrest-generator-${version}-sources.jar"/>
+ </target>
+
+ <target name="core" depends="generator" description="Build core Hamcrest library">
+- <java-to-jar srcdir="hamcrest-core/src/main/java" modulename="hamcrest-core"/>
+-
+- <!-- Generate one class with all static imports -->
+- <mkdir dir="build/temp/hamcrest-core/generated-code"/>
+-
+- <java classname="org.hamcrest.generator.config.XmlConfigurator"
+- fork="yes"
+- failonerror="yes"
+- classpath="
+- build/hamcrest-core-${version}.jar;
+- build/hamcrest-generator-${version}.jar;
+- ">
+- <arg value="core-matchers.xml"/>
+- <arg value="hamcrest-core/src/main/java"/>
+- <arg value="org.hamcrest.CoreMatchers"/>
+- <arg value="build/temp/hamcrest-core/generated-code"/>
+- </java>
+- <!-- Append to core jar -->
+- <java-to-jar srcdir="build/temp/hamcrest-core/generated-code"
+- modulename="hamcrest-core"
+- classpath="build/hamcrest-core-${version}.jar"/>
+ </target>
+
+ <target name="library"
+ depends="core,generator"
+ description="Build library of matchers">
+- <mkdir dir="build/temp/hamcrest-library/generated-code"/>
+- <java-to-jar srcdir="hamcrest-library/src/main/java"
+- modulename="hamcrest-library"
+- classpath="build/hamcrest-core-${version}.jar"/>
+- <!-- Generate one class with all static imports -->
+- <java classname="org.hamcrest.generator.config.XmlConfigurator"
+- fork="yes"
+- failonerror="yes"
+- classpath="
+- build/hamcrest-core-${version}.jar;
+- build/hamcrest-generator-${version}.jar;
+- build/hamcrest-library-${version}.jar;
+- ">
+- <arg value="matchers.xml"/>
+- <arg value="hamcrest-core/src/main/java,hamcrest-library/src/main/java"/>
+- <arg value="org.hamcrest.Matchers"/>
+- <arg value="build/temp/hamcrest-library/generated-code"/>
+- </java>
+- <!-- Append to library jar -->
+- <java-to-jar srcdir="build/temp/hamcrest-library/generated-code"
+- modulename="hamcrest-library"
+- classpath="build/hamcrest-core-${version}.jar"/>
+ </target>
+
+ <target name="integration" depends="core, library" description="Build integration with external tools">
diff --git a/dev-java/hamcrest-integration/hamcrest-integration-1.3.ebuild b/dev-java/hamcrest-integration/hamcrest-integration-1.3.ebuild new file mode 100644 index 000000000000..bb0548279c9a --- /dev/null +++ b/dev-java/hamcrest-integration/hamcrest-integration-1.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="source" + +inherit java-pkg-2 java-ant-2 + +MY_PN=${PN/-integration} +MY_P="${MY_PN}-${PV}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Integration library of hamcrest" +HOMEPAGE="https://github.com/hamcrest" +SRC_URI="https://${MY_PN}.googlecode.com/files/${MY_P}.tgz" + +LICENSE="BSD-2" +SLOT="${PV}" +KEYWORDS="~amd64 ~x86" + +CDEPEND="dev-java/hamcrest-core:${SLOT} + dev-java/qdox:1.6 + dev-java/easymock:3.2 + dev-java/jmock:1.0" + +DEPEND=">=virtual/jdk-1.5 + userland_GNU? ( sys-apps/findutils ) + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" + +JAVA_ANT_REWRITE_CLASSPATH="true" +JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} java java-to-jar" + +EANT_GENTOO_CLASSPATH="hamcrest-core:${SLOT},qdox:1.6,easymock:3.2,jmock:1.0" +EANT_BUILD_TARGET="integration" +EANT_EXTRA_ARGS="-Dversion=${PV}" +EANT_GENTOO_CLASSPATH_EXTRA="build/${P}.jar" + +java_prepare() { + # remove core+generator target as they are already built. + epatch "${FILESDIR}/${PV}-remove-targets.patch" + + find -iname "*.jar" -exec rm -v {} + || die "Unable to clean bundled JAR files" +} + +src_install() { + java-pkg_newjar build/${P}.jar ${PN}.jar + + use source && java-pkg_dosrc ${PN}/src/main/java/org +} diff --git a/dev-java/hamcrest-integration/metadata.xml b/dev-java/hamcrest-integration/metadata.xml new file mode 100644 index 000000000000..7ee93b2f2b47 --- /dev/null +++ b/dev-java/hamcrest-integration/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <upstream> + <remote-id type="github">hamcrest/</remote-id> + </upstream> +</pkgmetadata> |