summaryrefslogtreecommitdiff
path: root/dev-java/hamcrest-library
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/hamcrest-library
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/hamcrest-library')
-rw-r--r--dev-java/hamcrest-library/Manifest6
-rw-r--r--dev-java/hamcrest-library/files/1.3-remove-targets.patch47
-rw-r--r--dev-java/hamcrest-library/hamcrest-library-1.3-r1.ebuild52
-rw-r--r--dev-java/hamcrest-library/metadata.xml12
4 files changed, 117 insertions, 0 deletions
diff --git a/dev-java/hamcrest-library/Manifest b/dev-java/hamcrest-library/Manifest
new file mode 100644
index 000000000000..ae7b8d7122de
--- /dev/null
+++ b/dev-java/hamcrest-library/Manifest
@@ -0,0 +1,6 @@
+AUX 1.3-remove-targets.patch 2263 SHA256 724757809ec22f8aab0d28fd087824080ecdd413691821e245347d1b9159728b SHA512 e403068cba91964dc7895c111a292a135ad27790da480c8779961075de559163052fa8ca5a997d3cfc278455ab3b8051bd3d4eb069f850dad2780a7ca974e551 WHIRLPOOL 8fa20fa573d29499c3c026edf3d834a98ef31725d01128fffa46caf7c23f6a14f487fb05e2691766fbd3c54fc45b5f866cb6b81321ee8fecf8b3699b731f9de8
+DIST hamcrest-1.3.tgz 3686096 SHA256 c6428e40d069fff3f99780efaae96c35ebdbf7cbfd475504254ebffcc19620c2 SHA512 5672bc627bc71d6fd64b6f776b89ac16ed68819fa4a0748c1250b57f1065c1e7e18ba184d9fe3392e54000ddeb353d0d8d67f4eecdf464974563f05c6b226fc2 WHIRLPOOL 9edc85f8d988ba9e7d080e3240d02956775bb73857903a2ec2a72e80d5a1b8570111c97d7b9906951273a1a1db6213a77de9cc2c55a6c73246d45157fed11ed9
+EBUILD hamcrest-library-1.3-r1.ebuild 1347 SHA256 f6837a09115b1c35a0c95af51225b169bf867c74e4c1764a5722e9db21cd90a6 SHA512 11d211cdf75a7643d4ef7f856ea9200a6f7a14b3fddccd8704fe75e0b2629e0f7700d75a9f36023ad5d74c4596e4f2a09b60893354faa10db48a21e85b9c2a71 WHIRLPOOL 20adfcb5f1e97a27374877dc2fcd5c69e27c5aee9b1a2f78ca65a4114aae2bc2781e55963a60f4143df23c1ff7e3f350c6d408d89c4bd5890382602c2a1a4a59
+MISC ChangeLog 3575 SHA256 9a7a146b4601d5824725c7210d1a47bbdc0f2f76eff4395391cac01ffb5533c1 SHA512 d96ce626c6b5bf735b7df9356b3248f73fcf23e2baacaf76c3757a9c97f00e230df672df2e107e64a8525cd9b867657f8ec54570e8f0099fc8c3a99a4d62c102 WHIRLPOOL 9bd1e48293e9c6d1db38934a73b0daf50a678b68d174208146ab3dbcaf1627ffdcc40033ca06c4b4fee4edda383373f35880241b9b03235fdbccdf2d3166d7c0
+MISC ChangeLog-2015 1485 SHA256 fda3dd7f8a7501006169b97f354d413ad41aed03edf3835524f3143fb4f0c8a9 SHA512 7617591d2febc8d5495975412f3a20b234df6924436b8f3c758a3b04136b642d40d4ad43d582573124119ffc49a23b6da0dd1aeee4aa598054680c688eb6db23 WHIRLPOOL 5f9132a74240f90063bfb479c6457b73b00125a724e11b605beee2473ec12102e530145f291ec7de509ba64d7e63e7d05e5e24851c3147c905dd28bb71ff57b0
+MISC metadata.xml 363 SHA256 3e29835411839d59920ca674e4dc0b078cf746bc44274b2ab65061616d99a4e0 SHA512 7c71d7b035ce5a0a53a33932a8e7c90d2c4749deecb2a6e2b1dbaf7183b2526ad18d2233717f8c405039bf7d87939a544092d8f058f006418b8584caaff8fbf8 WHIRLPOOL 91fcbaafe8ca341c210864386815b1c0efa9dd002d04f95b41698085415e9b6f3673d728806d2c6f19e411307cececd1662fa960e61c646e8f3980df12ca39b3
diff --git a/dev-java/hamcrest-library/files/1.3-remove-targets.patch b/dev-java/hamcrest-library/files/1.3-remove-targets.patch
new file mode 100644
index 000000000000..6923b0bcc68e
--- /dev/null
+++ b/dev-java/hamcrest-library/files/1.3-remove-targets.patch
@@ -0,0 +1,47 @@
+diff --git a/build.xml b/build.xml
+index 1cfd4fb..185c563 100644
+--- a/build.xml
++++ b/build.xml
+@@ -12,42 +12,9 @@
+ </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"
diff --git a/dev-java/hamcrest-library/hamcrest-library-1.3-r1.ebuild b/dev-java/hamcrest-library/hamcrest-library-1.3-r1.ebuild
new file mode 100644
index 000000000000..89a57bc7315f
--- /dev/null
+++ b/dev-java/hamcrest-library/hamcrest-library-1.3-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 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/-library}
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Core library of matchers for building test expressions"
+HOMEPAGE="https://github.com/hamcrest"
+SRC_URI="https://${MY_PN}.googlecode.com/files/${MY_P}.tgz"
+
+LICENSE="BSD-2"
+SLOT="${PV}"
+KEYWORDS="amd64 ~arm64 ~ppc64 x86"
+
+CDEPEND="
+ dev-java/hamcrest-generator:${SLOT}
+ dev-java/hamcrest-core:${SLOT}
+ dev-java/qdox:1.12
+"
+DEPEND=">=virtual/jdk-1.6
+ userland_GNU? ( sys-apps/findutils )
+ ${CDEPEND}"
+
+RDEPEND=">=virtual/jre-1.6
+ ${CDEPEND}"
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} java java-to-jar"
+EANT_GENTOO_CLASSPATH="hamcrest-generator-${SLOT},hamcrest-core-${SLOT},qdox-1.12"
+EANT_BUILD_TARGET="library"
+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/${PN/core/library}-${PV}.jar ${PN/core/library}.jar
+
+ use source && java-pkg_dosrc ${PN}/src/main/java/org
+}
diff --git a/dev-java/hamcrest-library/metadata.xml b/dev-java/hamcrest-library/metadata.xml
new file mode 100644
index 000000000000..b09ef005001e
--- /dev/null
+++ b/dev-java/hamcrest-library/metadata.xml
@@ -0,0 +1,12 @@
+<?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="google-code">hamcrest</remote-id>
+ <remote-id type="github">hamcrest/</remote-id>
+ </upstream>
+</pkgmetadata>