From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5145713838B for ; Tue, 29 Sep 2015 21:20:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1D87B21C036; Tue, 29 Sep 2015 21:20:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5ABCC21C04F for ; Tue, 29 Sep 2015 21:20:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 97BBF340BCB for ; Tue, 29 Sep 2015 21:20:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B4290257 for ; Tue, 29 Sep 2015 21:20:13 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1443561583.540e5ea11a42baa65e1b02003c5210ac20f93120.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/velocity/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/velocity/velocity-1.7-r1.ebuild X-VCS-Directories: dev-java/velocity/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 540e5ea11a42baa65e1b02003c5210ac20f93120 X-VCS-Branch: master Date: Tue, 29 Sep 2015 21:20:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ed9dca40-568e-45b8-bbd1-108d09cfea0f X-Archives-Hash: f2cc953d36bb3e2f16b0360ced7e498b commit: 540e5ea11a42baa65e1b02003c5210ac20f93120 Author: William L. Thomson Jr o-sinc com> AuthorDate: Fri Sep 18 00:06:30 2015 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Tue Sep 29 21:19:43 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=540e5ea1 dev-java/velocity: Updated dev-java/jdom slot from 1.0 -> 0 for v1 dev-java/velocity/velocity-1.7-r1.ebuild | 87 ++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/dev-java/velocity/velocity-1.7-r1.ebuild b/dev-java/velocity/velocity-1.7-r1.ebuild new file mode 100644 index 0000000..56d72ea --- /dev/null +++ b/dev-java/velocity/velocity-1.7-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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: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 + 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/* +}