diff options
author | Sébastien Picavet (SebastienP) <sebastien.picavet@gmail.com> | 2012-07-07 17:49:50 +0200 |
---|---|---|
committer | Sébastien Picavet (SebastienP) <sebastien.picavet@gmail.com> | 2012-07-07 17:49:50 +0200 |
commit | b16e8ab731d3e219fdb2a9943c57d559b9fff9ed (patch) | |
tree | 6781ce0c38df5ed34a1492bebae3b3c65ec6d2be /dev-python | |
parent | net-nntp/sabnzbd: Version bump for SABnzbd (diff) | |
download | sunrise-reviewed-b16e8ab731d3e219fdb2a9943c57d559b9fff9ed.tar.gz sunrise-reviewed-b16e8ab731d3e219fdb2a9943c57d559b9fff9ed.tar.bz2 sunrise-reviewed-b16e8ab731d3e219fdb2a9943c57d559b9fff9ed.zip |
dev-python/yenc: Add a patch and rewrite with python-distutils-ng, thanks to Tommy[D]
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/yenc/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/yenc/Manifest | 5 | ||||
-rw-r--r-- | dev-python/yenc/files/yenc-remove-cflags.patch | 11 | ||||
-rw-r--r-- | dev-python/yenc/yenc-0.4.0-r1.ebuild (renamed from dev-python/yenc/yenc-0.4.0.ebuild) | 26 |
4 files changed, 33 insertions, 15 deletions
diff --git a/dev-python/yenc/ChangeLog b/dev-python/yenc/ChangeLog index 8fae5ab77..f2477285e 100644 --- a/dev-python/yenc/ChangeLog +++ b/dev-python/yenc/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*yenc-0.4.0-r1 (07 Jul 2012) + + 07 Jul 2012; Sébastien Picavet (SebastienP) sebastien.picavet@gmail.com + -yenc-0.4.0.ebuild, +yenc-0.4.0-r1.ebuild, +files/yenc-remove-cflags.patch: + Add a patch and rewrite with python-distutils-ng, thanks to Tommy[D] + 03 Jun 2012; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> metadata.xml: Drop perl herd, there are no herds in sunrise diff --git a/dev-python/yenc/Manifest b/dev-python/yenc/Manifest index 2768bc355..7aa1518b1 100644 --- a/dev-python/yenc/Manifest +++ b/dev-python/yenc/Manifest @@ -1,4 +1,5 @@ +AUX yenc-remove-cflags.patch 489 RMD160 ae84e203c793d0e46c5d21a26a75d3fce540fab2 SHA1 dc47073d60e97d5d1ebbb39ce7d77fff0943fa1d SHA256 884e22c81520bd3d22f5d83bb7a3fd2dd9963914544c2420add3306ebfa63b0e DIST yenc-0.4.0.tar.gz 63156 RMD160 36356363bddd6626a9e6659df126284591b5952a SHA1 7e84dbadae82a48b9037262756a3f64c5c0482d8 SHA256 075f6c4e4f43b7c6dafac579eabb17287b62d80e9147cbea0b046bc3ee8edd2f -EBUILD yenc-0.4.0.ebuild 683 RMD160 1be015afa19bb967dff68918112cbb312ffeb642 SHA1 82ad1816d476eefa85c29e2acd67fd23c3eb7bfe SHA256 5af66c1cf41f1972acc23cb4208e701e2a212f7e68dd4a920f00868777a993da -MISC ChangeLog 465 RMD160 06b5a6543bbf5ff6cb79494121253c861d88a828 SHA1 1450cc0d56c5edc7b5ca616b9cd20284c1a4ff8c SHA256 c876b2d9d2cbbf0b8c510615de15a13517e6ab933026b5aeaec8dc851d3791b7 +EBUILD yenc-0.4.0-r1.ebuild 722 RMD160 4c131bf300347c1bbb66446f41d73ab1757d31f0 SHA1 631a3ef0ce58cdf62d2a9b8339a7e500f29e25c7 SHA256 b741f1404c4b8f4213554af826b1be19be1338b8f6fb51663a7aebab345144b9 +MISC ChangeLog 720 RMD160 810ab2f2b81a7a06743102b1801e7022ff36a234 SHA1 0aced15d7b2fe9dcc65d63c0663305b314876d65 SHA256 0a5f59655d79658340b87c67c8660e62475fd9ca507f48a77cc73a6f2eafd513 MISC metadata.xml 350 RMD160 e0af472e1fc8e254d6d70bc0fc0dab4dcaf091d5 SHA1 eec83383a762110fb779ef1028c2e86f9e3484e3 SHA256 8c7275b0ba5e7b70d2043cba7d122c816e82cdc4f2a04c8e37e7a76607d9ae76 diff --git a/dev-python/yenc/files/yenc-remove-cflags.patch b/dev-python/yenc/files/yenc-remove-cflags.patch new file mode 100644 index 000000000..27721c727 --- /dev/null +++ b/dev-python/yenc/files/yenc-remove-cflags.patch @@ -0,0 +1,11 @@ +--- setup.py 2011-09-06 09:04:33.000000000 +0200 ++++ setup.py.NEW 2012-07-07 15:33:13.295906002 +0200 +@@ -33,7 +33,7 @@ + platforms = ["Unix"], + package_dir = { '': 'lib' }, + py_modules = ["yenc"], +- ext_modules = [Extension("_yenc",["src/_yenc.c"],extra_compile_args=["-O2","-g"])], ++ ext_modules = [Extension("_yenc",["src/_yenc.c"])], + classifiers = [ + "Programming Language :: Python", + "Programming Language :: Python :: 2.5", diff --git a/dev-python/yenc/yenc-0.4.0.ebuild b/dev-python/yenc/yenc-0.4.0-r1.ebuild index bc686f951..0f7835285 100644 --- a/dev-python/yenc/yenc-0.4.0.ebuild +++ b/dev-python/yenc/yenc-0.4.0-r1.ebuild @@ -4,11 +4,9 @@ EAPI="4" -PYTHON_DEPEND="2:2.6" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="2.5 3.*" +PYTHON_COMPAT="python2_6 python2_7" -inherit distutils python +inherit eutils python-distutils-ng DESCRIPTION="A fairly simple module, it provide only raw yEnc encoding/decoding" HOMEPAGE="http://www.golug.it/yenc.html" @@ -19,16 +17,18 @@ SLOT="0" KEYWORDS="~amd64" IUSE="" -src_install() { - distutils_src_install +src_prepare(){ + # Remove forced CFLAG on setup.py + epatch "${FILESDIR}/${PN}-remove-cflags.patch" +} - dodoc doc/yenc-draft.1.3.txt +python_test() { + PYTHONPATH="$(ls -d build/lib.*)" \ + "${PYTHON}" test/test.py || die "Test failed." } -src_test() { - testing() { - PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" \ - "$(PYTHON)" "test/test.py" - } - python_execute_function testing +src_install() { + python-distutils-ng_src_install + + dodoc doc/${PN}-draft.1.3.txt }
\ No newline at end of file |