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
commitf89e8a1402af4863f331c4919473fb900a67d77c (patch)
tree8107b12336a125321320b09900df2464d7e68966 /dev-java/velocity
parentChange version from 1 to 1.0 to avoid versioned jar warning. (diff)
downloadgentoo-2-f89e8a1402af4863f331c4919473fb900a67d77c.tar.gz
gentoo-2-f89e8a1402af4863f331c4919473fb900a67d77c.tar.bz2
gentoo-2-f89e8a1402af4863f331c4919473fb900a67d77c.zip
Version bump. Adds the examples use flag and src_test.
(Portage version: 2.1.2.5)
Diffstat (limited to 'dev-java/velocity')
-rw-r--r--dev-java/velocity/ChangeLog7
-rw-r--r--dev-java/velocity/files/digest-velocity-1.53
-rw-r--r--dev-java/velocity/velocity-1.5.ebuild74
3 files changed, 83 insertions, 1 deletions
diff --git a/dev-java/velocity/ChangeLog b/dev-java/velocity/ChangeLog
index 79bcea6ff5e2..bed6512dabfd 100644
--- a/dev-java/velocity/ChangeLog
+++ b/dev-java/velocity/ChangeLog
@@ -1,6 +1,11 @@
# 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.29 2007/04/26 22:06:56 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/ChangeLog,v 1.30 2007/05/05 20:53:23 betelgeuse Exp $
+
+*velocity-1.5 (05 May 2007)
+
+ 05 May 2007; Petteri Räty <betelgeuse@gentoo.org> +velocity-1.5.ebuild:
+ Version bump. Adds the examples use flag and src_test.
26 Apr 2007; Vlastimil Babka <caster@gentoo.org> velocity-1.4-r4.ebuild:
Fix deps, tweak style.
diff --git a/dev-java/velocity/files/digest-velocity-1.5 b/dev-java/velocity/files/digest-velocity-1.5
new file mode 100644
index 000000000000..c5690a579ef4
--- /dev/null
+++ b/dev-java/velocity/files/digest-velocity-1.5
@@ -0,0 +1,3 @@
+MD5 d35a8c260ca823dfdcb45efa94a28f91 velocity-1.5.tar.gz 4548966
+RMD160 f9c5df89e786cb7672072d59ce2b4e02f703fdeb velocity-1.5.tar.gz 4548966
+SHA256 26138ab6a2ff430f08c3410ad1a760034e48ae823a4dd15b26eed087f49fa8eb velocity-1.5.tar.gz 4548966
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/*
+}