diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2006-07-22 23:10:19 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2006-07-22 23:10:19 +0000 |
commit | e8496d84bdb47dfe292ee9e099484914b917e830 (patch) | |
tree | 566e3dd9df2a9dd05ac340ebbcae19951092c1d0 /dev-java/commons-validator | |
parent | Replace arch with uname -m for Gentoo/FreeBSD compatibility. See bug #141422. (diff) | |
download | historical-e8496d84bdb47dfe292ee9e099484914b917e830.tar.gz historical-e8496d84bdb47dfe292ee9e099484914b917e830.tar.bz2 historical-e8496d84bdb47dfe292ee9e099484914b917e830.zip |
Migrated to Generation 2.
Package-Manager: portage-2.1.1_pre3-r3
Diffstat (limited to 'dev-java/commons-validator')
4 files changed, 94 insertions, 2 deletions
diff --git a/dev-java/commons-validator/ChangeLog b/dev-java/commons-validator/ChangeLog index c04959d5781e..58bdd9424682 100644 --- a/dev-java/commons-validator/ChangeLog +++ b/dev-java/commons-validator/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/commons-validator -# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-validator/ChangeLog,v 1.28 2005/11/26 13:36:10 betelgeuse Exp $ +# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-validator/ChangeLog,v 1.29 2006/07/22 23:08:18 nelchael Exp $ + +*commons-validator-1.1.4-r1 (22 Jul 2006) + + 22 Jul 2006; Krzysiek Pawlik <nelchael@gentoo.org> + +commons-validator-1.1.4-r1.ebuild: + Migrated to Generation 2. *commons-validator-1.1.4 (26 Nov 2005) diff --git a/dev-java/commons-validator/commons-validator-1.1.4-r1.ebuild b/dev-java/commons-validator/commons-validator-1.1.4-r1.ebuild new file mode 100644 index 000000000000..ccbdcdc31abe --- /dev/null +++ b/dev-java/commons-validator/commons-validator-1.1.4-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2006 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.1.4-r1.ebuild,v 1.1 2006/07/22 23:08:18 nelchael Exp $ + +inherit java-pkg-2 java-ant-2 + +MY_P=${P}-src +DESCRIPTION="Jakarta component to validate user input, or data input" +HOMEPAGE="http://jakarta.apache.org/commons/validator/" +SRC_URI="mirror://apache/jakarta/commons/validator/source/${MY_P}.tar.gz + mirror://gentoo/${P}-gentoo-missingfiles.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" + +IUSE="doc examples source" + +# Was not able to test on 1.3 jdk at this point. Feel free to to lower this +# back to 1.3 if you have tested it on one and proved working. Then you +# probably need to bring the xerces dependency back. + +RDEPEND=">=virtual/jre-1.4 + =dev-java/jakarta-oro-2.0* + >=dev-java/commons-digester-1.5 + >=dev-java/commons-collections-3.1 + >=dev-java/commons-logging-1.0.3 + =dev-java/commons-beanutils-1.6*" + +DEPEND=">=virtual/jdk-1.4 + >=dev-java/ant-1.4 + ${RDEPEND} + source? ( app-arch/zip )" + +src_unpack() { + unpack ${A} + cd ${S} + rm *.jar + #dirty hack + sed -e 's:target name="compile" depends="static":target name="compile" depends="prepare":' -i build.xml \ + || die "Failed to sed build.xml" + + echo "oro.jar=$(java-pkg_getjars jakarta-oro-2.0)" >> build.properties + echo "commons-digester.jar=$(java-pkg_getjars commons-digester)" >> build.properties + echo "commons-beanutils.jar=$(java-pkg_getjars commons-beanutils-1.6)" >> build.properties +} + +src_compile() { + local antflags="compile" + + # Because the build.xml file uses <pathelement location=""> + # we can only have only have one jar per property + antflags="${antflags} -Dcommons-logging.jar=$(java-pkg_getjar commons-logging commons-logging.jar)" + antflags="${antflags} -Dcommons-collections.jar=$(java-pkg_getjars commons-collections)" + + use doc && antflags="${antflags} javadoc" + + eant ${antflags} || die "build failed" + jar -cf ${PN}.jar -C target/classes/ . || die "could not create jar" +} + +src_install() { + java-pkg_dojar ${PN}.jar + + if use doc; then + java-pkg_dohtml -r dist/docs/ + java-pkg_dohtml PROPOSAL.html STATUS.html + fi + + if use examples; then + dodir /usr/share/doc/${PF}/examples + cp -r src/example/* ${D}/usr/share/doc/${PF}/examples + fi + + use source && java-pkg_dosrc src/share/* +} diff --git a/dev-java/commons-validator/files/digest-commons-validator-1.1.4 b/dev-java/commons-validator/files/digest-commons-validator-1.1.4 index 2e6415ae09aa..f946d7fddab8 100644 --- a/dev-java/commons-validator/files/digest-commons-validator-1.1.4 +++ b/dev-java/commons-validator/files/digest-commons-validator-1.1.4 @@ -1,2 +1,6 @@ MD5 62aa855c6c61dce1e5e3e94f0dbb911f commons-validator-1.1.4-gentoo-missingfiles.tar.bz2 4161 +RMD160 cde4c6187078fbae86d0d05ccd2d15561efcf55c commons-validator-1.1.4-gentoo-missingfiles.tar.bz2 4161 +SHA256 40e6ec6f1856e2340bf86f331d4a628c0045f025645ba79dc2ce660132fab1bc commons-validator-1.1.4-gentoo-missingfiles.tar.bz2 4161 MD5 6a4ef07da77dd86223e80870999448e8 commons-validator-1.1.4-src.tar.gz 181446 +RMD160 d9067980087e963083f96506319fb5f1a53549dd commons-validator-1.1.4-src.tar.gz 181446 +SHA256 02a46f9f3cd654d68471a62094b3bf1edc26f43e7fd4a2174fbcd30d49676844 commons-validator-1.1.4-src.tar.gz 181446 diff --git a/dev-java/commons-validator/files/digest-commons-validator-1.1.4-r1 b/dev-java/commons-validator/files/digest-commons-validator-1.1.4-r1 new file mode 100644 index 000000000000..f946d7fddab8 --- /dev/null +++ b/dev-java/commons-validator/files/digest-commons-validator-1.1.4-r1 @@ -0,0 +1,6 @@ +MD5 62aa855c6c61dce1e5e3e94f0dbb911f commons-validator-1.1.4-gentoo-missingfiles.tar.bz2 4161 +RMD160 cde4c6187078fbae86d0d05ccd2d15561efcf55c commons-validator-1.1.4-gentoo-missingfiles.tar.bz2 4161 +SHA256 40e6ec6f1856e2340bf86f331d4a628c0045f025645ba79dc2ce660132fab1bc commons-validator-1.1.4-gentoo-missingfiles.tar.bz2 4161 +MD5 6a4ef07da77dd86223e80870999448e8 commons-validator-1.1.4-src.tar.gz 181446 +RMD160 d9067980087e963083f96506319fb5f1a53549dd commons-validator-1.1.4-src.tar.gz 181446 +SHA256 02a46f9f3cd654d68471a62094b3bf1edc26f43e7fd4a2174fbcd30d49676844 commons-validator-1.1.4-src.tar.gz 181446 |