diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2009-03-29 00:13:43 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2009-03-29 00:13:43 +0000 |
commit | b9c99d2367593dd58ba71ea6896e79d87dfe91c7 (patch) | |
tree | cc9b16fcf5a3a1642fc0ff409de73b920e33bf53 /dev-java | |
parent | - keyword ~arm (diff) | |
download | gentoo-2-b9c99d2367593dd58ba71ea6896e79d87dfe91c7.tar.gz gentoo-2-b9c99d2367593dd58ba71ea6896e79d87dfe91c7.tar.bz2 gentoo-2-b9c99d2367593dd58ba71ea6896e79d87dfe91c7.zip |
Moving stringtemplate to the main tree from java-experimental. Several Java team members showed in the logs. Part of bug #146952.
(Portage version: 2.2_rc27/cvs/Linux i686)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/stringtemplate/ChangeLog | 12 | ||||
-rw-r--r-- | dev-java/stringtemplate/files/stringtemplate-3.1_beta1-javadoc.patch | 19 | ||||
-rw-r--r-- | dev-java/stringtemplate/metadata.xml | 5 | ||||
-rw-r--r-- | dev-java/stringtemplate/stringtemplate-3.2.ebuild | 54 |
4 files changed, 90 insertions, 0 deletions
diff --git a/dev-java/stringtemplate/ChangeLog b/dev-java/stringtemplate/ChangeLog new file mode 100644 index 000000000000..5ac43fd3b559 --- /dev/null +++ b/dev-java/stringtemplate/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-java/stringtemplate +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/stringtemplate/ChangeLog,v 1.1 2009/03/29 00:13:43 betelgeuse Exp $ + +*stringtemplate-3.2 (29 Mar 2009) + + 29 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> + +files/stringtemplate-3.1_beta1-javadoc.patch, +metadata.xml, + +stringtemplate-3.2.ebuild: + Moving stringtemplate to the main tree from java-experimental. Several Java + team members showed in the logs. Part of bug #146952. + diff --git a/dev-java/stringtemplate/files/stringtemplate-3.1_beta1-javadoc.patch b/dev-java/stringtemplate/files/stringtemplate-3.1_beta1-javadoc.patch new file mode 100644 index 000000000000..c4fbbf119f12 --- /dev/null +++ b/dev-java/stringtemplate/files/stringtemplate-3.1_beta1-javadoc.patch @@ -0,0 +1,19 @@ +--- build.xml 2007-05-25 23:07:06.000000000 +0200 ++++ build.xml 2007-05-25 23:07:31.000000000 +0200 +@@ -189,7 +189,7 @@ + <!-- =================================================================== -->
+ <target name="javadocs" depends="init,prepare-sources">
+ <mkdir dir="${build.javadocs}"/>
+- <javadoc packagenames="${packages}"
++ <javadoc + sourcepath="${build.src}"
+ destdir="${build.javadocs}"
+ author="true"
+@@ -197,7 +197,6 @@ + windowtitle="${Name} API"
+ doctitle="${Name} API Documentation"
+ bottom="Copyright © ${copyright}"
+- additionalparam="${javadocs.additionalparam}"
+ />
+ </target>
+
diff --git a/dev-java/stringtemplate/metadata.xml b/dev-java/stringtemplate/metadata.xml new file mode 100644 index 000000000000..7303cef96964 --- /dev/null +++ b/dev-java/stringtemplate/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> +</pkgmetadata> diff --git a/dev-java/stringtemplate/stringtemplate-3.2.ebuild b/dev-java/stringtemplate/stringtemplate-3.2.ebuild new file mode 100644 index 000000000000..617d155117be --- /dev/null +++ b/dev-java/stringtemplate/stringtemplate-3.2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/stringtemplate/stringtemplate-3.2.ebuild,v 1.1 2009/03/29 00:13:43 betelgeuse Exp $ + +EAPI="2" +JAVA_PKG_IUSE="doc source" +WANT_ANT_TASKS="ant-antlr" + +inherit eutils java-pkg-2 java-ant-2 + +MY_PV="${PV/_beta/b}" +S_PV="${PV/_beta/.b}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="A Java template engine" +HOMEPAGE="http://www.stringtemplate.org/" +SRC_URI="http://www.stringtemplate.org/download/${MY_P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +# no junit targets in build.xml, but unconditional compile and jar of test +# classes, oh well +COMMON_DEPEND="dev-java/antlr:0 + dev-java/junit:0" + +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEPEND}" + +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEPEND}" + +S="${WORKDIR}/${PN}-${S_PV}" + +java_prepare() { + # fix <javadoc> call + epatch "${FILESDIR}/${PN}-3.1_beta1-javadoc.patch" + java-ant_rewrite-classpath + rm -v lib/*.jar || die + # force regeneration with our antlr2 + touch src/org/antlr/stringtemplate/language/*.g || die +} + +EANT_GENTOO_CLASSPATH="antlr,junit" +EANT_DOC_TARGET="javadocs" + +src_install() { + java-pkg_dojar build/${PN}.jar + + dodoc README.txt CHANGES.txt || die + use doc && java-pkg_dojavadoc docs/api + use source && java-pkg_dosrc src/org +} |