diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2006-08-14 19:28:37 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2006-08-14 19:28:37 +0000 |
commit | bdd03c6845399f83731baad31427e9ce8335416c (patch) | |
tree | 1cec2c9c5c73e903c6f198f290470f5617b707aa /dev-java/velocity/velocity-1.4-r4.ebuild | |
parent | version bump thanks to Martin Wegner <bugzilla-gentoo@mroot.net> and others i... (diff) | |
download | gentoo-2-bdd03c6845399f83731baad31427e9ce8335416c.tar.gz gentoo-2-bdd03c6845399f83731baad31427e9ce8335416c.tar.bz2 gentoo-2-bdd03c6845399f83731baad31427e9ce8335416c.zip |
Migrated to new Java build system.
(Portage version: 2.1.1_pre5)
Diffstat (limited to 'dev-java/velocity/velocity-1.4-r4.ebuild')
-rw-r--r-- | dev-java/velocity/velocity-1.4-r4.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/dev-java/velocity/velocity-1.4-r4.ebuild b/dev-java/velocity/velocity-1.4-r4.ebuild new file mode 100644 index 000000000000..ce568a435f6b --- /dev/null +++ b/dev-java/velocity/velocity-1.4-r4.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/velocity/velocity-1.4-r4.ebuild,v 1.1 2006/08/14 19:28:37 nelchael Exp $ + +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://jakarta.apache.org/velocity/" +SRC_URI="mirror://apache/jakarta/${PN}/binaries/${P}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc source" + +DEPEND=">=virtual/jdk-1.3.1 + dev-java/ant-core + dev-java/antlr + dev-java/junit + source? ( app-arch/zip )" +RDEPEND=">=virtual/jdk-1.3.1 + dev-java/bcel + dev-java/commons-collections + =dev-java/jdom-1.0_beta9* + dev-java/log4j + =dev-java/avalon-logkit-1.2* + =dev-java/jakarta-oro-2.0* + =dev-java/servletapi-2.2* + dev-java/werken-xpath" + +pkg_setup() { + if ! built_with_use dev-java/log4j javamail; then + eerror "Velocity needs javamail specific classes built into" + eerror "log4j. Please re-emerge log4j with the javamail use" + eerror "flag turned on." + die "log4j not built with the javamail use flag" + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${P}-versioned_jar.patch + + cd ${S}/build/lib + rm *.jar + java-pkg_jar-from antlr + java-pkg_jar-from bcel + java-pkg_jar-from commons-collections + java-pkg_jar-from jakarta-oro-2.0 + java-pkg_jar-from jdom-1.0_beta9 + java-pkg_jar-from log4j + java-pkg_jar-from avalon-logkit-1.2 + java-pkg_jar-from servletapi-2.2 + java-pkg_jar-from werken-xpath + java-pkg_jar-from junit + java-pkg_jar-from ant-core +} + +src_compile () { + cd ${S}/build + local antflags="jar jar-core jar-util jar-servlet" + use doc && antflags="${antflags} javadocs" + + eant ${antflags} || die "Ant failed" +} + + +src_install () { + java-pkg_dojar bin/*.jar + + dodoc NOTICE README.txt + use doc && java-pkg_dohtml -r docs/* + use source && java-pkg_dosrc src/java/* +} |