mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-03 04:37:06 -08:00
dev-java/stringtemplate: remove obsolete 3.2.1-r1
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/21018/commits/d84c8819d8e6a3635543a361d4254578c570d45e Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit epatch java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="A Java template engine"
|
||||
HOMEPAGE="https://www.stringtemplate.org/"
|
||||
SRC_URI="https://github.com/antlr/${PN}3/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
CDEPEND=">=dev-java/antlr-2.7.7-r7:0"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
>=virtual/jdk-1.6
|
||||
test? ( >=dev-java/junit-4.11:4 )"
|
||||
|
||||
S="${WORKDIR}/${P}"
|
||||
JAVA_GENTOO_CLASSPATH="antlr"
|
||||
JAVA_SRC_DIR="src"
|
||||
|
||||
java_prepare() {
|
||||
# https://github.com/antlr/stringtemplate3/pull/3
|
||||
epatch "${FILESDIR}/${PV}-test-fixes.patch"
|
||||
|
||||
java-pkg_clean
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local G; for G in action template angle.bracket.template eval group interface; do # from build.xml
|
||||
antlr -o src/org/antlr/stringtemplate/language/{,${G}.g} || die
|
||||
done
|
||||
|
||||
java-pkg-simple_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg-simple_src_install
|
||||
dodoc {CHANGES,README}.txt
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd test || die
|
||||
local CP=".:${S}/${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})"
|
||||
|
||||
local TESTS=$(find * -name "Test*.java")
|
||||
TESTS="${TESTS//.java}"
|
||||
TESTS="${TESTS//\//.}"
|
||||
|
||||
ejavac -classpath "${CP}" $(find -name "*.java")
|
||||
ejunit4 -classpath "${CP}" ${TESTS}
|
||||
}
|
||||
Reference in New Issue
Block a user