diff options
author | William Thomson <wltjr@gentoo.org> | 2008-03-22 21:45:15 +0000 |
---|---|---|
committer | William Thomson <wltjr@gentoo.org> | 2008-03-22 21:45:15 +0000 |
commit | 5598f6190cfc7d920c185f39b9b401ccb7852c21 (patch) | |
tree | 875333ce2971b5bfab65f082915b872683dee28e /dev-java/velocity | |
parent | add asyncns USE flag for net-libs/loudmouth (diff) | |
download | gentoo-2-5598f6190cfc7d920c185f39b9b401ccb7852c21.tar.gz gentoo-2-5598f6190cfc7d920c185f39b9b401ccb7852c21.tar.bz2 gentoo-2-5598f6190cfc7d920c185f39b9b401ccb7852c21.zip |
Switched to java-virtuals/servlet-api, EAPI=1 slots, and shrank description
(Portage version: 2.1.4.1)
Diffstat (limited to 'dev-java/velocity')
-rw-r--r-- | dev-java/velocity/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/velocity/velocity-1.5-r1.ebuild | 77 |
2 files changed, 85 insertions, 2 deletions
diff --git a/dev-java/velocity/ChangeLog b/dev-java/velocity/ChangeLog index 55ab939189dd..c5dcb11198f3 100644 --- a/dev-java/velocity/ChangeLog +++ b/dev-java/velocity/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/velocity -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/ChangeLog,v 1.38 2007/08/26 14:22:12 betelgeuse Exp $ +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/ChangeLog,v 1.39 2008/03/22 21:45:15 wltjr Exp $ + +*velocity-1.5-r1 (22 Mar 2008) + + 22 Mar 2008; William L. Thomson Jr. <wltjr@gentoo.org> + +velocity-1.5-r1.ebuild: + Switched to java-virtuals/servlet-api, EAPI=1 slots, and shrank description 26 Aug 2007; Petteri Räty <betelgeuse@gentoo.org> velocity-1.5.ebuild: Relax commons-lang dependency to match 2.3 diff --git a/dev-java/velocity/velocity-1.5-r1.ebuild b/dev-java/velocity/velocity-1.5-r1.ebuild new file mode 100644 index 000000000000..4efc7842f30a --- /dev/null +++ b/dev-java/velocity/velocity-1.5-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/velocity-1.5-r1.ebuild,v 1.1 2008/03/22 21:45:15 wltjr Exp $ + +EAPI=1 +JAVA_PKG_IUSE="examples doc source test" + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION="A Java-based template engine for easy creation/rendering of documents that format and present data." +HOMEPAGE="http://velocity.apache.org" +SRC_URI="mirror://apache/${PN}/engine/${PV}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +IUSE="" + +CDEPEND=" + dev-java/commons-lang:2.1 + dev-java/commons-collections + dev-java/jdom:1.0 + dev-java/log4j + dev-java/avalon-logkit:2.0 + dev-java/jakarta-oro:2.0 + java-virtuals/servlet-api:2.3 + dev-java/werken-xpath + dev-java/ant-core" +DEPEND=">=virtual/jdk-1.4 + test? ( + dev-java/ant-junit + dev-java/ant-antlr + dev-db/hsqldb + ) + ${CDEPEND}" +RDEPEND=">=virtual/jre-1.4 + ${CDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + + rm -v *.jar lib/test/*.jar lib/*.jar || die + + mkdir -p bin/lib + cd bin/lib || die + + java-pkg_jar-from commons-lang-2.1 + java-pkg_jar-from --virtual servlet-api-2.3 + java-pkg_jar-from jdom-1.0,log4j,avalon-logkit-2.0 + java-pkg_jar-from ant-core,commons-collections + java-pkg_jar-from werken-xpath,jakarta-oro-2.0 +} + +src_compile () { + cd "${S}/build" + eant jar -Dskip-download=true #prebuilt javadocs +} + +src_test() { + mkdir -p bin/test-lib || die + cd bin/test-lib || die + java-pkg_jar-from junit,hsqldb + java-pkg_jar-from --virtual servlet-api-2.3 + cd "${S}/build" + ANT_TASKS="ant-junit ant-antlr" eant test -Dskip-download=true +} + +src_install () { + java-pkg_newjar bin/*.jar + + dodoc NOTICE README.txt || die + # has other stuff besides api too + use doc && java-pkg_dohtml -r docs/* + use examples && java-pkg_doexamples examples + use source && java-pkg_dosrc src/java/* +} |