diff options
author | Thomas Kahle <tomka@gentoo.org> | 2014-07-04 11:08:51 +0000 |
---|---|---|
committer | Thomas Kahle <tomka@gentoo.org> | 2014-07-04 11:08:51 +0000 |
commit | 1804f74a2ffe69eddeab0c84778e5477f11adc44 (patch) | |
tree | 9f9adc0dd2a01ec4140132e83553c917dfcdb5a9 /sci-mathematics | |
parent | Drop farsight support (#514464) (diff) | |
download | gentoo-2-1804f74a2ffe69eddeab0c84778e5477f11adc44.tar.gz gentoo-2-1804f74a2ffe69eddeab0c84778e5477f11adc44.tar.bz2 gentoo-2-1804f74a2ffe69eddeab0c84778e5477f11adc44.zip |
bump to prerelease version as latest release fails
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 565C32BC)
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/Macaulay2/ChangeLog | 7 | ||||
-rw-r--r-- | sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild | 154 |
2 files changed, 160 insertions, 1 deletions
diff --git a/sci-mathematics/Macaulay2/ChangeLog b/sci-mathematics/Macaulay2/ChangeLog index cd6c0ae3cda7..13c2747a3f1b 100644 --- a/sci-mathematics/Macaulay2/ChangeLog +++ b/sci-mathematics/Macaulay2/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-mathematics/Macaulay2 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog,v 1.31 2014/05/03 15:44:12 tomka Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog,v 1.32 2014/07/04 11:08:51 tomka Exp $ + +*Macaulay2-1.7_pre (04 Jul 2014) + + 04 Jul 2014; Thomas Kahle <tomka@gentoo.org> +Macaulay2-1.7_pre.ebuild: + bump to prerelease version as latest release fails 03 May 2014; Thomas Kahle <tomka@gentoo.org> Macaulay2-1.6.ebuild: Use python-2 for gtest (bug 509462) diff --git a/sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild b/sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild new file mode 100644 index 000000000000..285226392de5 --- /dev/null +++ b/sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild,v 1.1 2014/07/04 11:08:51 tomka Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit autotools elisp-common eutils flag-o-matic python-single-r1 toolchain-funcs + +FACTORY="factory-4.0.0+m4" +FACTORY_GFTABLES="factory.4.0.1-gftables" + +DESCRIPTION="Research tool for commutative algebra and algebraic geometry" +HOMEPAGE="http://www.math.uiuc.edu/Macaulay2/" +BASE_URI="http://www.math.uiuc.edu/Macaulay2/Downloads/OtherSourceCode/trunk" +SRC_URI=" + http://dev.gentoo.org/~tomka/files/${P}.tar.bz2 + ${BASE_URI}/${FACTORY}.tar.gz + ${BASE_URI}/${FACTORY_GFTABLES}.tar.gz + ${BASE_URI}/gtest-1.7.0.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS=" ~amd64 ~x86" +IUSE="debug emacs +optimization" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + sys-process/time + virtual/pkgconfig" + +RDEPEND="${PYTHON_DEPS} + sys-libs/gdbm + dev-libs/ntl + sci-mathematics/pari[gmp] + >=sys-libs/readline-6.1 + dev-libs/libxml2:2 + sci-mathematics/flint[gc] + sci-mathematics/frobby + sci-mathematics/4ti2 + sci-mathematics/nauty + >=sci-mathematics/normaliz-2.8 + sci-mathematics/gfan + sci-libs/mpir[cxx] + dev-libs/mpfr + sci-libs/cdd+ + sci-libs/cddlib + sci-libs/lrslib[gmp] + virtual/blas + virtual/lapack + dev-util/ctags + sys-libs/ncurses + >=dev-libs/boehm-gc-7.4[threads] + dev-libs/libatomic_ops + emacs? ( virtual/emacs )" + +SITEFILE=70Macaulay2-gentoo.el + +S="${WORKDIR}/M2/" + +pkg_setup () { + tc-export CC CPP CXX PKG_CONFIG + append-cppflags "-I/usr/include/frobby" + # gtest needs python:2 + python-single-r1_pkg_setup +} + +src_prepare() { + # Patching .m2 files to look for external programs in + # /usr/bin + epatch "${FILESDIR}"/1.6-paths-of-external-programs.patch + + # Shortcircuit lapack tests + epatch "${FILESDIR}"/1.6-lapack.patch + + # Factory is a statically linked library which (in this flavor) are not used by any + # other program. We build it internally and don't install it. + cp "${DISTDIR}/${FACTORY}.tar.gz" "${S}/BUILD/tarfiles/" \ + || die "copy failed" + cp "${DISTDIR}/${FACTORY_GFTABLES}.tar.gz" "${S}/BUILD/tarfiles/" \ + || die "copy failed" + # Macaulay2 developers want that gtest is built internally because + # the documentation says it may fail if build with options not the + # same as the tested program. + cp "${DISTDIR}/gtest-1.7.0.tar.gz" "${S}/BUILD/tarfiles/" \ + || die "copy failed" + + eautoreconf +} + +src_configure (){ + # Recommended in bug #268064 Possibly unecessary + # but should not hurt anybody. + if ! use emacs; then + tags="ctags" + fi + + # configure instead of econf to enable install with --prefix + ./configure LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" \ + --prefix="${D}/usr" \ + --disable-encap \ + --disable-strip \ + --with-issue=Gentoo \ + $(use_enable optimization optimize) \ + $(use_enable debug) \ + --enable-build-libraries="factory" \ + --with-unbuilt-programs="4ti2 gfan normaliz nauty cddplus lrslib" \ + || die "failed to configure Macaulay" +} + +src_compile() { + # Parallel build not supported yet + emake IgnoreExampleErrors=true -j1 + + if use emacs; then + cd "${S}/Macaulay2/emacs" || die + elisp-compile *.el + fi +} + +src_test() { + # No parallel tests yet & Need to increase the time + # limit for long running tests in Schubert2 to pass + emake TLIMIT=550 -j1 check +} + +src_install () { + # Parallel install not supported yet + emake IgnoreExampleErrors=true -j1 install + + # Remove emacs files and install them in the + # correct place if use emacs + rm -rf "${ED}"/usr/share/emacs/site-lisp || die + if use emacs; then + cd "${S}/Macaulay2/emacs" || die + elisp-install ${PN} *.elc *.el + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi +} + +pkg_postinst() { + if use emacs; then + elisp-site-regen + elog "If you want to set a hot key for Macaulay2 in Emacs add a line similar to" + elog "(global-set-key [ f12 ] 'M2)" + elog "in order to set it to F12 (or choose a different one)." + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |