summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-05-05 20:53:23 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-05-05 20:53:23 +0000
commit3823d4a77f57270d59c7087764eb904bad9face2 (patch)
tree1fa34e109aa97f745037b3abb22989ed26d84fa4 /dev-java/velocity/velocity-1.5.ebuild
parentChange version from 1 to 1.0 to avoid versioned jar warning. (diff)
downloadhistorical-3823d4a77f57270d59c7087764eb904bad9face2.tar.gz
historical-3823d4a77f57270d59c7087764eb904bad9face2.tar.bz2
historical-3823d4a77f57270d59c7087764eb904bad9face2.zip
Version bump. Adds the examples use flag and src_test.
Package-Manager: portage-2.1.2.5
Diffstat (limited to 'dev-java/velocity/velocity-1.5.ebuild')
-rw-r--r--dev-java/velocity/velocity-1.5.ebuild74
1 files changed, 74 insertions, 0 deletions
diff --git a/dev-java/velocity/velocity-1.5.ebuild b/dev-java/velocity/velocity-1.5.ebuild
new file mode 100644
index 000000000000..da2e6e8bd205
--- /dev/null
+++ b/dev-java/velocity/velocity-1.5.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/velocity-1.5.ebuild,v 1.1 2007/05/05 20:53:23 betelgeuse Exp $
+
+JAVA_PKG_IUSE="examples doc source test"
+
+inherit java-pkg-2 java-ant-2 eutils
+
+DESCRIPTION="A Java-based template engine that allows 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"
+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*
+ =dev-java/servletapi-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,servletapi-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 bin/test-lib -p || die
+ cd bin/test-lib || die
+ java-pkg_jar-from junit,hsqldb,servletapi-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/*
+}