Skip to content

Commit

Permalink
Build pynac for different python ABIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gagern committed Jan 8, 2011
1 parent 455bfe5 commit 07493f4
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
8 changes: 7 additions & 1 deletion sci-libs/pynac/ChangeLog
@@ -1,7 +1,13 @@
# ChangeLog for sci-libs/pynac
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $

*pynac-0.2.1-r1 (08 Jan 2011)

08 Jan 2011; Martin von Gagern (MvG) <Martin.vGagern@gmx.net>
+pynac-0.2.1-r1.ebuild:
Build pynac for different python ABIs.

01 Nov 2010; François Bissey <f.r.bissey@massey.ac.nz>
pynac-0.2.1.ebuild:
update SRC_URI
Expand Down
3 changes: 2 additions & 1 deletion sci-libs/pynac/Manifest
@@ -1,6 +1,7 @@
DIST pynac-0.2.0_p5.tar.bz2 2542617 RMD160 5f8ebec8fd74b04628b20764dd8f3226b81166c0 SHA1 ec2bf53d478a5bcbfe982750fdb6108d9c65d9ea SHA256 f6c84647092a48f594122b7d856a02054d33fde72589b646f66826f4a2ba5a75
DIST pynac-0.2.1.tar.bz2 2510747 RMD160 8c866a5b7ae24ca051ee7c324c303a43adf1603c SHA1 8f519fffa1eeb5499a94fea3f930e5ab0c6d6c8e SHA256 08d6daed6554f9972143ef1238c5544c168c43bf18c44b040298fd8db3f5fcf2
EBUILD pynac-0.2.0_p5.ebuild 737 RMD160 9ecf6ed6301d188b13d2e18d8620a86a90f119b4 SHA1 a7fc74723cf959344d3efd70d0895d402482a0d7 SHA256 deac006e4c580bf78ed3fb4e84b0261880a8da50def8896e66e15c661fe5927b
EBUILD pynac-0.2.1-r1.ebuild 985 RMD160 82f2f7cf6d965302a56c82d9dedc3779f30cf085 SHA1 f08a5b91bffd047dd8f2521f37d16199ce825893 SHA256 b064e66d1e245847e7f60c9fd8f9506e8a06a7b74f32fcecd18cca921f91ba90
EBUILD pynac-0.2.1.ebuild 669 RMD160 59d6c164e3c3fe6a7d80cbf5046f704232c11a07 SHA1 f33dea0583e3563fbe210c8bbe3e85e7032f30d1 SHA256 962805cd29851714b4e90a43885ef5d2ce7961e8a83c00496cb11bb59fb873ce
MISC ChangeLog 2487 RMD160 42e9d5422aa439deb988ec71190258e1425f2bd1 SHA1 05b77d0781df70f51a138011b33849b1e4ce4114 SHA256 b2859cdf9faa7d34433be0033956f3b3e608c0705421299ee929eef668e5be39
MISC ChangeLog 2650 RMD160 6895c23ddc75256049a3b71f2f17b5890a0b56b6 SHA1 835636121141b94ae6c9df6078d341a0eb503f23 SHA256 9d5ebcf479376d5c5f0939d1afcd97ae7ae1b364d011719c705c0c3f59064454
MISC metadata.xml 147 RMD160 f36aac27eb365c7596b1b3977f45682df9e442e0 SHA1 61c6aa6718b32770c31cc9f85e0bd3aada22fd42 SHA256 13daed4b78da09ce1ec3e230290e45ce9ba847884866d1f7d538499253b5803e
43 changes: 43 additions & 0 deletions sci-libs/pynac/pynac-0.2.1-r1.ebuild
@@ -0,0 +1,43 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"
SUPPORT_PYTHON_ABIS="1"
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
RESTRICT_PYTHON_ABIS="3.*"

inherit python multilib

SAGE_P="sage-4.6"

DESCRIPTION="A modified version of GiNaC that replaces the dependency on CLN by Python"
HOMEPAGE="http://pynac.sagemath.org/"
SRC_URI="http://sage.math.washington.edu/home/release/${SAGE_P}/${SAGE_P}/spkg/standard/${P}.spkg -> ${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="static-libs"

RESTRICT="mirror"

CDEPEND="virtual/python"
DEPEND="${CDEPEND}
dev-util/pkgconfig"
RDEPEND="${CDEPEND}"

S="${WORKDIR}/${P}/src"

DOCS=( AUTHORS NEWS README )

src_configure() {
do_configure() {
econf --libdir=$(python_get_libdir)/lib-dynload "$@"
}
python_execute_function -s do_configure --disable-static
}

src_install() {
python_src_install pkgconfigdir=$(get_libdir)/pkgconfig
}

1 comment on commit 07493f4

@gagern
Copy link
Owner Author

@gagern gagern commented on 07493f4 Jan 8, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this ebuild in itself doesn't work as it should: sage emerged for me, but only due to FEATURES=preserve-libs. After unmerging it, a fresh merge of sage failed. Seems it doesn't use pkgconfig or the python lib-dynload dir. So don't use this branch unless the issue has been addressed.

Please sign in to comment.