summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-01-02 23:26:47 +0000
committerJames Le Cuirot <chewi@gentoo.org>2016-01-14 21:42:52 +0000
commit95efce9a3e132780e1b387ff3eb7465fe8ecaecd (patch)
tree4ad8c8de563c1d71ae4b26f203e6924ead4a8bd6 /dev-java/antlr
parentdev-java/netbeans-enterprise: Remove old (diff)
downloadgentoo-95efce9a3e132780e1b387ff3eb7465fe8ecaecd.tar.gz
gentoo-95efce9a3e132780e1b387ff3eb7465fe8ecaecd.tar.bz2
gentoo-95efce9a3e132780e1b387ff3eb7465fe8ecaecd.zip
dev-java/antlr: Remove old
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-java/antlr')
-rw-r--r--dev-java/antlr/Manifest2
-rw-r--r--dev-java/antlr/antlr-2.7.7-r5.ebuild172
-rw-r--r--dev-java/antlr/antlr-3.1.3-r3.ebuild117
-rw-r--r--dev-java/antlr/metadata.xml1
4 files changed, 0 insertions, 292 deletions
diff --git a/dev-java/antlr/Manifest b/dev-java/antlr/Manifest
index 2aa81bacbe11..42cc0486aa05 100644
--- a/dev-java/antlr/Manifest
+++ b/dev-java/antlr/Manifest
@@ -1,7 +1,5 @@
DIST 4.4.zip 1107695 SHA256 68a79e4accae4dfd9d45a8292fe9b2812c6a3ec1d903412e205a06ead083b8ae SHA512 5e4a92b3d0bb8583f52cbed554ef68909412cd3e9de7589870eead3359a6f5efb492029c3bcce50d6a19a220c83c809824dbde3d08a6b39a42e9fbe3eaef8ce4 WHIRLPOOL 80cf60f9679cd5d3cb512b2e1a9c4987d34fb7994a976b42c95351fb4670944343dd8b8cf0e1738b94cc177122dcf635ee5d1a262290f6b89a8e38d06adc2077
DIST antlr-2.7.7.tar.gz 1816180 SHA256 853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9 SHA512 faa72d2ddcba434ef1233e70c1549e63eba67c00793966322e821cf7f015cccb804448cb92d8fbef0429f59928fad65ec954f8ffbda0acbb8e983de0806d349d WHIRLPOOL def5ac0ddfe5a65f9f7d5489d039048c5d630b46cd5626593bd12e9b393d5ec26884f90b013bcdf58511e26abbf06e0d7b3789a11298b017f7e70af2ec8dde4a
-DIST antlr-3.1.3-generated.tar.bz2 47167 SHA256 ed326de0f1f92dd72e8d9644e8eaf59d02b9725b4b5218f5c54e12100f8d05f4 SHA512 4ea01ad0d5fc99607ffa445fb99ae424648b713dca293d05ff4ec064cac0a0fe5073df3834f9b6990e99f3cefc5cdd191a1ee3c3951d97615908b94630070bba WHIRLPOOL 61f7829811251a35528c322952830dc5a6e82e23e36f664af179b41955734e771aaad070298666a15be0f41982dbb8b19955b5967987582c6b666e602384d060
-DIST antlr-3.1.3.tar.gz 10743515 SHA256 1fca0fc7304140807e64ec263a58d93ef1b380cfb6407084e6909f8220bc1039 SHA512 6814b970740bd61e6727f81b1a2fb4249f8f029e756694d852224eee54e0231540f8e23d2fa8f78eef234d6497f5fa1411e76020ffaed737d8c1a5178321a062 WHIRLPOOL 9d9a1caf39595dbb9b300f730091cfa38a12ab10b8a59d58c7bdd9ba4674bce9f49bc21b5b170129216ff9d880dbf5f0bdb5bfe614b003a4ffe948948b5413c9
DIST antlr-3.2.jar 1928009 SHA256 4c8737014e7ca0d2c85171edf37f5a26b2d8d8237c283357b81a3269b6848d38 SHA512 25a61404c4b41e48eeaed49d41122f9400092248a10eb776d75ce3513295870eca1acc4b06c74925284a27cc64ca0506e34de39fb91996f09727cc5cc72dd9a6 WHIRLPOOL 19d99c9f50339ee9ef31e9458ac3a44ce52aa89ed84f96be905d626e3a53d5e2bbdb2e8eb4c5ca16413e7493499b141f940dd200658f8e60e9ecbd777f83a84b
DIST antlr-3.2.tar.gz 837320 SHA256 01548fa03ef1f0ed05a93f0749b65db8a35a191ad7ad34e1e6a6a2529ca2ef45 SHA512 8984221cd89253c033a4596dd56cd51b297393a53b4682f5ab401172745d343371bf0d45417fa286ce972add1b4e474f1f3091fa1345158dbfc040702d61607c WHIRLPOOL 40080efc13c88312aaa318cde097f240e711b477e264739ea71b6c246ede29ac48f42eccd55365af531eb428f1ca1d89386d7e5753b6bc35cad9bf937b70e6de
DIST antlr-3.5.2-complete-no-st3.jar 1862097 SHA256 46531814ba9739cdf20c6c1789c252d3d95b68932813d79fb8bbfdf8d5840417 SHA512 227f56edfb8d1935fc0f5bd69a730a2230b173f38baa7837b6dac9b4a10c5d4a9b2eb806416b21bed2621bb0b8e0fb98a6f48da2660b326728326f078bc28ea9 WHIRLPOOL 5c5285894e2d4182650a8a573ae83996e1f463d6ce866ddcff43959b16cf1070c3042b21d80c9350865716a6719d15fcd42b7370b4af69b6eca863d26ffcc325
diff --git a/dev-java/antlr/antlr-2.7.7-r5.ebuild b/dev-java/antlr/antlr-2.7.7-r5.ebuild
deleted file mode 100644
index dad4b634104d..000000000000
--- a/dev-java/antlr/antlr-2.7.7-r5.ebuild
+++ /dev/null
@@ -1,172 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-
-PYTHON_COMPAT=( python2_7 )
-
-DISTUTILS_OPTIONAL="y"
-DISTUTILS_SINGLE_IMPL="y"
-DISTUTILS_IN_SOURCE_BUILD="y"
-
-inherit base java-pkg-2 mono autotools distutils-r1 multilib toolchain-funcs versionator
-
-DESCRIPTION="A parser generator for C++, C#, Java, and Python"
-HOMEPAGE="http://www.antlr2.org/"
-SRC_URI="http://www.antlr2.org/download/${P}.tar.gz"
-
-LICENSE="public-domain"
-SLOT="0"
-KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="doc debug examples mono +cxx +java python script source static-libs"
-
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-# TODO do we actually need jdk at runtime?
-RDEPEND="python? ( ${PYTHON_DEPS} )
- >=virtual/jdk-1.3
- mono? ( dev-lang/mono )"
-DEPEND="${RDEPEND}
- script? ( !dev-util/pccts )
- source? ( app-arch/zip )"
-
-PATCHES=( "${FILESDIR}"/${PV}-{gcc-4.3,gcc-4.4,makefixes}.patch )
-
-make_shared_lib() {
- local soname=$(basename "${1%.a}")$(get_libname $(get_major_version))
- einfo "Making ${soname}"
- [[ ${CHOST} == *-darwin* ]] \
- && make_shared_lib_macho "${soname}" "$1" "$2"\
- || make_shared_lib_elf "${soname}" "$1" "$2"
-}
-
-make_shared_lib_elf() {
- local soname=$1 archive=$2 cc=$3
- ${cc:-$(tc-getCXX)} ${LDFLAGS} \
- -shared -Wl,-soname="${soname}" \
- -Wl,--whole-archive "${archive}" -Wl,--no-whole-archive \
- -o $(dirname "${archive}")/"${soname}" || return 1
-}
-
-make_shared_lib_macho() {
- local soname=$1 archive=$2 cc=$3
- ${cc:-$(tc-getCXX)} ${LDFLAGS} \
- -dynamiclib -install_name "${EPREFIX}/usr/$(get_libdir)/${soname}" \
- -force_load "${archive}" \
- -o $(dirname "${archive}")/"${soname}" || return 1
-}
-
-pkg_setup() {
- java-pkg-2_pkg_setup
-
- if use python ; then
- python-single-r1_pkg_setup
- fi
-}
-
-src_prepare() {
- base_src_prepare
-
- sed -i \
- -e 's/install:.*this-install/install:/' \
- lib/cpp/src/Makefile.in || die
-
- use static-libs || epatch "${FILESDIR}/${PV}-static-libs-fix.patch"
-
- # See bug #468540, this can be removed once bug #469150 is fixed.
- sed -i 's/tlib lib ar/ar/' configure.in || die
- eautoreconf
-}
-
-src_configure() {
- # don't ask why, but this is needed for stuff to get built properly
- # across the various JDKs
- JAVACFLAGS="+ ${JAVACFLAGS}"
-
- # mcs for https://bugs.gentoo.org/show_bug.cgi?id=172104
- CSHARPC="mcs" econf $(use_enable java) \
- $(use_enable python) \
- $(use_enable mono csharp) \
- $(use_enable debug) \
- $(use_enable examples) \
- $(use_enable cxx) \
- --enable-verbose
-}
-
-src_compile() {
- emake CXXFLAGS="${CXXFLAGS} -fPIC"
- if use cxx; then
- pushd lib/cpp/src > /dev/null
- make_shared_lib libantlr.a || die
- if use static-libs; then
- make clean
- emake
- fi
- popd > /dev/null
- fi
-
- if use python ; then
- pushd "${S}"/lib/python > /dev/null
- distutils-r1_src_compile
- popd > /dev/null
- fi
-}
-
-src_install() {
- dobin scripts/antlr-config
-
- if use cxx ; then
- pushd lib/cpp > /dev/null
- einstall
- dolib.so src/libantlr$(get_libname $(get_major_version))
- dosym libantlr$(get_libname $(get_major_version)) \
- /usr/$(get_libdir)/libantlr$(get_libname)
- use static-libs && dolib.a src/libantlr.a
- newdoc AUTHORS{,.cpp}
- newdoc ChangeLog{,.cpp}
- newdoc TODO{,.cpp}
- popd > /dev/null
- fi
-
- if use java ; then
- java-pkg_dojar antlr/antlr.jar
- use script && java-pkg_dolauncher antlr --main antlr.Tool
- use source && java-pkg_dosrc antlr
- use doc && java-pkg_dohtml -r doc/*
- fi
-
- if use mono ; then
- pushd lib > /dev/null
- dodir /usr/$(get_libdir)/antlr/
- insinto /usr/$(get_libdir)/antlr/
- doins antlr.astframe.dll
- doins antlr.runtime.dll
- sed -e "s|@prefix@|${EPREFIX}/usr|" \
- -e 's|@exec_prefix@|${prefix}|' \
- -e "s|@libdir@|\$\{exec_prefix\}/$(get_libdir)/antlr|" \
- -e 's|@libs@|-r:${libdir}/antlr.astframe.dll -r:${libdir}/antlr.runtime.dll|' \
- -e "s|@VERSION@|${PV}|" \
- "${FILESDIR}"/antlr.pc.in > antlr.pc
- insinto /usr/$(get_libdir)/pkgconfig
- doins antlr.pc
- popd > /dev/null
- fi
-
- if use python ; then
- pushd "${S}"/lib/python > /dev/null
- distutils-r1_src_install
- popd > /dev/null
- fi
-
- if use examples ; then
- find "${S}"/examples -iname Makefile\* -exec rm \{\} \;
- insinto /usr/share/doc/${PF}/examples
- use cxx && doins -r "${S}"/examples/cpp
- use java && doins -r "${S}"/examples/java
- use mono && doins -r "${S}"/examples/csharp
- use python && doins -r "${S}"/examples/python
- fi
-
- dodoc README.txt
-}
diff --git a/dev-java/antlr/antlr-3.1.3-r3.ebuild b/dev-java/antlr/antlr-3.1.3-r3.ebuild
deleted file mode 100644
index 8a8c83b10f8f..000000000000
--- a/dev-java/antlr/antlr-3.1.3-r3.ebuild
+++ /dev/null
@@ -1,117 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="2"
-JAVA_PKG_IUSE="source"
-
-inherit eutils java-pkg-2 java-ant-2
-
-DESCRIPTION="A parser generator for C++, C#, Java, and Python"
-HOMEPAGE="http://www.antlr.org/"
-# You need to generate v3 grammars so that boostrapping works
-SRC_URI="http://www.antlr.org/download/${P}.tar.gz
- mirror://gentoo/${P}-generated.tar.bz2"
-LICENSE="BSD"
-SLOT="3"
-KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="gunit"
-
-COMMON_DEPEND=">=dev-java/stringtemplate-3.2:0
- >=dev-java/antlr-2.7.7:0[java]
- gunit? ( dev-java/junit:4 )"
-
-RDEPEND=">=virtual/jre-1.5
- ${COMMON_DEPEND}"
-
-DEPEND="${RDEPEND}
- >=virtual/jdk-1.5"
-
-java_prepare() {
- epatch "${FILESDIR}"/${P}-jdk-8.patch || die
-
- rm -v lib/*.jar lib/.*.jar || die
- rm -v runtime/ActionScript/project/lib/*.jar || die
- # We must bundle this as we can't depend on ourselves
- cp -v "${WORKDIR}"/*.java tool/src/main/antlr/org/antlr/grammar/v3 || die
- local version="${PV} $(date '+%B %d, %Y %T')"
- local propertyfile="tool/src/main/resources/org/antlr/antlr.properties"
- [[ $(egrep "^[^#]" ${propertyfile} | wc -l) != 1 ]] \
- && die "Unknown property found"
- sed -i "s/^\(antlr.version\)=.*$/\1=${version}/" ${propertyfile} || die
-}
-
-antlr2() {
- java -cp $(java-pkg_getjars antlr) antlr.Tool "${@}" || die "antlr2 failed"
-}
-
-antlr3() {
- local cp="${S}/bootstrap:${S}/tool/src/main/resources/"
- java -cp "${cp}":$(java-pkg_getjars antlr,stringtemplate) \
- org.antlr.Tool "${@}" || die "building v3 grammars failed"
-}
-
-build_antlr() {
- cd "${S}"
- local dest="${1}"
- # runtime
- find runtime -name "*.java" > "${T}/sources" || die
- # tool
- find tool/src/main -name "*.java" >> "${T}/sources" || die
- ejavac -d "${dest}" -cp $(java-pkg_getjars antlr,stringtemplate) "@${T}/sources"
-}
-
-# Uses maven so let's just do things manully for now
-# when bumping use jardiff and apicheck to make sure
-# produced jars are good
-src_compile() {
- einfo "Bootstrapping antlr3 with bundled sources"
- cd tool/src/main/antlr2/org/antlr/grammar/v2/ || die
- # the command line only takes one at a time
- for grammar in *.g; do
- antlr2 ${grammar} || die
- done
-
- cd "${S}" || die
- mkdir bootstrap || die
- build_antlr bootstrap
-
- einfo "Building v3 grammars with boostrapped antlr"
- local v3dir=tool/src/main/antlr/org/antlr/grammar/v3/
- rm -v "${v3dir}"/*.java || die
- antlr3 "${v3dir}"/*.g
-
- mkdir build || die
- cp -r "${S}"/tool/src/main/resources/* build || die
- build_antlr build
-
- if use gunit; then
- einfo "building gunit"
- antlr3 gunit/src/main/antlr3/org/antlr/gunit/*.g
-
- find gunit -name "*.java" > "${T}/gunit" || die
- ejavac -d build -cp $(java-pkg_getjars stringtemplate,junit-4):build \
- "@${T}/gunit"
-
- cp -vr gunit/src/main/resources/org build || die
- fi
-
- # jar things up
- cd build
- find -type f >> "${T}/classes" || die
- jar cf ${PN}3.jar "@${T}/classes" || die "jar failed"
-}
-
-src_install() {
- # Single jar like upstream
- java-pkg_dojar build/antlr3.jar
- java-pkg_dolauncher antlr3 --main org.antlr.Tool
- use gunit && java-pkg_dolauncher gunit --main org.antlr.gunit.Interp
-
- use source && java-pkg_dosrc tool/src/main/org \
- runtime/Java/src/main/java/org/
-}
-
-pkg_postinst() {
- elog "Currently the ebuild only has support for the Java backend."
-}
diff --git a/dev-java/antlr/metadata.xml b/dev-java/antlr/metadata.xml
index b73c834d5599..e00adfd1a91e 100644
--- a/dev-java/antlr/metadata.xml
+++ b/dev-java/antlr/metadata.xml
@@ -3,7 +3,6 @@
<pkgmetadata>
<herd>java</herd>
<use>
- <flag name="script">Install a script to run antlr</flag>
<flag name="gunit" restrict="&gt;=dev-java/antlr-3.1.3-r1">
gUnit is a "Unit Test" framework for ANTLR grammars
</flag>