diff options
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/antlr/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/antlr/antlr-2.7.7-r1.ebuild | 128 | ||||
-rw-r--r-- | dev-java/antlr/antlr-2.7.7-r3.ebuild | 167 | ||||
-rw-r--r-- | dev-java/antlr/antlr-2.7.7-r4.ebuild | 171 | ||||
-rw-r--r-- | dev-java/antlr/antlr-2.7.7.ebuild | 124 |
5 files changed, 5 insertions, 595 deletions
diff --git a/dev-java/antlr/ChangeLog b/dev-java/antlr/ChangeLog index a54a85509c5f..ee2ab667756c 100644 --- a/dev-java/antlr/ChangeLog +++ b/dev-java/antlr/ChangeLog @@ -1,11 +1,11 @@ # ChangeLog for dev-java/antlr # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/ChangeLog,v 1.101 2014/01/03 15:43:07 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/ChangeLog,v 1.102 2014/01/03 15:51:36 ulm Exp $ - 03 Jan 2014; Ulrich Müller <ulm@gentoo.org> antlr-2.7.7.ebuild, - antlr-2.7.7-r1.ebuild, antlr-2.7.7-r2.ebuild, antlr-2.7.7-r3.ebuild, - antlr-2.7.7-r4.ebuild, antlr-2.7.7-r5.ebuild: - Fix LICENSE, bug 496690. + 03 Jan 2014; Ulrich Müller <ulm@gentoo.org> -antlr-2.7.7.ebuild, + -antlr-2.7.7-r1.ebuild, antlr-2.7.7-r2.ebuild, -antlr-2.7.7-r3.ebuild, + -antlr-2.7.7-r4.ebuild, antlr-2.7.7-r5.ebuild: + Fix LICENSE, bug 496690. Clean up. 05 Sep 2013; Michał Górny <mgorny@gentoo.org> antlr-2.7.7-r1.ebuild, antlr-2.7.7-r3.ebuild, antlr-2.7.7-r4.ebuild, antlr-2.7.7-r5.ebuild: diff --git a/dev-java/antlr/antlr-2.7.7-r1.ebuild b/dev-java/antlr/antlr-2.7.7-r1.ebuild deleted file mode 100644 index 8522bf5edffd..000000000000 --- a/dev-java/antlr/antlr-2.7.7-r1.ebuild +++ /dev/null @@ -1,128 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.7-r1.ebuild,v 1.7 2014/01/03 15:43:07 ulm Exp $ - -EAPI="5" - -PYTHON_COMPAT=( python2_{6,7} ) - -DISTUTILS_OPTIONAL="y" -DISTUTILS_SINGLE_IMPL="y" -DISTUTILS_IN_SOURCE_BUILD="y" - -inherit base java-pkg-2 mono autotools distutils-r1 multilib - -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 ~x86-fbsd" -IUSE="doc debug examples mono +cxx +java python script source" - -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}/2.7.7-gcc-4.3.patch" "${FILESDIR}/2.7.7-gcc-4.4.patch" "${FILESDIR}/2.7.7-makefixes.patch" ) - -pkg_setup() { - java-pkg-2_pkg_setup - - if use python ; then - python-single-r1_pkg_setup - fi -} - -src_prepare() { - base_src_prepare - - # 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 || die "compile failed" - - sed -e "s|@prefix@|/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 > "${S}"/antlr.pc -} - -src_install() { - exeinto /usr/bin - doexe "${S}"/scripts/antlr-config - - if use cxx ; then - cd "${S}"/lib/cpp - einstall || die "failed to install C++ files" - fi - - if use java ; then - java-pkg_dojar "${S}"/antlr/antlr.jar - - use script && java-pkg_dolauncher antlr --main antlr.Tool - - use source && java-pkg_dosrc "${S}"/antlr - use doc && java-pkg_dohtml -r "${S}"/doc/* - fi - - if use mono ; then - cd "${S}"/lib - - dodir /usr/$(get_libdir)/antlr/ - insinto /usr/$(get_libdir)/antlr/ - - doins antlr.astframe.dll - doins antlr.runtime.dll - - insinto /usr/$(get_libdir)/pkgconfig - doins "${S}"/antlr.pc - fi - - if use python ; then - pushd "${S}"/lib/python > /dev/null - distutils-r1_python_install - popd > /dev/null - fi - - if use examples ; then - find "${S}"/examples -iname Makefile\* -exec rm \{\} \; - - dodir /usr/share/doc/${PF}/examples - 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 - - newdoc "${S}"/README.txt README || die -} diff --git a/dev-java/antlr/antlr-2.7.7-r3.ebuild b/dev-java/antlr/antlr-2.7.7-r3.ebuild deleted file mode 100644 index cc5e4ac58883..000000000000 --- a/dev-java/antlr/antlr-2.7.7-r3.ebuild +++ /dev/null @@ -1,167 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.7-r3.ebuild,v 1.7 2014/01/03 15:43:07 ulm Exp $ - -EAPI="5" - -PYTHON_COMPAT=( python2_{6,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 ~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}/2.7.7-gcc-4.3.patch" "${FILESDIR}/2.7.7-gcc-4.4.patch" "${FILESDIR}/2.7.7-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-getCC)} ${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 - - # 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" || die "compile failed" - if use cxx; then - pushd lib/cpp/src > /dev/null - make_shared_lib libantlr.a || die - if use static-libs; then - make clean - emake || die "compile static failed" - fi - popd > /dev/null - fi - 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 > "${S}"/antlr.pc -} - -src_install() { - exeinto /usr/bin - doexe "${S}"/scripts/antlr-config - - if use cxx ; then - cd "${S}"/lib/cpp - einstall || die "failed to install C++ files" - dolib.so src/libantlr$(get_libname $(get_major_version)) || die - dosym libantlr$(get_libname $(get_major_version)) \ - /usr/$(get_libdir)/libantlr$(get_libname) - use static-libs && dolib.a src/libantlr.a - fi - - if use java ; then - java-pkg_dojar "${S}"/antlr/antlr.jar - - use script && java-pkg_dolauncher antlr --main antlr.Tool - - use source && java-pkg_dosrc "${S}"/antlr - use doc && java-pkg_dohtml -r "${S}"/doc/* - fi - - if use mono ; then - cd "${S}"/lib - - dodir /usr/$(get_libdir)/antlr/ - insinto /usr/$(get_libdir)/antlr/ - - doins antlr.astframe.dll - doins antlr.runtime.dll - - insinto /usr/$(get_libdir)/pkgconfig - doins "${S}"/antlr.pc - fi - - if use python ; then - pushd "${S}"/lib/python > /dev/null - distutils-r1_python_install - popd > /dev/null - fi - - if use examples ; then - find "${S}"/examples -iname Makefile\* -exec rm \{\} \; - - dodir /usr/share/doc/${PF}/examples - 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 - - newdoc "${S}"/README.txt README || die -} diff --git a/dev-java/antlr/antlr-2.7.7-r4.ebuild b/dev-java/antlr/antlr-2.7.7-r4.ebuild deleted file mode 100644 index eb16f89e895c..000000000000 --- a/dev-java/antlr/antlr-2.7.7-r4.ebuild +++ /dev/null @@ -1,171 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.7-r4.ebuild,v 1.6 2014/01/03 15:43:07 ulm Exp $ - -EAPI="5" - -PYTHON_COMPAT=( python2_{6,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 ~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}/2.7.7-gcc-4.3.patch" "${FILESDIR}/2.7.7-gcc-4.4.patch" "${FILESDIR}/2.7.7-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-getCC)} ${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 - - if ! use static-libs ; then - epatch "${FILESDIR}/${PV}-static-libs-fix.patch" - fi - - # 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" || die "compile failed" - if use cxx; then - pushd lib/cpp/src > /dev/null - make_shared_lib libantlr.a || die - if use static-libs; then - make clean - emake || die "compile static failed" - fi - popd > /dev/null - fi - 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 > "${S}"/antlr.pc -} - -src_install() { - exeinto /usr/bin - doexe "${S}"/scripts/antlr-config - - if use cxx ; then - cd "${S}"/lib/cpp - einstall || die "failed to install C++ files" - dolib.so src/libantlr$(get_libname $(get_major_version)) || die - dosym libantlr$(get_libname $(get_major_version)) \ - /usr/$(get_libdir)/libantlr$(get_libname) - use static-libs && dolib.a src/libantlr.a - fi - - if use java ; then - java-pkg_dojar "${S}"/antlr/antlr.jar - - use script && java-pkg_dolauncher antlr --main antlr.Tool - - use source && java-pkg_dosrc "${S}"/antlr - use doc && java-pkg_dohtml -r "${S}"/doc/* - fi - - if use mono ; then - cd "${S}"/lib - - dodir /usr/$(get_libdir)/antlr/ - insinto /usr/$(get_libdir)/antlr/ - - doins antlr.astframe.dll - doins antlr.runtime.dll - - insinto /usr/$(get_libdir)/pkgconfig - doins "${S}"/antlr.pc - fi - - if use python ; then - pushd "${S}"/lib/python > /dev/null - distutils-r1_python_install - popd > /dev/null - fi - - if use examples ; then - find "${S}"/examples -iname Makefile\* -exec rm \{\} \; - - dodir /usr/share/doc/${PF}/examples - 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 - - newdoc "${S}"/README.txt README || die -} diff --git a/dev-java/antlr/antlr-2.7.7.ebuild b/dev-java/antlr/antlr-2.7.7.ebuild deleted file mode 100644 index 4ab35f3eb3ff..000000000000 --- a/dev-java/antlr/antlr-2.7.7.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.7.ebuild,v 1.21 2014/01/03 15:43:07 ulm Exp $ - -EAPI="3" -PYTHON_DEPEND="python? 2" - -inherit base java-pkg-2 mono distutils multilib - -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 ~x86-fbsd" -IUSE="doc debug examples mono +cxx +java python script source" - -# TODO do we actually need jdk at runtime? -RDEPEND=">=virtual/jdk-1.3 - mono? ( dev-lang/mono )" -DEPEND="${RDEPEND} - script? ( !dev-util/pccts ) - source? ( app-arch/zip )" - -PATCHES=( "${FILESDIR}/2.7.7-gcc-4.3.patch" "${FILESDIR}/2.7.7-gcc-4.4.patch" "${FILESDIR}/2.7.7-makefixes.patch" ) - -pkg_setup() { - java-pkg-2_pkg_setup - - if use python; then - python_set_active_version 2 - python_pkg_setup - fi -} - -src_prepare() { - base_src_prepare -} - -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 || die "compile failed" - - sed -e "s|@prefix@|/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 > "${S}"/antlr.pc -} - -src_install() { - exeinto /usr/bin - doexe "${S}"/scripts/antlr-config - - if use cxx ; then - cd "${S}"/lib/cpp - einstall || die "failed to install C++ files" - fi - - if use java ; then - java-pkg_dojar "${S}"/antlr/antlr.jar - - use script && java-pkg_dolauncher antlr --main antlr.Tool - - use source && java-pkg_dosrc "${S}"/antlr - use doc && java-pkg_dohtml -r doc/* - fi - - if use mono ; then - cd "${S}"/lib - - dodir /usr/$(get_libdir)/antlr/ - insinto /usr/$(get_libdir)/antlr/ - - doins antlr.astframe.dll - doins antlr.runtime.dll - - insinto /usr/$(get_libdir)/pkgconfig - doins "${S}"/antlr.pc - fi - - if use python ; then - cd "${S}"/lib/python - distutils_src_install - fi - - if use examples ; then - find "${S}"/examples -iname Makefile\* -exec rm \{\} \; - - dodir /usr/share/doc/${PF}/examples - 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 - - newdoc "${S}"/README.txt README || die -} - -pkg_postinst() { - use python && distutils_pkg_postinst -} - -pkg_postrm() { - use python && distutils_pkg_postrm -} |