diff options
author | Thomas Kahle <tomka@gentoo.org> | 2011-05-03 14:51:47 +0000 |
---|---|---|
committer | Thomas Kahle <tomka@gentoo.org> | 2011-05-03 14:51:47 +0000 |
commit | de12bf64a3e068b78280cef92248228941e1f2f6 (patch) | |
tree | 182b72ab46c831590c0d62fef018b74e2b0491c4 /sci-mathematics/singular | |
parent | Version bump (diff) | |
download | historical-de12bf64a3e068b78280cef92248228941e1f2f6.tar.gz historical-de12bf64a3e068b78280cef92248228941e1f2f6.tar.bz2 historical-de12bf64a3e068b78280cef92248228941e1f2f6.zip |
bump to 3.1.3.1, fixes build with gcc-4.6 in bug 362739 (thanks Diego for reporting)
Package-Manager: portage-2.1.9.46/cvs/Linux i686
Diffstat (limited to 'sci-mathematics/singular')
-rw-r--r-- | sci-mathematics/singular/ChangeLog | 8 | ||||
-rw-r--r-- | sci-mathematics/singular/Manifest | 13 | ||||
-rw-r--r-- | sci-mathematics/singular/singular-3.1.3.1.ebuild | 170 |
3 files changed, 185 insertions, 6 deletions
diff --git a/sci-mathematics/singular/ChangeLog b/sci-mathematics/singular/ChangeLog index a671a819fe9d..6be20dcc4a99 100644 --- a/sci-mathematics/singular/ChangeLog +++ b/sci-mathematics/singular/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-mathematics/singular # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.46 2011/04/17 11:48:29 tomka Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.47 2011/05/03 14:51:47 tomka Exp $ + +*singular-3.1.3.1 (03 May 2011) + + 03 May 2011; Thomas Kahle <tomka@gentoo.org> +singular-3.1.3.1.ebuild: + bump to 3.1.3.1, fixes build with gcc-4.6 in bug 362739 (thanks Diego for + reporting) 17 Apr 2011; Thomas Kahle <tomka@gentoo.org> -singular-3.0.1.2.ebuild, -files/singular-3.0.1.2-gcc4.1-gentoo.patch, diff --git a/sci-mathematics/singular/Manifest b/sci-mathematics/singular/Manifest index fd1bf1e8d6d2..f61511aaef26 100644 --- a/sci-mathematics/singular/Manifest +++ b/sci-mathematics/singular/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 +Hash: SHA256 AUX 60singular-gentoo.el 298 RMD160 6bd931435ad813a3a63c02ea68d90e768a685d88 SHA1 ffd1cb26719d6745f2e9463952f125769b8ca5a1 SHA256 b05a83af5a80fc1240e77d1cd036f4c9ca00907d11fb90d7f0ffb0c92ff7d235 AUX singular-3.0.4.4-nostrip.patch 453 RMD160 396d1c318ee76767b9dff9de7db516f988950962 SHA1 c1e154ecadd31286a1c2c6dc4d51170b7ecc62e9 SHA256 70d6972d7bddd1d8d601f715465a46c92eba1edf2c5608bbd01ae65c6fd64553 @@ -7,13 +7,16 @@ AUX singular-3.1.0-emacs-22.patch 637 RMD160 ad6648dd733a064aa8f801056ed8f9c3f84 AUX singular-3.1.0-gentoo.patch 4563 RMD160 1bba02ab548c81a1b92e57accd977333b2a873d3 SHA1 9e7dfcef890f506c508d72dbcb54e30978308f8b SHA256 31cf4c45ad9319431efda173a8bc24a9eac609b9fd2afadbe66156bec43f9146 DIST Singular-3-1-2-share.tar.gz 9341118 RMD160 585f8d77ec3624eea298b85bdd4f8d6383d63fd2 SHA1 eb98e7c63c2f73ecdee83ce45274127b8246008f SHA256 03ca31608684a02f645c3ab75fe06402fc076f05e1ed7154427855affbfab45e DIST Singular-3-1-2.tar.gz 19564373 RMD160 53f407f62af36a8570b027c30b73c54dc106b290 SHA1 19ede02ed4cd513efd20f5a54568bc096e1d2c35 SHA256 4fbe46cca2aef42fdf73ef8556350278f9f3b3d5d0d1b8e21c1a182e59f2b88a +DIST Singular-3-1-3-1-share.tar.gz 9413521 RMD160 f5f9ccfa22552c95745313475b61314b8f266306 SHA1 e6a4de27ae212d426ce0017992c02fa37ed72269 SHA256 d02d7fc41e0b0b5699f818271a01ae10cff576b320eb9044e814c95e52659d11 +DIST Singular-3-1-3-1.tar.gz 19780477 RMD160 557d9413c0c7a7c93dcd735c0edb0dedd3b90014 SHA1 09cfb15bb7aa4c6f1379699bb36f04c01f18d0e7 SHA256 f097e49eb88044f501ef516d7c3e4e6d81b4df009ceeb3f846928067e3c1f3e0 EBUILD singular-3.1.2-r2.ebuild 4829 RMD160 99a33be0d2ea04161d2dd07d9f6b3ae9733760ce SHA1 df303d34f2da89dfd9773c62b4bfd3250a164c48 SHA256 5d13a92d0b9d48b44b2ee10f7b9abf989d861f6ec9ec7a78a794e61cef529048 -MISC ChangeLog 10916 RMD160 289448e1299c931f01763abc80e1576b9f455d53 SHA1 cd71b788368606f8dd8b4a0abdbda4f2180bf1d5 SHA256 5236aa6c4bd1f148c017e5b22f4409ee77f0c862d501f1362fc5dfb34718918f +EBUILD singular-3.1.3.1.ebuild 4655 RMD160 2af3c2fb9deee0bd9f15196f8b40ef13181c67c4 SHA1 2d8f8f2359a0221e02e5b28fca6150dcf076ff5e SHA256 e3f7b6d0a80560a4571e1426c4b7fcd6bae7cd8b1622a4392e78809f73d5f3d0 +MISC ChangeLog 11112 RMD160 99c6762aaaace5471a16dac85fa6e2da8d68e068 SHA1 d377ad09675c4d34d0354e2552753956a45cc779 SHA256 2c2e1d8afcdd668bd67431aa3054986e8b21c75f380b1d97d5fb43dceb27fb40 MISC metadata.xml 369 RMD160 a0e979ca13cc60ced54af5d3c02cfb8b76bd6af1 SHA1 dcc261552e4483b66399c450482fc112e6a27994 SHA256 cff5f6b561efdc5121015bb0afc25656aa698d41b6c3c62019e13b5fa0980e20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk2q0UEACgkQnZsgo/h8kNY7aQCgjhEjQP9EV9MF4wxyG5ZuxcEI -pxIAnA4oz4UYW7X8zQdQj2PgBOWqO9if -=BSET +iF4EAREIAAYFAk3AFygACgkQodBTJSDyo642wQD7BqE6bpseYHghz7q0kYz1YtG0 +2G2gbBcSY+MB6Gy66hsA/A5u3aB4KsKqyAV0zFVxw0yAcV9g0vawuh5Wqv0UhZY+ +=Qn1W -----END PGP SIGNATURE----- diff --git a/sci-mathematics/singular/singular-3.1.3.1.ebuild b/sci-mathematics/singular/singular-3.1.3.1.ebuild new file mode 100644 index 000000000000..5b609e2e93d7 --- /dev/null +++ b/sci-mathematics/singular/singular-3.1.3.1.ebuild @@ -0,0 +1,170 @@ +# 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 +} |