diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-02-07 09:27:47 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-02-07 09:27:47 +0000 |
commit | 32a489576c9a2c7b5ae4b97b43f152ca360a5877 (patch) | |
tree | 21ffab6bf78f3af2e7f04ccd26a8a0383f1acc2e /dev-java/velocity | |
parent | Version bump, bug #134138 (diff) | |
download | gentoo-2-32a489576c9a2c7b5ae4b97b43f152ca360a5877.tar.gz gentoo-2-32a489576c9a2c7b5ae4b97b43f152ca360a5877.tar.bz2 gentoo-2-32a489576c9a2c7b5ae4b97b43f152ca360a5877.zip |
Add a workaround for bug #158720 and cleanup ebuild.
(Portage version: 2.1.2-r7)
Diffstat (limited to 'dev-java/velocity')
-rw-r--r-- | dev-java/velocity/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/velocity/velocity-1.4-r4.ebuild | 24 |
2 files changed, 18 insertions, 13 deletions
diff --git a/dev-java/velocity/ChangeLog b/dev-java/velocity/ChangeLog index 07b0f2de43ee..04db66092c4f 100644 --- a/dev-java/velocity/ChangeLog +++ b/dev-java/velocity/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-java/velocity -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/ChangeLog,v 1.23 2006/08/14 19:28:37 nelchael Exp $ +# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/ChangeLog,v 1.24 2007/02/07 09:27:47 betelgeuse Exp $ + + 07 Feb 2007; Petteri Räty <betelgeuse@gentoo.org> velocity-1.4-r4.ebuild: + Add a workaround for bug #158720 and cleanup ebuild. *velocity-1.4-r4 (14 Aug 2006) diff --git a/dev-java/velocity/velocity-1.4-r4.ebuild b/dev-java/velocity/velocity-1.4-r4.ebuild index ce568a435f6b..5a6722d16d90 100644 --- a/dev-java/velocity/velocity-1.4-r4.ebuild +++ b/dev-java/velocity/velocity-1.4-r4.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# 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.4-r4.ebuild,v 1.1 2006/08/14 19:28:37 nelchael Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/velocity/velocity-1.4-r4.ebuild,v 1.2 2007/02/07 09:27:47 betelgeuse Exp $ inherit java-pkg-2 java-ant-2 eutils @@ -13,12 +13,14 @@ SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="doc source" -DEPEND=">=virtual/jdk-1.3.1 +DEPEND=" + !doc? ( >=virtual/jdk-1.4 ) + doc? ( || ( =virtual/jdk-1.4* =virtual/jdk-1.5* ) ) dev-java/ant-core dev-java/antlr dev-java/junit source? ( app-arch/zip )" -RDEPEND=">=virtual/jdk-1.3.1 +RDEPEND=">=virtual/jdk-1.4 dev-java/bcel dev-java/commons-collections =dev-java/jdom-1.0_beta9* @@ -35,15 +37,16 @@ pkg_setup() { eerror "flag turned on." die "log4j not built with the javamail use flag" fi + java-pkg-2_pkg_setup } src_unpack() { unpack ${A} - cd ${S} + cd "${S}" epatch ${FILESDIR}/${P}-versioned_jar.patch - cd ${S}/build/lib + cd "${S}/build/lib" rm *.jar java-pkg_jar-from antlr java-pkg_jar-from bcel @@ -59,18 +62,17 @@ src_unpack() { } src_compile () { - cd ${S}/build + cd "${S}/build" local antflags="jar jar-core jar-util jar-servlet" - use doc && antflags="${antflags} javadocs" - - eant ${antflags} || die "Ant failed" + eant ${antflags} $(use_doc javadocs) || die "Ant failed" } src_install () { java-pkg_dojar bin/*.jar - dodoc NOTICE README.txt + dodoc NOTICE README.txt || die + #has other stuff besides api too use doc && java-pkg_dohtml -r docs/* use source && java-pkg_dosrc src/java/* } |