diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-mathematics/singular/singular-4.0.2.ebuild | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-mathematics/singular/singular-4.0.2.ebuild')
-rw-r--r-- | sci-mathematics/singular/singular-4.0.2.ebuild | 145 |
1 files changed, 145 insertions, 0 deletions
diff --git a/sci-mathematics/singular/singular-4.0.2.ebuild b/sci-mathematics/singular/singular-4.0.2.ebuild new file mode 100644 index 000000000000..1f60ff3b9e07 --- /dev/null +++ b/sci-mathematics/singular/singular-4.0.2.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils elisp-common flag-o-matic multilib prefix versionator + +MY_PN=Singular +MY_PV=$(replace_all_version_separators '.') +# Consistency is different... +MY_DIR2=$(get_version_component_range 1-3 ${PV}) +MY_DIR=$(replace_all_version_separators '-' ${MY_DIR2}) +# This is where the share tarball unpacks to +MY_SHARE_DIR="${WORKDIR}"/share/ + +DESCRIPTION="Computer algebra system for polynomial computations" +HOMEPAGE="http://www.singular.uni-kl.de/" +SRC_URI="http://www.mathematik.uni-kl.de/ftp/pub/Math/${MY_PN}/SOURCES/${MY_DIR}/${PN}-${MY_PV}.tar.gz + http://www.mathematik.uni-kl.de/ftp/pub/Math/${MY_PN}/SOURCES/${MY_DIR}/${PN}-${MY_PV}-share.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-linux ~x86-macos" +IUSE="boost doc emacs examples python +readline" + +RDEPEND="dev-libs/gmp:0 + >=dev-libs/ntl-5.5.1 + emacs? ( >=virtual/emacs-22 ) + sci-mathematics/flint + sci-mathematics/4ti2 + sci-libs/cddlib" + +DEPEND="${RDEPEND} + dev-lang/perl + boost? ( dev-libs/boost ) + readline? ( sys-libs/readline )" + +SITEFILE=60${PN}-gentoo.el + +S="${WORKDIR}/${PN}-${MY_DIR2}" + +pkg_setup() { + append-flags "-fPIC" + append-ldflags "-fPIC" + tc-export AR 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 () { + # Need to do something about resources later... + # epatch "${FILESDIR}"/${PN}-4.0.0-gentoo.patch + + # omalloc's old configure will fail if ar is not exactly 'ar'. + epatch "${FILESDIR}"/${PN}-4.0.0-fix-omalloc-ar-detection.patch + + epatch "${FILESDIR}"/${PN}-4.0.2-ntl8-compat.patch + + # autoreconf everything since otherwise it assumes autmake-1.13 is installed + eautoreconf +} + +src_configure() { + econf --with-gmp \ + --with-ntl \ + --with-flint \ + --enable-gfanlib \ + --disable-debug \ + --disable-doc \ + --enable-factory \ + --enable-libfac \ + --enable-IntegerProgramming \ + $(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 "${MY_SHARE_DIR}"singular/emacs/ + elisp-compile *.el || die "elisp-compile failed" + fi +} + +# 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 +} |