Permalink
Browse files

[sci-mathematics/sage-clib] Migrate to scons-utils.eclass

Package-Manager: portage-2.1.11.31
  • Loading branch information...
1 parent 48b3fea commit a507432e512b7d27f19311ddfe5336adeb07f418 Christopher Schwan committed Dec 16, 2012
@@ -2,6 +2,13 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*sage-clib-5.5_rc0-r1 (16 Dec 2012)
+*sage-clib-5.4.1-r1 (16 Dec 2012)
+
+ 16 Dec 2012; Christopher Schwan <cschwan@students.uni-mainz.de>
+ +sage-clib-5.4.1-r1.ebuild, +sage-clib-5.5_rc0-r1.ebuild:
+ Migrate to scons-utils.eclass
+
*sage-clib-5.5_rc0 (06 Dec 2012)
06 Dec 2012; François Bissey <francois.bissey@canterbury.ac.nz>
@@ -2,7 +2,9 @@ AUX sage-clib-4.5.3-fix-undefined-symbols-warning.patch 881 SHA256 d40e419a498ff
AUX sage-clib-4.7.1-importenv.patch 1099 SHA256 61079c3c6a1240433d5f5e330beb980b3e490e6e1fab07f4650a89d52606f94a SHA512 ffef1014019d052bda9d222ee55b08e0eec33b9a7d94fe58a8d20bc36a72804498daf46862de1db908a073802f00647054b35ba56681dd599a829bd49c8bd1e3 WHIRLPOOL 3df180699788494603bfd79b028596cb41c4f34f0ad0bfb98dae21ec214d554d0259e3b220d91b777d40bffdd5b43c1716dc1d780903c7fcf6ef22498f31e89d
DIST sage-5.4.1.tar.bz2 57938960 SHA256 8b89839123c04b5c6c22701197affc358cd0fcdce806a828d8b076104d836696 SHA512 20d88c238c8aa670d2e43e1e22ab223583d76537e59d11f5ee0f8cd41051a5195238ccbc34bdb766db74d1123ee1fc0e37e03b36e9ef1df46e77c6cb2149fa4a WHIRLPOOL 4d4eac9f910bef09d64e4e76a3963fa677c6bf973ed05c1b18ae82bd65a3503b7082d90fd26233f7e9e538e89f959176b8c9637dcedf992806fdc32848bc614a
DIST sage-5.5_rc0.tar.bz2 58408189 SHA256 37bb96ac7b40a3c4f3e86439d549c41138e0edc7594faea9cc01e1529798d83d SHA512 8b529780b85f2cb1c907fe32d83ff1fa463ad21badb97c273a8a8157d0294c7b6fc2ecfb97877d5835f7525aefaa8aa1be6db8da7ce15291138e02f7900c04d7 WHIRLPOOL e0a70b672f3072bd6cf55613dbd06e7a92db8163208bbceb06acb87f31f2daa407a5ee620c61ae8f18cae4a0ac10ec1428a6a380697fc0ba29f4ad7fb7e62d5b
+EBUILD sage-clib-5.4.1-r1.ebuild 1291 SHA256 3d92706165524477a75ee500c1e1c89cb47b2f9ce983de64463dd63700b86812 SHA512 37d96464c30764c8b69a689eb543c86ed30e21b8f3440ee36fbad595bece24a1a63a41d85b9519de8203095f5dc9d09a3625f92b2a85d10358482f376d2c7a64 WHIRLPOOL e8c98644af37bf2544f538aebfe87e3347657db1533d2843aca2b98c763be5f7ca53e7605370e92e51e8ba66bfff23093e1b03bf615585b32341f84547cfe3ea
EBUILD sage-clib-5.4.1.ebuild 1536 SHA256 d092220b6bcf7c8aa043370451673fbaa15f041405b29b4c91bb92bb277487b3 SHA512 c32371f8a8e5a734e460e882ad592291548148a9c753f335ef0adb7cc436fa5559590f14ec3119ab130db132398ea03075508d20b567c14afaf55209139759cb WHIRLPOOL 90f2f2d2e33d084a6ce3f0766ee21d5648c82f5168412ba45cfd4a89efed6b1f906871f6f8f949a68287a7f77e0d28330c481ce94de3f9b4454da104414f7cb4
+EBUILD sage-clib-5.5_rc0-r1.ebuild 1291 SHA256 3d92706165524477a75ee500c1e1c89cb47b2f9ce983de64463dd63700b86812 SHA512 37d96464c30764c8b69a689eb543c86ed30e21b8f3440ee36fbad595bece24a1a63a41d85b9519de8203095f5dc9d09a3625f92b2a85d10358482f376d2c7a64 WHIRLPOOL e8c98644af37bf2544f538aebfe87e3347657db1533d2843aca2b98c763be5f7ca53e7605370e92e51e8ba66bfff23093e1b03bf615585b32341f84547cfe3ea
EBUILD sage-clib-5.5_rc0.ebuild 1536 SHA256 d092220b6bcf7c8aa043370451673fbaa15f041405b29b4c91bb92bb277487b3 SHA512 c32371f8a8e5a734e460e882ad592291548148a9c753f335ef0adb7cc436fa5559590f14ec3119ab130db132398ea03075508d20b567c14afaf55209139759cb WHIRLPOOL 90f2f2d2e33d084a6ce3f0766ee21d5648c82f5168412ba45cfd4a89efed6b1f906871f6f8f949a68287a7f77e0d28330c481ce94de3f9b4454da104414f7cb4
-MISC ChangeLog 20821 SHA256 e11db60e1aea54a511db05e0684e3433b937365b52bacc7a8519d490f80939da SHA512 f8c1e6e97b019c5ec11d7df09b89b014cb3a25e77cfe6ca2ac348aea982e0ac288352e758dfe34f6639bc2cfda915408c44e7155cf1f897c453d6dc023888690 WHIRLPOOL ab1d69f8e50304175c7f338f6066659f0ad5cff5ffc0828c47e98a135c0f745d147c31089f2bb5e3ba6194a7008a06b4c1f0f55afbca56475fefc327a231a4c2
+MISC ChangeLog 21051 SHA256 105b6c5944466d4992b2b2ff42b27a604b7bdbd2c946442cf6fe6e92b0f4bb56 SHA512 2613655f6443f82ef53f714883ff8489c42ea560c1c93eb9bdc3a1c6abb727bd3788b4229e11f7665b6a6772f000800f25f4c88c9117c621da5d95f2ad8d8ff6 WHIRLPOOL 9f468074421071d6e21688d34bfcd75b01246a3adbf3132f022143a317f923cb31da7afcdc400a17316bd63d4408f461adbb778eaa5d5b7c3b08c7eacc8a0d3a
MISC metadata.xml 218 SHA256 45420c665fb7a061ce85d5300ea7ed5a034a812dc286e2c87540b90d1388d79d SHA512 d0379679719f607297c40a8f3eb4bdbf9da336c5ccfb50b8e7b382def18185fa006383522062b024a6c0041609a65a599a3ad03a7600a061e8a29800cf73436b WHIRLPOOL ee5eecf9e3547cf4d8896a4ba6efe465f38931e7c35951bd54830f15674d946df093da0f78e054f6c988618dac06c316332c9565ba610631d9ff9057106b52bb
@@ -0,0 +1,51 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils multilib scons-utils versionator
+
+MY_P="sage-$(replace_version_separator 2 '.')"
+
+DESCRIPTION="Sage's C library"
+HOMEPAGE="http://www.sagemath.org"
+SRC_URI="http://sage.math.washington.edu/home/release/${MY_P}/${MY_P}/spkg/standard/${MY_P}.spkg -> sage-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos ~ppc-macos ~x64-macos"
+IUSE=""
+
+RESTRICT="mirror"
+
+DEPEND="dev-libs/gmp[cxx]
+ >=dev-libs/ntl-5.5.2
+ ~sci-libs/pynac-0.2.5
+ ~sci-mathematics/pari-2.5.3
+ ~sci-mathematics/polybori-0.8.2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}/c_lib"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.7.1-importenv.patch
+ epatch "${FILESDIR}"/${PN}-4.5.3-fix-undefined-symbols-warning.patch
+
+ sed -i "s:mpir.h:gmp.h:" src/memory.c || die "failed to patch"
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ sed -i "s:-Wl,-soname,libcsage.so:-install_name ${EPREFIX}/usr/$(get_libdir)/libcsage.dylib:" \
+ SConstruct || die "failed to patch"
+ fi
+}
+
+src_compile() {
+ CXX= SAGE_LOCAL="${EPREFIX}"/usr UNAME=$(uname) escons
+}
+
+src_install() {
+ dolib.so libcsage$(get_libname)
+ insinto /usr/include/csage
+ doins include/*.h
+}
@@ -0,0 +1,51 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils multilib scons-utils versionator
+
+MY_P="sage-$(replace_version_separator 2 '.')"
+
+DESCRIPTION="Sage's C library"
+HOMEPAGE="http://www.sagemath.org"
+SRC_URI="http://sage.math.washington.edu/home/release/${MY_P}/${MY_P}/spkg/standard/${MY_P}.spkg -> sage-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos ~ppc-macos ~x64-macos"
+IUSE=""
+
+RESTRICT="mirror"
+
+DEPEND="dev-libs/gmp[cxx]
+ >=dev-libs/ntl-5.5.2
+ ~sci-libs/pynac-0.2.5
+ ~sci-mathematics/pari-2.5.3
+ ~sci-mathematics/polybori-0.8.2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}/c_lib"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.7.1-importenv.patch
+ epatch "${FILESDIR}"/${PN}-4.5.3-fix-undefined-symbols-warning.patch
+
+ sed -i "s:mpir.h:gmp.h:" src/memory.c || die "failed to patch"
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ sed -i "s:-Wl,-soname,libcsage.so:-install_name ${EPREFIX}/usr/$(get_libdir)/libcsage.dylib:" \
+ SConstruct || die "failed to patch"
+ fi
+}
+
+src_compile() {
+ CXX= SAGE_LOCAL="${EPREFIX}"/usr UNAME=$(uname) escons
+}
+
+src_install() {
+ dolib.so libcsage$(get_libname)
+ insinto /usr/include/csage
+ doins include/*.h
+}

0 comments on commit a507432

Please sign in to comment.