summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/commons-validator/ChangeLog10
-rw-r--r--dev-java/commons-validator/Manifest19
-rw-r--r--dev-java/commons-validator/commons-validator-1.4.0.ebuild80
-rw-r--r--dev-java/commons-validator/files/validator-1.4.build.xml.patch20
4 files changed, 126 insertions, 3 deletions
diff --git a/dev-java/commons-validator/ChangeLog b/dev-java/commons-validator/ChangeLog
index 04faea6dabae..aa82380312f9 100644
--- a/dev-java/commons-validator/ChangeLog
+++ b/dev-java/commons-validator/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/commons-validator
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-validator/ChangeLog,v 1.50 2010/05/18 14:07:52 betelgeuse Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-validator/ChangeLog,v 1.51 2013/07/16 16:10:45 tomwij Exp $
+
+*commons-validator-1.4.0 (16 Jul 2013)
+
+ 16 Jul 2013; Tom Wijsman <TomWij@gentoo.org> +commons-validator-1.4.0.ebuild,
+ +files/validator-1.4.build.xml.patch:
+ Version bump to 1.4.0.
18 May 2010; Petteri Räty <betelgeuse@gentoo.org>
commons-validator-1.3.1.ebuild:
diff --git a/dev-java/commons-validator/Manifest b/dev-java/commons-validator/Manifest
index c35e98c5e3d3..928a5b907a62 100644
--- a/dev-java/commons-validator/Manifest
+++ b/dev-java/commons-validator/Manifest
@@ -1,5 +1,22 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX validator-1.3.build.xml.patch 1399 SHA256 93abf25e854cac7f0893d68c10fa6856cec5b4a6b0e8b1c9544b8a3d9447a844 SHA512 06cd298951df336ff6f61e462949e9df58ebf950467b123fb2f46852e18d49062d744cbd390b93f37c08a0d302ec165d3146565ff15e09245d3cf2e3f57d7d91 WHIRLPOOL f3d2c1513ab298394e7f5ef6b4d09e87605d420e41c2c5f081455e63da499507cc913d0a2330ccf238323d0bc79398f3458a1ccc338d9f2f3fcf6a1b365d986c
+AUX validator-1.4.build.xml.patch 676 SHA256 7ca403b843fdbb27cb391b02ecc1a6b4dd6d7b0a271ef82b0097c04a3b22b5fa SHA512 3b426b65d32799398de59d063f67c840d261593278a48afd81024479171e68483add4c69aeed1e65127812850500ba6ffe24cf31ecda6ad16d3a2df64fb2c218 WHIRLPOOL 1ebe87430ac45c05088fd9213ef152d30dab04256c8f917c95508a7cb97b28725816e3c19e39987d6b73904c9f1e829cf36edaba432c9d895a67e9e08a553e4e
DIST commons-validator-1.3.1-src.tar.gz 170690 SHA256 2a1e586b4e29de7835a6b3694950624248f277b40cac899008e99003eb060300 SHA512 0ec144576f3991d802b9dc7922b02b2a8f7a40c557262166dd95a2917b695e53cb726de860b6540de9359a8161a6277ad542df3de7f9637b8be4e712f1d65813 WHIRLPOOL 2bf46b01017875fa77941bb92ab941dd5e9180d5db546a0fd379ce60624fb1db7387d18df9da30ac7d149c85eb45621b751b1ec46ac41b8a0463773aac921ffd
+DIST commons-validator-1.4.0-src.tar.gz 222421 SHA256 e75554dbbe1681ccf3e556917a2311c509ff5c7fb9a473be03bdeb8215df5436 SHA512 35005d5ada8a1070cdd02f78464886e16157a05f895e3abfe2dcd51fa4b443d9ee359bb54a40e13ed463b757a77a64669c89cd9b914051a4ab1c745be3526d98 WHIRLPOOL 2932f8df70d9a89a51c218baac93fa5c199d0a2316147032416cba8f2100d29a508bc61603fc777eed7408b5bb265d40f4a7449354ec0227a8adf11471c4d8fd
EBUILD commons-validator-1.3.1.ebuild 2256 SHA256 267274a52cb16059849f0cc98ad7d16e58cd31e0c539b87788041c33bb29aea7 SHA512 f08c68af5d0e9a7dff5e68f0e2950106ca250a597b22fafea959e1aeec7c0345fc77270e65b8d2effb6b6a385605527987363de6d8ec13945ae66f3346c9630e WHIRLPOOL 04d2f3c3d711beb879022161b3dbafe34ddbdc1564509225f6cec378fdb7fb23d4c00e88f42244b96c9083ab62e865882dd1a791909e338ee180be4f4d037445
-MISC ChangeLog 7852 SHA256 48ccfe3bf0eb4855c9df850951a748092feb489efb558f14f3f8f29d446707a6 SHA512 cb458dc47d5984b53d450fca7194fe2d7f77b606f4b600d509da6b6a5677a16d5e87e8a8cd289eb97c3ef5017319ea186e141fba24d0e9b6a18f289b30182ecc WHIRLPOOL ea30e9d7cf362220a5b901cb189155c7b9230b58f7bd6b1890c4f9a68e769bf46d2fed620dde198d5262cf283bcc0037fb1950644a261ce41b914936a8113bd1
+EBUILD commons-validator-1.4.0.ebuild 2805 SHA256 dd7117caf39332fd052b6343ab29dc60f6660b27b227045ca256257c8b138610 SHA512 8c298c82665c58479f1b11e68e292f103df7e327251dbbbc2420ead9195b132e3675bc5b06588e81e4532dcd04fa4ae487404efe310627edc89d7c46a6c43fa8 WHIRLPOOL ba5299dcf3cc4dafd1f2301ebc1759e48ecb41462bd4f68ad501034846990e1aeef196988d947020f5cbb36a8271002bc732d4bad2ff1c61c418f200550cf598
+MISC ChangeLog 8034 SHA256 70321790a6e17b676a8b896f2d09248b6bf094e31a1353f1169a4c5a5498bcfa SHA512 3261498e5cc32ef2025b1d3ad3ba235ec1dc040c2541b12f827115cf3a00cf2c48761442f8800d8445f2a47149afe7159e561ff14c24b18de09dafe53a2f8370 WHIRLPOOL 0253517787b631e7cebb0abb9dea9ecc9f1cbd3d3b84517f1a8a2a4060551c7afa9d2ff15bd496cc2805581ac77e801f33372c4837491c60ea0f26cc41fa2fec
MISC metadata.xml 157 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 SHA512 bbae663e26f48fdc5e272adc2b06c14f77f34c53caf84acb53908ff036e7c12a3edbbc0929d2db56bee861a453381d979c7e0983a23716f629ed2135c22ffece WHIRLPOOL 887e153e2481e7d76f0f1b67a395f10f0328b93930185ecdb8fcb5fe3c50f839086a18831d61cf45b34657aaffca6c3b7900cf3c04b712846a05027a84602448
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.20 (GNU/Linux)
+
+iQEcBAEBCAAGBQJR5W/NAAoJEJWyH81tNOV9N9UH/jcDyMC0yxLCQasGbelo9f6E
+l/cIaTBNYEMwe4aMhwgbD4puRRgTYwVD+LC+WgRP4u9uEJa/nn9aq534fIfoOPuh
+1zEGtF2ygPJhuBJ6ETd6xJBo29eykUnhBmUOH3QQ3DMVFcCrKY6+3BSK2FZz3BnZ
+E4zqiBRTO+28UzA8e0msCsJ4zDyNp0RWkpXlAkUhlcNCAqMY3h8JT2xzK/wRy9fT
+JEOGi3DZjahYnDrM8cLACRecx2QOUo+DMyGcJ96ioZUyEUU7M9n4BgbgMLgt5lx1
+ccjzTPVPApo94s+6yotikE/FCij/rCMocBulacQcBT8vYXds+nksJ6G0lol7v2s=
+=MU4S
+-----END PGP SIGNATURE-----
diff --git a/dev-java/commons-validator/commons-validator-1.4.0.ebuild b/dev-java/commons-validator/commons-validator-1.4.0.ebuild
new file mode 100644
index 000000000000..115ed45a43e7
--- /dev/null
+++ b/dev-java/commons-validator/commons-validator-1.4.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-validator/commons-validator-1.4.0.ebuild,v 1.1 2013/07/16 16:10:45 tomwij Exp $
+
+EAPI="5"
+
+JAVA_PKG_IUSE="examples source test" # doc
+
+inherit java-pkg-2 java-ant-2
+
+MY_P=${P}-src
+
+DESCRIPTION="Commons component to validate user input, or data input"
+HOMEPAGE="http://commons.apache.org/validator/"
+SRC_URI="mirror://apache/commons/validator/source/${P}-src.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/commons-digester-1.6:0
+ >=dev-java/commons-collections-3.1:0
+ >=dev-java/commons-logging-1.0.4:0
+ dev-java/commons-beanutils:1.7"
+
+DEPEND=">=virtual/jdk-1.4
+ test? ( dev-java/junit:0 )
+ ${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+java_prepare() {
+ epatch "${FILESDIR}"/validator-1.4.build.xml.patch
+
+ JAVA_ANT_CLASSPATH_TAGS="javac java" java-ant_rewrite-classpath
+
+ echo "commons-digester.jar=$(java-pkg_getjars commons-digester)" >> build.properties
+ echo "commons-beanutils.jar=$(java-pkg_getjars commons-beanutils-1.7)" >> build.properties
+ echo "commons-logging.jar=$(java-pkg_getjar commons-logging commons-logging.jar)" >> build.properties
+ echo "commons-collections.jar=$(java-pkg_getjars commons-collections)" >> build.properties
+}
+
+EANT_JAVA_REWRITE_CLASSPATH="true"
+EANT_GENTOO_CLASSPATH="commons-beanutils-1.7,commons-collections"
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},commons-digester,commons-logging,junit"
+
+EANT_BUILD_TARGET="compile"
+EANT_EXTRA_ARGS="-Dskip.download=true"
+
+src_compile() {
+ java-pkg-2_src_compile
+ jar -cf ${PN}.jar -C target/classes/ . || die "Could not create jar."
+
+ if use test ; then
+ eant compile.tests ${EANT_EXTRA_ARGS} -Dgentoo.classpath="$(java-pkg_getjars --build-only --with-dependencies ${EANT_TEST_GENTOO_CLASSPATH})"
+ jar -cf ${PN}-test.jar -C target/tests/ . || die "Could not create test jar."
+ fi
+}
+
+# Missing test suite org.apache.commons.validator.ValidatorTestSuite; therefore, tests can't be ran.
+# See https://issues.apache.org/jira/browse/VALIDATOR-323 for a bug report about this.
+RESTRICT="test"
+
+src_test() {
+ echo "junit.jar=$(java-pkg_getjars junit)" >> build.properties
+ eant test ${EANT_EXTRA_ARGS} -Dgentoo.classpath="$(java-pkg_getjars --build-only --with-dependencies ${EANT_TEST_GENTOO_CLASSPATH}):${PN}.jar:${PN}-test.jar"
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+
+ dodoc NOTICE.txt RELEASE-NOTES.txt
+
+ # Docs are no longer generated, as they have commented them out;
+ # probably on purpose, since this is the start of a new branch.
+ # use doc && java-pkg_dojavadoc dist/docs/apidocs
+ use examples && java-pkg_doexamples src/example
+ use source && java-pkg_dosrc src/main/java/*
+}
diff --git a/dev-java/commons-validator/files/validator-1.4.build.xml.patch b/dev-java/commons-validator/files/validator-1.4.build.xml.patch
new file mode 100644
index 000000000000..579832bb4a09
--- /dev/null
+++ b/dev-java/commons-validator/files/validator-1.4.build.xml.patch
@@ -0,0 +1,20 @@
+--- build.xml.o 2006-10-21 18:12:49.000000000 +0200
++++ build.xml 2006-10-21 18:29:18.000000000 +0200
+@@ -204,7 +205,7 @@
+ </target>
+
+
+- <target name="compile" depends="static"
++ <target name="compile" depends="prepare"
+ description="Compile shareable components">
+ <javac srcdir="${source.home}"
+ destdir="${build.home}/classes"
+@@ -278,7 +279,7 @@
+ </exec>
+ </target>
+
+- <target name="javadoc" depends="compile, javadoc.js"
++ <target name="javadoc" depends="compile"
+ description="Create component Javadoc documentation">
+ <javadoc sourcepath="${source.home}"
+ destdir="${dist.home}/docs/apidocs"