summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2014-12-05 10:34:11 +0000
committerJustin Lecher <jlec@gentoo.org>2014-12-05 10:34:11 +0000
commit0878822771eb7623e8762e4939417ea595862fed (patch)
treec306b4645d25857c07201be327190908f1d4aa10 /sci-mathematics
parentmedia-gfx/shotwell: Drop old (diff)
downloadgentoo-2-0878822771eb7623e8762e4939417ea595862fed.tar.gz
gentoo-2-0878822771eb7623e8762e4939417ea595862fed.tar.bz2
gentoo-2-0878822771eb7623e8762e4939417ea595862fed.zip
sci-mathematics/singular: Drop old
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/singular/ChangeLog7
-rw-r--r--sci-mathematics/singular/metadata.xml16
-rw-r--r--sci-mathematics/singular/singular-3.1.2-r2.ebuild174
-rw-r--r--sci-mathematics/singular/singular-3.1.3.1.ebuild170
-rw-r--r--sci-mathematics/singular/singular-3.1.3.3.ebuild177
-rw-r--r--sci-mathematics/singular/singular-3.1.4-r1.ebuild187
-rw-r--r--sci-mathematics/singular/singular-3.1.4.ebuild179
7 files changed, 14 insertions, 896 deletions
diff --git a/sci-mathematics/singular/ChangeLog b/sci-mathematics/singular/ChangeLog
index fc1cec4b9566..c316bd90afa1 100644
--- a/sci-mathematics/singular/ChangeLog
+++ b/sci-mathematics/singular/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-mathematics/singular
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.59 2014/12/05 10:17:00 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.60 2014/12/05 10:34:11 jlec Exp $
+
+ 05 Dec 2014; Justin Lecher <jlec@gentoo.org> -singular-3.1.2-r2.ebuild,
+ -singular-3.1.3.1.ebuild, -singular-3.1.3.3.ebuild, -singular-3.1.4.ebuild,
+ -singular-3.1.4-r1.ebuild, metadata.xml:
+ Drop old
05 Dec 2014; Agostino Sarubbo <ago@gentoo.org> singular-3.1.6.ebuild:
Stable for x86, wrt bug #529536
diff --git a/sci-mathematics/singular/metadata.xml b/sci-mathematics/singular/metadata.xml
index 936baecd730d..2a047b6737c1 100644
--- a/sci-mathematics/singular/metadata.xml
+++ b/sci-mathematics/singular/metadata.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer>
- <email>tomka@gentoo.org</email>
- <name>Thomas Kahle</name>
-</maintainer>
-<herd>sci-mathematics</herd>
-<use>
- <flag name='boost'>Compile against external boost headers (<pkg>dev-libs/boost</pkg>)</flag>
-</use>
+ <maintainer>
+ <email>tomka@gentoo.org</email>
+ <name>Thomas Kahle</name>
+ </maintainer>
+ <herd>sci-mathematics</herd>
+ <use>
+ <flag name="boost">Compile against external boost headers (<pkg>dev-libs/boost</pkg>)</flag>
+ </use>
</pkgmetadata>
diff --git a/sci-mathematics/singular/singular-3.1.2-r2.ebuild b/sci-mathematics/singular/singular-3.1.2-r2.ebuild
deleted file mode 100644
index 9a3559efc1c6..000000000000
--- a/sci-mathematics/singular/singular-3.1.2-r2.ebuild
+++ /dev/null
@@ -1,174 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.1.2-r2.ebuild,v 1.10 2011/04/17 11:45:14 tomka Exp $
-
-EAPI="3"
-WANT_AUTOCONF="2.1" # Upstream ticket 240 -> wontfix
-
-# Upstream does not care about tests.
-RESTRICT="test"
-
-inherit autotools eutils elisp-common flag-o-matic multilib prefix versionator
-
-MY_PN=Singular
-MY_PV=$(replace_all_version_separators -)
-MY_DIR=$(get_version_component_range 1-3 ${MY_PV})
-# There 'share' tarball does not get updated on every release
-MY_SHARE_DIR="3-1-2"
-MY_PV_SHARE="${MY_SHARE_DIR}"
-
-DESCRIPTION="Computer algebra system for polynomial computations"
-HOMEPAGE="http://www.singular.uni-kl.de/"
-SRC_COM="http://www.mathematik.uni-kl.de/ftp/pub/Math/${MY_PN}/SOURCES/"
-# Share stuff did not see a new version:
-SRC_URI="${SRC_COM}${MY_DIR}/${MY_PN}-${MY_PV}.tar.gz
- ${SRC_COM}${MY_SHARE_DIR}/Singular-${MY_PV_SHARE}-share.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86 ~x86-linux ~x86-macos"
-IUSE="boost doc emacs examples +readline test"
-
-RDEPEND="dev-libs/gmp
- >=dev-libs/ntl-5.5.1
- emacs? ( >=virtual/emacs-22 )"
-
-DEPEND="${RDEPEND}
- dev-lang/perl
- boost? ( dev-libs/boost )
- readline? ( sys-libs/readline )
- test? ( dev-util/cmake
- dev-util/cppunit )"
-
-S="${WORKDIR}"/${MY_PN}-${MY_DIR}
-SITEFILE=60${PN}-gentoo.el
-
-pkg_setup() {
- append-flags "-fPIC"
- append-ldflags "-fPIC"
- tc-export CC CPP CXX
-
- # Ensure that >=emacs-22 is selected
- if use emacs; then
- elisp-need-emacs 22 || die "Emacs version too low"
- fi
-}
-
-src_prepare () {
- epatch "${FILESDIR}"/${PN}-3.1.0-gentoo.patch
- epatch "${FILESDIR}"/${PN}-3.1.0-emacs-22.patch
- epatch "${FILESDIR}"/${PN}-3.0.4.4-nostrip.patch
-
- # This file has a trailing whitespace breaking stuff
- # It's fixed in upstream cvs, remove with next version!
- sed -i 's/[ \t]*$//' "${S}"/omalloc/Makefile.in || die
-
- eprefixify kernel/feResource.cc
-
- sed -i \
- -e "/CXXFLAGS/ s/--no-exceptions//g" \
- -e "s/SLDFLAGS=-shared/SLDFLAGS=\"$(raw-ldflags) -shared\"/" \
- "${S}"/Singular/configure.in || die
-
- cd "${S}"/Singular || die "failed to cd into Singular/"
- eautoconf
-}
-
-src_configure() {
-
- econf \
- --prefix="${S}"/build \
- --exec-prefix="${S}"/build \
- --bindir="${S}"/build/bin \
- --libdir="${S}"/build/lib \
- --libexecdir="${S}"/build/lib \
- --includedir="${S}"/build/include \
- --with-apint=gmp \
- --with-gmp="${EPREFIX}"/usr \
- --disable-NTL \
- --disable-debug \
- --disable-doc \
- --without-MP \
- --enable-factory \
- --enable-libfac \
- --enable-IntegerProgramming \
- --enable-Singular \
- $(use_with boost Boost) \
- $(use_enable emacs) \
- $(use_with readline) || die "configure failed"
-}
-
-src_compile() {
- emake || die "emake failed"
-
- if use emacs; then
- cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}/emacs/
- elisp-compile *.el || die "elisp-compile failed"
- fi
-}
-
-src_test() {
- # Tests fail to link -lsingular, upstream ticket #243
- emake test || die "tests failed"
-}
-
-src_install () {
- dodoc README
- # execs and libraries
- cd "${S}"/build/bin
- dobin ${MY_PN}* gen_test change_cost solve_IP toric_ideal LLL \
- || die "failed to install binaries"
- insinto /usr/$(get_libdir)/${PN}
- # fix install_name on macos, the build system is buggy enough not to add extra for OS X.
- if [[ ${CHOST} == *-darwin* ]] ; then
- for d in *.so ; do
- install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${PN}/${d}" "${d}"
- done
- fi
- doins *.so || die "failed to install libraries"
-
- dosym ${MY_PN}-${MY_DIR} /usr/bin/${MY_PN} \
- || die "failed to create symbolic link"
-
- # stuff from the share tar ball
- cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}
- insinto /usr/share/${PN}
- doins -r LIB || die "failed to install lib files"
- if use examples; then
- insinto /usr/share/doc/${PF}
- doins -r examples || die "failed to install examples"
- fi
- if use doc; then
- dohtml -r html/* || die "failed to install html docs"
- insinto /usr/share/${PN}
- doins doc/singular.idx || die "failed to install idx file"
- cp info/${PN}.hlp info/${PN}.info &&
- doinfo info/${PN}.info \
- || die "failed to install info files"
- fi
- if use emacs; then
- elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* \
- || die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-}
-
-pkg_postinst() {
- einfo "The authors ask you to register as a SINGULAR user."
- einfo "Please check the license file for details."
-
- if use emacs; then
- echo
- ewarn "Please note that the ESingular emacs wrapper has been"
- ewarn "removed in favor of full fledged singular support within"
- ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs"
- ewarn "and you should be good to go! See bug #193411 for more info."
- echo
- fi
-
- use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/sci-mathematics/singular/singular-3.1.3.1.ebuild b/sci-mathematics/singular/singular-3.1.3.1.ebuild
deleted file mode 100644
index 5b609e2e93d7..000000000000
--- a/sci-mathematics/singular/singular-3.1.3.1.ebuild
+++ /dev/null
@@ -1,170 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.1.3.1.ebuild,v 1.1 2011/05/03 14:51:47 tomka Exp $
-
-EAPI="3"
-WANT_AUTOCONF="2.1" # Upstream ticket 240 -> wontfix
-
-# Upstream does not care about tests.
-RESTRICT="test"
-
-inherit autotools eutils elisp-common flag-o-matic multilib prefix versionator
-
-MY_PN=Singular
-MY_PV=$(replace_all_version_separators -)
-MY_DIR=$(get_version_component_range 1-3 ${MY_PV})
-# There 'share' tarball does not get updated on every release
-MY_SHARE_DIR="3-1-3"
-MY_PV_SHARE="${MY_PV}"
-
-DESCRIPTION="Computer algebra system for polynomial computations"
-HOMEPAGE="http://www.singular.uni-kl.de/"
-SRC_COM="http://www.mathematik.uni-kl.de/ftp/pub/Math/${MY_PN}/SOURCES/"
-# Share stuff did not see a new version:
-SRC_URI="${SRC_COM}${MY_DIR}/${MY_PN}-${MY_PV}.tar.gz
- ${SRC_COM}${MY_SHARE_DIR}/Singular-${MY_PV_SHARE}-share.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~x86-macos"
-IUSE="boost doc emacs examples +readline test"
-
-RDEPEND="dev-libs/gmp
- >=dev-libs/ntl-5.5.1
- emacs? ( >=virtual/emacs-22 )"
-
-DEPEND="${RDEPEND}
- dev-lang/perl
- boost? ( dev-libs/boost )
- readline? ( sys-libs/readline )
- test? ( dev-util/cmake
- dev-util/cppunit )"
-
-S="${WORKDIR}"/${MY_PN}-${MY_DIR}
-SITEFILE=60${PN}-gentoo.el
-
-pkg_setup() {
- append-flags "-fPIC"
- append-ldflags "-fPIC"
- tc-export CC CPP CXX
-
- # Ensure that >=emacs-22 is selected
- if use emacs; then
- elisp-need-emacs 22 || die "Emacs version too low"
- fi
-}
-
-src_prepare () {
- epatch "${FILESDIR}"/${PN}-3.1.0-gentoo.patch
- epatch "${FILESDIR}"/${PN}-3.1.0-emacs-22.patch
- epatch "${FILESDIR}"/${PN}-3.0.4.4-nostrip.patch
-
- eprefixify kernel/feResource.cc
-
- sed -i \
- -e "/CXXFLAGS/ s/--no-exceptions//g" \
- -e "s/SLDFLAGS=-shared/SLDFLAGS=\"$(raw-ldflags) -shared\"/" \
- "${S}"/Singular/configure.in || die
-
- cd "${S}"/Singular || die "failed to cd into Singular/"
- eautoconf
-}
-
-src_configure() {
-
- econf \
- --prefix="${S}"/build \
- --exec-prefix="${S}"/build \
- --bindir="${S}"/build/bin \
- --libdir="${S}"/build/lib \
- --libexecdir="${S}"/build/lib \
- --includedir="${S}"/build/include \
- --with-apint=gmp \
- --with-gmp="${EPREFIX}"/usr \
- --disable-NTL \
- --disable-debug \
- --disable-doc \
- --without-MP \
- --enable-factory \
- --enable-libfac \
- --enable-IntegerProgramming \
- --enable-Singular \
- $(use_with boost Boost) \
- $(use_enable emacs) \
- $(use_with readline) || die "configure failed"
-}
-
-src_compile() {
- emake || die "emake failed"
-
- if use emacs; then
- cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}/emacs/
- elisp-compile *.el || die "elisp-compile failed"
- fi
-}
-
-src_test() {
- # Tests fail to link -lsingular, upstream ticket #243
- emake test || die "tests failed"
-}
-
-src_install () {
- dodoc README
- # execs and libraries
- cd "${S}"/build/bin
- dobin ${MY_PN}* gen_test change_cost solve_IP toric_ideal LLL \
- || die "failed to install binaries"
- insinto /usr/$(get_libdir)/${PN}
- # fix install_name on macos, the build system is buggy enough not to add extra for OS X.
- if [[ ${CHOST} == *-darwin* ]] ; then
- for d in *.so ; do
- install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${PN}/${d}" "${d}"
- done
- fi
- doins *.so || die "failed to install libraries"
-
- dosym ${MY_PN}-${MY_DIR} /usr/bin/${MY_PN} \
- || die "failed to create symbolic link"
-
- # stuff from the share tar ball
- cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}
- insinto /usr/share/${PN}
- doins -r LIB || die "failed to install lib files"
- if use examples; then
- insinto /usr/share/doc/${PF}
- doins -r examples || die "failed to install examples"
- fi
- if use doc; then
- dohtml -r html/* || die "failed to install html docs"
- insinto /usr/share/${PN}
- doins doc/singular.idx || die "failed to install idx file"
- cp info/${PN}.hlp info/${PN}.info &&
- doinfo info/${PN}.info \
- || die "failed to install info files"
- fi
- if use emacs; then
- elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* \
- || die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-}
-
-pkg_postinst() {
- einfo "The authors ask you to register as a SINGULAR user."
- einfo "Please check the license file for details."
-
- if use emacs; then
- echo
- ewarn "Please note that the ESingular emacs wrapper has been"
- ewarn "removed in favor of full fledged singular support within"
- ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs"
- ewarn "and you should be good to go! See bug #193411 for more info."
- echo
- fi
-
- use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/sci-mathematics/singular/singular-3.1.3.3.ebuild b/sci-mathematics/singular/singular-3.1.3.3.ebuild
deleted file mode 100644
index ca0860495cfa..000000000000
--- a/sci-mathematics/singular/singular-3.1.3.3.ebuild
+++ /dev/null
@@ -1,177 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.1.3.3.ebuild,v 1.1 2011/12/23 12:49:25 tomka Exp $
-
-EAPI="3"
-WANT_AUTOCONF="2.1" # Upstream ticket 240 -> wontfix
-
-# Upstream does not care about tests.
-RESTRICT="test"
-
-inherit autotools eutils elisp-common flag-o-matic multilib prefix versionator
-
-MY_PN=Singular
-MY_PV=$(replace_all_version_separators -)
-MY_DIR=$(get_version_component_range 1-3 ${MY_PV})
-# There 'share' tarball does not get updated on every release
-MY_SHARE_DIR="3-1-3"
-MY_PV_SHARE="${MY_PV}"
-
-DESCRIPTION="Computer algebra system for polynomial computations"
-HOMEPAGE="http://www.singular.uni-kl.de/"
-SRC_COM="http://www.mathematik.uni-kl.de/ftp/pub/Math/${MY_PN}/SOURCES/"
-# Share stuff did not see a new version:
-SRC_URI="${SRC_COM}${MY_DIR}/${MY_PN}-${MY_PV}.tar.gz
- ${SRC_COM}${MY_SHARE_DIR}/Singular-${MY_PV_SHARE}-share.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~x86-macos"
-IUSE="boost doc emacs examples +readline test"
-
-RDEPEND="dev-libs/gmp
- >=dev-libs/ntl-5.5.1
- emacs? ( >=virtual/emacs-22 )"
-
-DEPEND="${RDEPEND}
- dev-lang/perl
- boost? ( dev-libs/boost )
- readline? ( sys-libs/readline )
- test? ( dev-util/cmake
- dev-util/cppunit )"
-
-S="${WORKDIR}"/${MY_PN}-${MY_DIR}
-SITEFILE=60${PN}-gentoo.el
-
-pkg_setup() {
- append-flags "-fPIC"
- append-ldflags "-fPIC"
- tc-export CC CPP CXX
-
- # Ensure that >=emacs-22 is selected
- if use emacs; then
- elisp-need-emacs 22 || die "Emacs version too low"
- fi
-}
-
-src_prepare () {
- epatch "${FILESDIR}"/${PN}-3.1.0-gentoo.patch
- epatch "${FILESDIR}"/${PN}-3.1.0-emacs-22.patch
- epatch "${FILESDIR}"/${PN}-3.0.4.4-nostrip.patch
- epatch "${FILESDIR}"/${PN}-3.1.3.3-Minor.h.patch
- # fix parallel make issue reported upstream http://www.singular.uni-kl.de:8002/trac/ticket/395
- epatch "${FILESDIR}"/${PN}-3.1.3.3.make_parallel.2.patch
-
- if [[ ${CHOST} == *-darwin* ]] ; then
- epatch "${FILESDIR}"/${PN}-3.1.3.3-os_x_ppc.patch
- fi
-
- eprefixify kernel/feResource.cc
-
- sed -i \
- -e "/CXXFLAGS/ s/--no-exceptions//g" \
- -e "s/SLDFLAGS=-shared/SLDFLAGS=\"$(raw-ldflags) -shared\"/" \
- "${S}"/Singular/configure.in || die
-
- cd "${S}"/Singular || die "failed to cd into Singular/"
- eautoconf
-}
-
-src_configure() {
-
- econf \
- --prefix="${S}"/build \
- --exec-prefix="${S}"/build \
- --bindir="${S}"/build/bin \
- --libdir="${S}"/build/lib \
- --libexecdir="${S}"/build/lib \
- --includedir="${S}"/build/include \
- --with-apint=gmp \
- --with-gmp="${EPREFIX}"/usr \
- --disable-NTL \
- --disable-debug \
- --disable-doc \
- --without-MP \
- --enable-factory \
- --enable-libfac \
- --enable-IntegerProgramming \
- --enable-Singular \
- $(use_with boost Boost) \
- $(use_enable emacs) \
- $(use_with readline) || die "configure failed"
-}
-
-src_compile() {
- emake || die "emake failed"
-
- if use emacs; then
- cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}/emacs/
- elisp-compile *.el || die "elisp-compile failed"
- fi
-}
-
-src_test() {
- # Tests fail to link -lsingular, upstream ticket #243
- emake test || die "tests failed"
-}
-
-src_install () {
- dodoc README
- # execs and libraries
- cd "${S}"/build/bin
- dobin ${MY_PN}* gen_test change_cost solve_IP toric_ideal LLL \
- || die "failed to install binaries"
- insinto /usr/$(get_libdir)/${PN}
- # fix install_name on macos, the build system is buggy enough not to add extra for OS X.
- if [[ ${CHOST} == *-darwin* ]] ; then
- for d in *.so ; do
- install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${PN}/${d}" "${d}"
- done
- fi
- doins *.so || die "failed to install libraries"
-
- dosym ${MY_PN}-${MY_DIR} /usr/bin/${MY_PN} \
- || die "failed to create symbolic link"
-
- # stuff from the share tar ball
- cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}
- insinto /usr/share/${PN}
- doins -r LIB || die "failed to install lib files"
- if use examples; then
- insinto /usr/share/doc/${PF}
- doins -r examples || die "failed to install examples"
- fi
- if use doc; then
- dohtml -r html/* || die "failed to install html docs"
- insinto /usr/share/${PN}
- doins doc/singular.idx || die "failed to install idx file"
- cp info/${PN}.hlp info/${PN}.info &&
- doinfo info/${PN}.info \
- || die "failed to install info files"
- fi
- if use emacs; then
- elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* \
- || die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-}
-
-pkg_postinst() {
- einfo "The authors ask you to register as a SINGULAR user."
- einfo "Please check the license file for details."
-
- if use emacs; then
- echo
- ewarn "Please note that the ESingular emacs wrapper has been"
- ewarn "removed in favor of full fledged singular support within"
- ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs"
- ewarn "and you should be good to go! See bug #193411 for more info."
- echo
- fi
-
- use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/sci-mathematics/singular/singular-3.1.4-r1.ebuild b/sci-mathematics/singular/singular-3.1.4-r1.ebuild
deleted file mode 100644
index ced561d4263f..000000000000
--- a/sci-mathematics/singular/singular-3.1.4-r1.ebuild
+++ /dev/null
@@ -1,187 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.1.4-r1.ebuild,v 1.4 2012/06/23 10:50:20 xarthisius Exp $
-
-EAPI="3"
-WANT_AUTOCONF="2.1" # Upstream ticket 240 -> wontfix
-
-PYTHON_DEPEND="python? 2"
-
-# Upstream does not care about tests.
-RESTRICT="test"
-
-inherit autotools eutils elisp-common flag-o-matic multilib prefix python versionator
-
-MY_PN=Singular
-MY_PV=$(replace_all_version_separators -)
-MY_DIR=$(get_version_component_range 1-3 ${MY_PV})
-# There 'share' tarball does not get updated on every release
-MY_SHARE_DIR="3-1-4"
-MY_PV_SHARE="${MY_PV}"
-
-DESCRIPTION="Computer algebra system for polynomial computations"
-HOMEPAGE="http://www.singular.uni-kl.de/"
-SRC_COM="http://www.mathematik.uni-kl.de/ftp/pub/Math/${MY_PN}/SOURCES/"
-# Share stuff did not see a new version:
-SRC_URI="${SRC_COM}${MY_DIR}/${MY_PN}-${MY_PV}.tar.gz
- ${SRC_COM}${MY_SHARE_DIR}/Singular-${MY_PV_SHARE}-share.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86 ~x86-linux ~x86-macos"
-IUSE="boost doc emacs examples python +readline test"
-
-RDEPEND="dev-libs/gmp
- >=dev-libs/ntl-5.5.1
- emacs? ( >=virtual/emacs-22 )"
-
-DEPEND="${RDEPEND}
- dev-lang/perl
- boost? ( dev-libs/boost )
- readline? ( sys-libs/readline )"
-
-S="${WORKDIR}"/${MY_PN}-${MY_DIR}
-SITEFILE=60${PN}-gentoo.el
-
-pkg_setup() {
- append-flags "-fPIC"
- append-ldflags "-fPIC"
- tc-export CC CPP CXX
-
- # Ensure that >=emacs-22 is selected
- if use emacs; then
- elisp-need-emacs 22 || die "Emacs version too low"
- fi
-
- if use python; then
- python_set_active_version 2
- python_pkg_setup
- fi
-}
-
-src_prepare () {
- epatch "${FILESDIR}"/${PN}-3.1.0-gentoo.patch
- epatch "${FILESDIR}"/${PN}-3.1.0-emacs-22.patch
- epatch "${FILESDIR}"/${PN}-3.0.4.4-nostrip.patch
- epatch "${FILESDIR}"/${PN}-3.1.3.3-Minor.h.patch
- use python && epatch "${FILESDIR}"/${PN}-3.1.3.2-python.patch
-
- if [[ ${CHOST} == *-darwin* ]] ; then
- epatch "${FILESDIR}"/${PN}-3.1.3.3-install_name.patch
- eprefixify kernel/Makefile.in
- eprefixify Singular/Makefile.in
- fi
-
- eprefixify kernel/feResource.cc
-
- # The SLDFLAGS mangling prevents passing raw LDLAGS to gcc (see e.g. bug 414709)
- sed -i \
- -e "/CXXFLAGS/ s/--no-exceptions//g" \
- -e "s/SLDFLAGS=-shared/SLDFLAGS=\"$(raw-ldflags) -shared\"\n\t \tSLDFLAGS2=\"${LDFLAGS} -shared\"/" \
- -e "s/ SLDFLAGS=/ SLDFLAGS=\n SLDFLAGS2=/" \
- -e "s/AC_SUBST(SLDFLAGS)/AC_SUBST(SLDFLAGS)\nAC_SUBST(SLDFLAGS2)/" \
- "${S}"/Singular/configure.in || die
-
- sed -i \
- -e "s/@SLDFLAGS@/@SLDFLAGS@\nSLDFLAGS2\t= @SLDFLAGS2@/" \
- -e "/\$(CXX).*SLDFLAGS/s/SLDFLAGS/SLDFLAGS2/" \
- "${S}"/Singular/Makefile.in || die
-
- cd "${S}"/Singular || die "failed to cd into Singular/"
- eautoconf
-}
-
-src_configure() {
-
- econf \
- --prefix="${S}"/build \
- --exec-prefix="${S}"/build \
- --bindir="${S}"/build/bin \
- --libdir="${S}"/build/lib \
- --libexecdir="${S}"/build/lib \
- --includedir="${S}"/build/include \
- --with-apint=gmp \
- --with-gmp="${EPREFIX}"/usr \
- --disable-NTL \
- --disable-debug \
- --disable-doc \
- --without-MP \
- --enable-factory \
- --enable-libfac \
- --enable-IntegerProgramming \
- --enable-Singular \
- --with-malloc=system \
- $(use_with python python embed) \
- $(use_with boost Boost) \
- $(use_enable emacs) \
- $(use_with readline) || die "configure failed"
-}
-
-src_compile() {
- emake || die "emake failed"
-
- if use emacs; then
- cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}/emacs/
- elisp-compile *.el || die "elisp-compile failed"
- fi
-}
-
-src_test() {
- # Tests fail to link -lsingular, upstream ticket #243
- emake test || die "tests failed"
-}
-
-src_install () {
- dodoc README
- # execs and libraries
- cd "${S}"/build/bin
- dobin ${MY_PN}* gen_test change_cost solve_IP toric_ideal LLL \
- || die "failed to install binaries"
- insinto /usr/$(get_libdir)/${PN}
- doins *.so || die "failed to install libraries"
-
- dosym ${MY_PN}-${MY_DIR} /usr/bin/${MY_PN} \
- || die "failed to create symbolic link"
-
- # stuff from the share tar ball
- cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}
- insinto /usr/share/${PN}
- doins -r LIB || die "failed to install lib files"
- if use examples; then
- insinto /usr/share/doc/${PF}
- doins -r examples || die "failed to install examples"
- fi
- if use doc; then
- dohtml -r html/* || die "failed to install html docs"
- insinto /usr/share/${PN}
- doins doc/singular.idx || die "failed to install idx file"
- cp info/${PN}.hlp info/${PN}.info &&
- doinfo info/${PN}.info \
- || die "failed to install info files"
- fi
- if use emacs; then
- elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* \
- || die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-}
-
-pkg_postinst() {
- einfo "The authors ask you to register as a SINGULAR user."
- einfo "Please check the license file for details."
-
- if use emacs; then
- echo
- ewarn "Please note that the ESingular emacs wrapper has been"
- ewarn "removed in favor of full fledged singular support within"
- ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs"
- ewarn "and you should be good to go! See bug #193411 for more info."
- echo
- fi
-
- use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/sci-mathematics/singular/singular-3.1.4.ebuild b/sci-mathematics/singular/singular-3.1.4.ebuild
deleted file mode 100644
index 8e873334db19..000000000000
--- a/sci-mathematics/singular/singular-3.1.4.ebuild
+++ /dev/null
@@ -1,179 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.1.4.ebuild,v 1.1 2012/03/24 21:28:09 tomka Exp $
-
-EAPI="3"
-WANT_AUTOCONF="2.1" # Upstream ticket 240 -> wontfix
-
-PYTHON_DEPEND="python? 2"
-
-# Upstream does not care about tests.
-RESTRICT="test"
-
-inherit autotools eutils elisp-common flag-o-matic multilib prefix python versionator
-
-MY_PN=Singular
-MY_PV=$(replace_all_version_separators -)
-MY_DIR=$(get_version_component_range 1-3 ${MY_PV})
-# There 'share' tarball does not get updated on every release
-MY_SHARE_DIR="3-1-4"
-MY_PV_SHARE="${MY_PV}"
-
-DESCRIPTION="Computer algebra system for polynomial computations"
-HOMEPAGE="http://www.singular.uni-kl.de/"
-SRC_COM="http://www.mathematik.uni-kl.de/ftp/pub/Math/${MY_PN}/SOURCES/"
-# Share stuff did not see a new version:
-SRC_URI="${SRC_COM}${MY_DIR}/${MY_PN}-${MY_PV}.tar.gz
- ${SRC_COM}${MY_SHARE_DIR}/Singular-${MY_PV_SHARE}-share.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~x86-macos"
-IUSE="boost doc emacs examples python +readline test"
-
-RDEPEND="dev-libs/gmp
- >=dev-libs/ntl-5.5.1
- emacs? ( >=virtual/emacs-22 )"
-
-DEPEND="${RDEPEND}
- dev-lang/perl
- boost? ( dev-libs/boost )
- readline? ( sys-libs/readline )"
-
-S="${WORKDIR}"/${MY_PN}-${MY_DIR}
-SITEFILE=60${PN}-gentoo.el
-
-pkg_setup() {
- append-flags "-fPIC"
- append-ldflags "-fPIC"
- tc-export CC CPP CXX
-
- # Ensure that >=emacs-22 is selected
- if use emacs; then
- elisp-need-emacs 22 || die "Emacs version too low"
- fi
-
- if use python; then
- python_set_active_version 2
- python_pkg_setup
- fi
-}
-
-src_prepare () {
- epatch "${FILESDIR}"/${PN}-3.1.0-gentoo.patch
- epatch "${FILESDIR}"/${PN}-3.1.0-emacs-22.patch
- epatch "${FILESDIR}"/${PN}-3.0.4.4-nostrip.patch
- epatch "${FILESDIR}"/${PN}-3.1.3.3-Minor.h.patch
- use python && epatch "${FILESDIR}"/${PN}-3.1.3.2-python.patch
-
- if [[ ${CHOST} == *-darwin* ]] ; then
- epatch "${FILESDIR}"/${PN}-3.1.3.3-install_name.patch
- eprefixify kernel/Makefile.in
- eprefixify Singular/Makefile.in
- fi
-
- eprefixify kernel/feResource.cc
-
- sed -i \
- -e "/CXXFLAGS/ s/--no-exceptions//g" \
- -e "s/SLDFLAGS=-shared/SLDFLAGS=\"$(raw-ldflags) -shared\"/" \
- "${S}"/Singular/configure.in || die
-
- cd "${S}"/Singular || die "failed to cd into Singular/"
- eautoconf
-}
-
-src_configure() {
-
- econf \
- --prefix="${S}"/build \
- --exec-prefix="${S}"/build \
- --bindir="${S}"/build/bin \
- --libdir="${S}"/build/lib \
- --libexecdir="${S}"/build/lib \
- --includedir="${S}"/build/include \
- --with-apint=gmp \
- --with-gmp="${EPREFIX}"/usr \
- --disable-NTL \
- --disable-debug \
- --disable-doc \
- --without-MP \
- --enable-factory \
- --enable-libfac \
- --enable-IntegerProgramming \
- --enable-Singular \
- --with-malloc=system \
- $(use_with python python embed) \
- $(use_with boost Boost) \
- $(use_enable emacs) \
- $(use_with readline) || die "configure failed"
-}
-
-src_compile() {
- emake || die "emake failed"
-
- if use emacs; then
- cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}/emacs/
- elisp-compile *.el || die "elisp-compile failed"
- fi
-}
-
-src_test() {
- # Tests fail to link -lsingular, upstream ticket #243
- emake test || die "tests failed"
-}
-
-src_install () {
- dodoc README
- # execs and libraries
- cd "${S}"/build/bin
- dobin ${MY_PN}* gen_test change_cost solve_IP toric_ideal LLL \
- || die "failed to install binaries"
- insinto /usr/$(get_libdir)/${PN}
- doins *.so || die "failed to install libraries"
-
- dosym ${MY_PN}-${MY_DIR} /usr/bin/${MY_PN} \
- || die "failed to create symbolic link"
-
- # stuff from the share tar ball
- cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}
- insinto /usr/share/${PN}
- doins -r LIB || die "failed to install lib files"
- if use examples; then
- insinto /usr/share/doc/${PF}
- doins -r examples || die "failed to install examples"
- fi
- if use doc; then
- dohtml -r html/* || die "failed to install html docs"
- insinto /usr/share/${PN}
- doins doc/singular.idx || die "failed to install idx file"
- cp info/${PN}.hlp info/${PN}.info &&
- doinfo info/${PN}.info \
- || die "failed to install info files"
- fi
- if use emacs; then
- elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* \
- || die "elisp-install failed"
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- fi
-}
-
-pkg_postinst() {
- einfo "The authors ask you to register as a SINGULAR user."
- einfo "Please check the license file for details."
-
- if use emacs; then
- echo
- ewarn "Please note that the ESingular emacs wrapper has been"
- ewarn "removed in favor of full fledged singular support within"
- ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs"
- ewarn "and you should be good to go! See bug #193411 for more info."
- echo
- fi
-
- use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}