summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-02-07 00:09:55 +0000
committerTim Harder <radhermit@gentoo.org>2014-02-07 00:09:55 +0000
commita577a55eb4217185ff1bb3ecaa25a0876dbc4387 (patch)
tree3a237c3e431c8e825557a53d50d8ed58c94e7af3 /dev-java/velocity
parentAdd maintainer. (diff)
downloadgentoo-2-a577a55eb4217185ff1bb3ecaa25a0876dbc4387.tar.gz
gentoo-2-a577a55eb4217185ff1bb3ecaa25a0876dbc4387.tar.bz2
gentoo-2-a577a55eb4217185ff1bb3ecaa25a0876dbc4387.zip
Version bump.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-java/velocity')
-rw-r--r--dev-java/velocity/ChangeLog9
-rw-r--r--dev-java/velocity/velocity-1.7.ebuild87
2 files changed, 94 insertions, 2 deletions
diff --git a/dev-java/velocity/ChangeLog b/dev-java/velocity/ChangeLog
index 0c9698e21292..adf8a7f0dbd9 100644
--- a/dev-java/velocity/ChangeLog
+++ b/dev-java/velocity/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/velocity
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/ChangeLog,v 1.46 2012/01/29 11:20:15 sera Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/ChangeLog,v 1.47 2014/02/07 00:09:55 radhermit Exp $
+
+*velocity-1.7 (07 Feb 2014)
+
+ 07 Feb 2014; Tim Harder <radhermit@gentoo.org> +velocity-1.7.ebuild:
+ Version bump.
29 Jan 2012; Ralph Sennhauser <sera@gentoo.org> -velocity-1.5.ebuild,
-velocity-1.5-r1.ebuild:
diff --git a/dev-java/velocity/velocity-1.7.ebuild b/dev-java/velocity/velocity-1.7.ebuild
new file mode 100644
index 000000000000..c269157ff581
--- /dev/null
+++ b/dev-java/velocity/velocity-1.7.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/velocity-1.7.ebuild,v 1.1 2014/02/07 00:09:55 radhermit Exp $
+
+EAPI=5
+JAVA_PKG_IUSE="examples doc source"
+
+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="test"
+
+CDEPEND="
+ dev-java/commons-collections:0
+ dev-java/commons-lang:2.1
+ dev-java/commons-logging:0
+ dev-java/jdom:1.0
+ dev-java/log4j:0
+ dev-java/avalon-logkit:2.0
+ dev-java/jakarta-oro:2.0
+ java-virtuals/servlet-api:2.3
+ dev-java/werken-xpath:0
+ dev-java/ant-core:0
+"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.4
+ test? (
+ dev-java/ant-junit:0
+ dev-java/ant-antlr:0
+ dev-db/hsqldb:0
+ )
+"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.4"
+
+JAVA_PKG_FILTER_COMPILER="jikes"
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+
+EANT_GENTOO_CLASSPATH="
+ commons-collections
+ commons-lang-2.1
+ commons-logging
+ jdom-1.0
+ log4j
+ avalon-logkit-2.0
+ jakarta-oro-2.0
+ servlet-api-2.3
+ werken-xpath
+ ant-core
+"
+
+# One test fails. see #219668
+RESTRICT="test"
+
+java_prepare() {
+ rm -v *.jar lib/test/*.jar lib/*.jar || die
+}
+
+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
+ # 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/*
+}