# ChangeLog for dev-python/pyrex
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyrex/ChangeLog,v 1.56 2006/10/20 20:35:40 kloeri Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyrex/ChangeLog,v 1.57 2007/02/10 12:08:19 lucass Exp $
+
+*pyrex-0.9.5.1a (10 Feb 2007)
+
+ 10 Feb 2007; Lukasz Strzygowski <lucass@gentoo.org>
+ -files/pyrex-0.9.2.1-gcc4.patch,
+ -files/pyrex-0.9.3-python24_distutils.patch, -pyrex-0.9.3-r2.ebuild,
+ -pyrex-0.9.3.1.ebuild, +pyrex-0.9.5.1a.ebuild:
+ Version bump (bug #166091): cleanup, added examples use-flag. Dropped old
+ versions.
20 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> pyrex-0.9.4.1.ebuild:
Stable on Alpha.
-AUX pyrex-0.9.2.1-gcc4.patch 2877 RMD160 22f56b2180aa727986da5408eea49c95184d1ec6 SHA1 53bf65cf13709cc79a8ce896ad5b030dad3ac25d SHA256 2786c8d26f951b9d019ab7ab6043335ad85562b70e2de0d6ac6baa4ea1e9974e
-MD5 b5bb4ba679c6de2f55651b7c6af8f013 files/pyrex-0.9.2.1-gcc4.patch 2877
-RMD160 22f56b2180aa727986da5408eea49c95184d1ec6 files/pyrex-0.9.2.1-gcc4.patch 2877
-SHA256 2786c8d26f951b9d019ab7ab6043335ad85562b70e2de0d6ac6baa4ea1e9974e files/pyrex-0.9.2.1-gcc4.patch 2877
-AUX pyrex-0.9.3-python24_distutils.patch 622 RMD160 d98009963a58899d46e28d5efad5eefc1b2bd5e5 SHA1 4cf2c64acef52a24df23e47e2df844a122d38fdb SHA256 a53609201c03124869afef0d432be4ea090c1d3a290523641dc9ec7cdedd0b10
-MD5 c587d86c063eda8fb02e18b9b1c83aec files/pyrex-0.9.3-python24_distutils.patch 622
-RMD160 d98009963a58899d46e28d5efad5eefc1b2bd5e5 files/pyrex-0.9.3-python24_distutils.patch 622
-SHA256 a53609201c03124869afef0d432be4ea090c1d3a290523641dc9ec7cdedd0b10 files/pyrex-0.9.3-python24_distutils.patch 622
-DIST Pyrex-0.9.3.1.tar.gz 161760 RMD160 29bf606ceaa01b4ca0fe51cd7771ab88040d695b SHA1 8f068da4af838e6e6697c3d52cf64c13541cf1ca SHA256 e93c6f74e425d4b9e65ecc7e7b7854c586a1448009ce873b30e7a2d6c8ca30ae
-DIST Pyrex-0.9.3.tar.gz 176072 RMD160 6322e5f8079daffeb1ed372972e88de79c59b4ae SHA1 bbd534b1905de5f3ad445c6d30a2fd57a4b362be SHA256 64e475924df3d55b7d1f9b17b7c088713917ed611de0fc2ee02394aa5ba9ab9a
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
DIST Pyrex-0.9.4.1.tar.gz 181507 RMD160 c6474bfdab3ed7df745b83aba89a47c6482d7d0a SHA1 cafd221d75bacd411d8f0ca8dabc450a58466ba5 SHA256 687c9169cfb716daa1414b1879a8cd4466be26c89e058d65c15d0dd30b61cfd3
-EBUILD pyrex-0.9.3-r2.ebuild 1070 RMD160 1150b85cf2512d58e030c2e7bf322cb92970325e SHA1 7ff0f0ed46924dfa61e1b780eabdc7020291ad12 SHA256 21bac80c4a71e909a42f22602f3c0418e72872c5c613dc4db3eff248f5891f2c
-MD5 0e8e90e5c8c788babff67918befeffdc pyrex-0.9.3-r2.ebuild 1070
-RMD160 1150b85cf2512d58e030c2e7bf322cb92970325e pyrex-0.9.3-r2.ebuild 1070
-SHA256 21bac80c4a71e909a42f22602f3c0418e72872c5c613dc4db3eff248f5891f2c pyrex-0.9.3-r2.ebuild 1070
-EBUILD pyrex-0.9.3.1.ebuild 837 RMD160 291e2de6752e3811a5e1e026805eb19471cd8469 SHA1 25e4da9ce1c0ee33d0dc17f53effbbf4c51cc971 SHA256 e75d537819be2106e33f47c1675ee69ff2284235eb627c6f43f5cbe120f41e1a
-MD5 7fea915a5fd5682f4bc9b6244ab26b1f pyrex-0.9.3.1.ebuild 837
-RMD160 291e2de6752e3811a5e1e026805eb19471cd8469 pyrex-0.9.3.1.ebuild 837
-SHA256 e75d537819be2106e33f47c1675ee69ff2284235eb627c6f43f5cbe120f41e1a pyrex-0.9.3.1.ebuild 837
+DIST Pyrex-0.9.5.1a.tar.gz 183135 RMD160 a8b1a358986a641fd604f5487750f5f1e2633aaa SHA1 ea8b6e5981ec2d05306a8fc42bb1c429bd3f5966 SHA256 7f34e865505bd467557220961b091fc54782114865e1c5b81e68395989ddbd53
EBUILD pyrex-0.9.4.1.ebuild 837 RMD160 627de134f3abcf89bb2f904c2ec1f472663710e0 SHA1 ee4b9f2faaadc9a103b7275dc29cee6e5bb71480 SHA256 514dd68da2d8ff24bbfd2f4d4f5b08fb2dd4e8f7665e0887d8ef88036247933a
MD5 ef23e8df14f90c01714f7d24108b5b8a pyrex-0.9.4.1.ebuild 837
RMD160 627de134f3abcf89bb2f904c2ec1f472663710e0 pyrex-0.9.4.1.ebuild 837
SHA256 514dd68da2d8ff24bbfd2f4d4f5b08fb2dd4e8f7665e0887d8ef88036247933a pyrex-0.9.4.1.ebuild 837
-MISC ChangeLog 6290 RMD160 7973d6df6909ef367d7e8ddb43b9a5d3c52815eb SHA1 a3047f01886bc4123caba653abc3863624ce3316 SHA256 2293b9f636f8e75399a96d6d4b670bba717c49817342dd283dfac55b14246036
-MD5 912fdfdd0b86d495e710173689f5b749 ChangeLog 6290
-RMD160 7973d6df6909ef367d7e8ddb43b9a5d3c52815eb ChangeLog 6290
-SHA256 2293b9f636f8e75399a96d6d4b670bba717c49817342dd283dfac55b14246036 ChangeLog 6290
+EBUILD pyrex-0.9.5.1a.ebuild 852 RMD160 ce2c4d6800fd83d1e4817565c8ab162b49f5e609 SHA1 0c4013ce3c1cb850cc7d2bb253a6276f99d0a8ec SHA256 d6f227b5b19596c7b0b2294eef2f00bb3c2af891362bed65bd1c909493366c44
+MD5 c7415ad25d107654f2856ee4c1c9312c pyrex-0.9.5.1a.ebuild 852
+RMD160 ce2c4d6800fd83d1e4817565c8ab162b49f5e609 pyrex-0.9.5.1a.ebuild 852
+SHA256 d6f227b5b19596c7b0b2294eef2f00bb3c2af891362bed65bd1c909493366c44 pyrex-0.9.5.1a.ebuild 852
+MISC ChangeLog 6619 RMD160 f092bd4da54c7d590135c0bb799d4a5c4caf60f6 SHA1 cf1494c15f2112fa2f1ae791308ab06e64d4d6e1 SHA256 e47677bc5513c7bdf2e46b0b474defa413dd3416df2e865bfb4c3208240f96a0
+MD5 3f93d7d4b120e8d8e79670b50b2f6d23 ChangeLog 6619
+RMD160 f092bd4da54c7d590135c0bb799d4a5c4caf60f6 ChangeLog 6619
+SHA256 e47677bc5513c7bdf2e46b0b474defa413dd3416df2e865bfb4c3208240f96a0 ChangeLog 6619
MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4
MD5 71c4638c9c88af75b58e5f5cb54fe008 metadata.xml 159
RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f metadata.xml 159
SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4 metadata.xml 159
-MD5 a9095b9f83f476fe1635f2f5053ee563 files/digest-pyrex-0.9.3-r2 235
-RMD160 cbde8bda80ad4abc1bd56da77a3e82781f219522 files/digest-pyrex-0.9.3-r2 235
-SHA256 58d8503dc1b8acbf6e41fd33175c14c4c4976ee173e31af0aa1255f65798543f files/digest-pyrex-0.9.3-r2 235
-MD5 a78b029e2c87741998481e9f4a95458a files/digest-pyrex-0.9.3.1 241
-RMD160 416c060d50a2eb62d129d07d44bbd742e74ec2c6 files/digest-pyrex-0.9.3.1 241
-SHA256 a5f69d138d0808215f139dfda79ea526c3c6fdafcaaa35190b5df194d67bf20e files/digest-pyrex-0.9.3.1 241
MD5 7705eaac0dbd68781d9454122639ec08 files/digest-pyrex-0.9.4.1 241
RMD160 f55b2903c3fa5c24bf90ab277b1073d5ddad7c8e files/digest-pyrex-0.9.4.1 241
SHA256 1645cb2b49b090a82a838862e6b27a3c9c6ece9f364ac1e7364ceda9b4f01afc files/digest-pyrex-0.9.4.1 241
+MD5 03ed2a6294de60da695ae019c81c8ea1 files/digest-pyrex-0.9.5.1a 244
+RMD160 e20488a57c96f66b59d0fa717d5d1170898095fe files/digest-pyrex-0.9.5.1a 244
+SHA256 23bd751803fa939fbe7101f7709369a46fccf9abbbd9270a1a527c0715eb7a87 files/digest-pyrex-0.9.5.1a 244
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.2 (GNU/Linux)
+
+iD8DBQFFzbXN2jLqHNfbg2URAvqpAJ9c1ZRxQq3i4byLYcx6LQxQQgaNVACfX7AG
+4KGs8nYfoH0G0RVBnrI/gyY=
+=H7Ao
+-----END PGP SIGNATURE-----
+++ /dev/null
-MD5 63c4cb884d6b777d3806f9669ba5feba Pyrex-0.9.3.tar.gz 176072
-RMD160 6322e5f8079daffeb1ed372972e88de79c59b4ae Pyrex-0.9.3.tar.gz 176072
-SHA256 64e475924df3d55b7d1f9b17b7c088713917ed611de0fc2ee02394aa5ba9ab9a Pyrex-0.9.3.tar.gz 176072
+++ /dev/null
-MD5 0415b95a023061679021323d9ce56fe0 Pyrex-0.9.3.1.tar.gz 161760
-RMD160 29bf606ceaa01b4ca0fe51cd7771ab88040d695b Pyrex-0.9.3.1.tar.gz 161760
-SHA256 e93c6f74e425d4b9e65ecc7e7b7854c586a1448009ce873b30e7a2d6c8ca30ae Pyrex-0.9.3.1.tar.gz 161760
--- /dev/null
+MD5 0132c5cd2f8685e4948fb14dcb65f637 Pyrex-0.9.5.1a.tar.gz 183135
+RMD160 a8b1a358986a641fd604f5487750f5f1e2633aaa Pyrex-0.9.5.1a.tar.gz 183135
+SHA256 7f34e865505bd467557220961b091fc54782114865e1c5b81e68395989ddbd53 Pyrex-0.9.5.1a.tar.gz 183135
+++ /dev/null
---- Pyrex-0.9.2.1/Pyrex/Compiler/Code.py.orig 2005-03-22 13:41:29.000000000 -0500
-+++ Pyrex-0.9.2.1/Pyrex/Compiler/Code.py 2005-03-22 13:46:15.000000000 -0500
-@@ -218,14 +218,19 @@
- for entry in entries:
- self.put_var_xdecref_clear(entry)
-
-- def put_init_to_py_none(self, cname):
-- self.putln("%s = Py_None; Py_INCREF(%s);" % (cname, cname))
-+ def put_init_to_py_none(self, cast, cname):
-+ if cast:
-+ self.putln("%s = Py_None; Py_INCREF(%s %s);" % (cname, cast, cname))
-+ else:
-+ self.putln("%s = Py_None; Py_INCREF(%s);" % (cname, cname))
-
- def put_init_var_to_py_none(self, entry, template = "%s"):
- code = template % entry.cname
- if entry.type.is_extension_type:
-- code = "((PyObject*)%s)" % code
-- self.put_init_to_py_none(code)
-+ cast = "(PyObject *)"
-+ else:
-+ cast = None
-+ self.put_init_to_py_none(cast, code)
-
- def put_pymethoddef(self, entry, term):
- if entry.doc:
---- Pyrex-0.9.2.1/Pyrex/Compiler/ExprNodes.py.orig 2005-03-22 13:41:35.000000000 -0500
-+++ Pyrex-0.9.2.1/Pyrex/Compiler/ExprNodes.py 2005-03-22 13:34:05.000000000 -0500
-@@ -806,7 +806,7 @@
- if self.type.is_pyobject:
- rhs.make_owned_reference(code)
- code.put_decref(self.result, self.type)
-- code.putln('%s = %s;' % (self.result, rhs.result))
-+ code.putln('%s = %s;' % (self.entry.cname, rhs.result))
- if debug_disposal_code:
- print "NameNode.generate_assignment_code:"
- print "...generating post-assignment code for", rhs
---- Pyrex-0.9.2.1/Pyrex/Compiler/Nodes.py.orig 2005-03-22 13:41:40.000000000 -0500
-+++ Pyrex-0.9.2.1/Pyrex/Compiler/Nodes.py 2005-03-22 13:43:36.000000000 -0500
-@@ -472,9 +472,9 @@
- self.generate_self_cast(scope, code)
- type = scope.parent_type
- if type.vtabslot_cname:
-- code.putln("(struct %s *)p->%s = %s;" % (
-- type.vtabstruct_cname,
-+ code.putln("p->%s = (struct %s *)%s;" % (
- type.vtabslot_cname,
-+ type.vtabstruct_cname,
- type.vtabptr_cname))
- for entry in scope.var_entries:
- if entry.type.is_pyobject:
-@@ -1671,10 +1671,11 @@
- code.putln("")
- if self.return_type.is_pyobject:
- if self.return_type.is_extension_type:
-- lhs = "(PyObject *)%s" % Naming.retval_cname
-+ cast = "(PyObject *)"
- else:
-- lhs = Naming.retval_cname
-- code.put_init_to_py_none(lhs)
-+ cast = None
-+ lhs = Naming.retval_cname
-+ code.put_init_to_py_none(cast, lhs)
- else:
- val = self.return_type.default_value
- if val:
+++ /dev/null
-diff -rc Pyrex-0.9.3/Pyrex/Distutils/build_ext.py Pyrex-0.9.3-patched/Pyrex/Distutils/build_ext.py
-*** Pyrex-0.9.3/Pyrex/Distutils/build_ext.py Fri Apr 30 08:00:46 2004
---- Pyrex-0.9.3-patched/Pyrex/Distutils/build_ext.py Fri Jan 7 12:24:17 2005
-***************
-*** 32,38 ****
- if self.compiler == 'mingw32':
- self.swig_cpp = 1
-
-! def swig_sources (self, sources):
- if not self.extensions:
- return
-
---- 32,38 ----
- if self.compiler == 'mingw32':
- self.swig_cpp = 1
-
-! def swig_sources (self, sources, extensions=None):
- if not self.extensions:
- return
-
+++ /dev/null
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyrex/pyrex-0.9.3-r2.ebuild,v 1.15 2006/03/14 03:33:18 vapier Exp $
-
-inherit distutils eutils
-
-MY_P="Pyrex-${PV}"
-S=${WORKDIR}/${MY_P}
-DESCRIPTION="a language for writing Python extension modules"
-HOMEPAGE="http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex"
-SRC_URI="http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/${MY_P}.tar.gz"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
-IUSE=""
-
-DEPEND="virtual/python"
-
-src_unpack() {
- unpack ${A}
- cd ${S}
- # fix for pyrex distutils for python 2.4. bug# 77042
- epatch ${FILESDIR}/${P}-python24_distutils.patch
- # fix for gcc-4.0
- epatch ${FILESDIR}/${PN}-0.9.2.1-gcc4.patch
-}
-
-src_install() {
- mydoc="CHANGES.txt INSTALL.txt README.txt USAGE.txt"
- distutils_src_install
-
- dodir /usr/share/doc/${PF}/Demos
- cp -r ${S}/Demos ${D}/usr/share/doc/${PF}
- dohtml -r Doc/*
- cp ${S}/Doc/primes.c ${D}usr/share/doc/${PF}/html/
-}
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyrex/pyrex-0.9.3.1.ebuild,v 1.7 2006/03/14 03:33:18 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyrex/pyrex-0.9.5.1a.ebuild,v 1.1 2007/02/10 12:08:19 lucass Exp $
-inherit distutils portability
+NEED_PYTHON=2.3
+
+inherit distutils
MY_P="Pyrex-${PV}"
-S=${WORKDIR}/${MY_P}
-DESCRIPTION="a language for writing Python extension modules"
+DESCRIPTION="A language for writing Python extension modules"
HOMEPAGE="http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex"
SRC_URI="http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/${MY_P}.tar.gz"
LICENSE="as-is"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE=""
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="examples"
+
+S="${WORKDIR}/${MY_P}"
PYTHON_MODNAME="Pyrex"
DOCS="CHANGES.txt INSTALL.txt ToDo.txt USAGE.txt"
distutils_src_install
- dohtml -r Doc/*
- cp Doc/primes.c "${D}/usr/share/doc/${PF}/html/"
- treecopy Demos "${D}/usr/share/doc/${PF}"
+ dohtml -A c -r Doc/*
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r Demos
+ fi
}