summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/stringtemplate')
-rw-r--r--dev-java/stringtemplate/ChangeLog10
-rw-r--r--dev-java/stringtemplate/Manifest12
-rw-r--r--dev-java/stringtemplate/stringtemplate-3.2.1.ebuild79
3 files changed, 94 insertions, 7 deletions
diff --git a/dev-java/stringtemplate/ChangeLog b/dev-java/stringtemplate/ChangeLog
index b27adf542812..d808345553df 100644
--- a/dev-java/stringtemplate/ChangeLog
+++ b/dev-java/stringtemplate/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/stringtemplate
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/stringtemplate/ChangeLog,v 1.9 2010/01/15 20:38:50 abcd Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/stringtemplate/ChangeLog,v 1.10 2011/03/15 20:00:07 serkan Exp $
+
+*stringtemplate-3.2.1 (15 Mar 2011)
+
+ 15 Mar 2011; Serkan Kaba <serkan@gentoo.org> +stringtemplate-3.2.1.ebuild:
+ Version bump to fix bug #358943. Thanks to Oliver Nautsch
+ <oliver.nautsch@gmail.com> for the ebuild.
15 Jan 2010; Jonathan Callen <abcd@gentoo.org> stringtemplate-3.2.ebuild:
Add prefix keywords
diff --git a/dev-java/stringtemplate/Manifest b/dev-java/stringtemplate/Manifest
index 6210e0b43570..34b37db6b92c 100644
--- a/dev-java/stringtemplate/Manifest
+++ b/dev-java/stringtemplate/Manifest
@@ -2,14 +2,16 @@
Hash: SHA1
AUX stringtemplate-3.1_beta1-javadoc.patch 676 RMD160 cc9ffd418a91160491ae777720cb0139f8ff6638 SHA1 0771cde5b0d1b9d49cdb7f1ec0b2f086b6b1eff4 SHA256 f08974bef0f7e794ab8761cc5ff26e0b9dd9c5ba81224cc23561487018e4a5e1
+DIST stringtemplate-3.2.1.tar.gz 1039803 RMD160 27d5192c8eca8daa2c33a617126594c0c63abf1c SHA1 de107b1df329b3636f2867c1408cab6f1b628206 SHA256 3a0adbb7510c2822ca515c635e1ff1469b3ac78f6d2072e48478876b9191de20
DIST stringtemplate-3.2.tar.gz 741708 RMD160 257928e55d187fe66f9493829f1ff3cb48ed6f60 SHA1 b4a51b362c88b0cd10b1e1ef8046d87cdd0d7cb2 SHA256 de85449fca6c11bf2efff73fa2c852ccf84b0db1e129a6948748659952f6825e
+EBUILD stringtemplate-3.2.1.ebuild 2211 RMD160 a76228c4a2ec6e7e7f79f853c69daebb70e73b1b SHA1 33a76e5433149a6a258df79e3042b4b284be3b7c SHA256 e7b35ae8a4be8936ced16041073b07b767f43302f2d1f40dc6d836e574682bd4
EBUILD stringtemplate-3.2.ebuild 1395 RMD160 6f12d4efe580048578b89c3f28698b34e90638a8 SHA1 b3f6b205e1a9bce9d594547b0174273954126c5c SHA256 f8025e992d438247fdb3afa7a3e5c7edadb18e347563e595645a024d441d5484
-MISC ChangeLog 1444 RMD160 611c3337c899de06270b755b18410a86d82297e7 SHA1 0396d71c4b4446f64040f6a0318d2f519ae4e893 SHA256 3972c9a2860b079662b816f6ef155b34b85e48099b40fd24279c9259f69bf78f
+MISC ChangeLog 1667 RMD160 bcced20e5f238de8d294e87a4350b946161a2505 SHA1 7e68fd823899137117a519d7c1507b1412ca9fb4 SHA256 fbbdd6af5098c946832d5a93ab68e9716b2b433720d108dd9260610a2286f8f9
MISC metadata.xml 158 RMD160 493079b5fb71d66863beea1b023901c90ba81be5 SHA1 77cd509a8b3c377b9a24480b48a5d5481b7874f1 SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.14 (GNU/Linux)
+Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAktQ0mAACgkQOypDUo0oQOrIuACfeJqAOL9iceVPRDXRR2hGB030
-fGEAoI2gYQ2CpgELF3MZNJ6Y4Gj8md2T
-=b98p
+iEYEARECAAYFAk1/xVAACgkQRh6X64ivZaLhCACcCXtouKvrPZ0HgSyzsaWZCbk9
+qkcAnR1FI1pNHb41exZASLbu8cafB7pL
+=S6BK
-----END PGP SIGNATURE-----
diff --git a/dev-java/stringtemplate/stringtemplate-3.2.1.ebuild b/dev-java/stringtemplate/stringtemplate-3.2.1.ebuild
new file mode 100644
index 000000000000..f5b66a1a7688
--- /dev/null
+++ b/dev-java/stringtemplate/stringtemplate-3.2.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/stringtemplate/stringtemplate-3.2.1.ebuild,v 1.1 2011/03/15 20:00:07 serkan Exp $
+
+EAPI="2"
+JAVA_PKG_IUSE="doc source test"
+
+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="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE=""
+
+COMMON_DEPEND=">=dev-java/antlr-2.7.7:0[java]"
+
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEPEND}"
+
+DEPEND=">=virtual/jdk-1.5
+ test? ( dev-java/junit:4 )
+ ${COMMON_DEPEND}"
+
+S="${WORKDIR}/${PN}-${S_PV}"
+
+java_prepare() {
+ find . -name "*.class" -print -delete || die "Failed deleting precompiled classes"
+ find . -name "*.jar" -print -delete || die "Failed deleting prebuilt classes"
+}
+
+antlr2() {
+ java -cp $(java-pkg_getjars antlr) antlr.Tool "${@}" || die "antlr2 failed"
+}
+
+src_compile() {
+ einfo "Generate from grammars"
+ cd src/org/antlr/stringtemplate/language || die
+ # order same as in pom.xml
+ antlr2 template.g
+ antlr2 angle.bracket.template.g
+ antlr2 action.g
+ antlr2 eval.g
+ antlr2 group.g
+ antlr2 interface.g
+
+ cd "${S}" || die
+ find src -name "*.java" >> "${T}/sources" || die
+ ejavac -d target/classes -cp $(java-pkg_getjars antlr) "@${T}/sources"
+
+ # create javadoc
+ if use doc; then
+ javadoc -classpath $(java-pkg_getjars antlr) -d javadoc "@${T}/sources" || die "Javadoc failed"
+ fi
+
+ # jar things up
+ cd target/classes || die
+ find -type f >> "${T}/classes" || die
+ jar cf ${PN}.jar "@${T}/classes" || die "jar failed"
+}
+
+src_install() {
+ java-pkg_dojar target/classes/${PN}.jar
+ dodoc README.txt CHANGES.txt || die
+ use source && java-pkg_dosrc src/*
+ use doc && java-pkg_dojavadoc javadoc
+}
+
+src_test() {
+ find test -name "*.java" >> "${T}/test-sources" || die
+ ejavac -cp target/classes:$(java-pkg_getjars antlr,junit-4) -d target/test-classes "@${T}/test-sources"
+ ejunit4 -cp target/classes:target/test-classes org.antlr.stringtemplate.test.TestStringTemplate
+}