summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2009-08-20 03:23:43 +0000
committerJeremy Olexa <darkside@gentoo.org>2009-08-20 03:23:43 +0000
commit2fa7f3230c60431ae016e380ea34536779aa7aec (patch)
treeb27b23ebbe70cec7ffc184e5f2bdc53b8873c55e /dev-python/skype4py
parentp.mask dev-python/skype4py and net-im/skysentials on hardened because they de... (diff)
downloadgentoo-2-2fa7f3230c60431ae016e380ea34536779aa7aec.tar.gz
gentoo-2-2fa7f3230c60431ae016e380ea34536779aa7aec.tar.bz2
gentoo-2-2fa7f3230c60431ae016e380ea34536779aa7aec.zip
build fix for automagic cython dep, bug 280488. patch by Arfrever
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/skype4py')
-rw-r--r--dev-python/skype4py/ChangeLog10
-rw-r--r--dev-python/skype4py/files/skype4py-1.0.31.0-automagic-cython.patch43
-rw-r--r--dev-python/skype4py/skype4py-1.0.31.0.ebuild5
3 files changed, 55 insertions, 3 deletions
diff --git a/dev-python/skype4py/ChangeLog b/dev-python/skype4py/ChangeLog
index 231e43b00736..d2035fe2f0dd 100644
--- a/dev-python/skype4py/ChangeLog
+++ b/dev-python/skype4py/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-python/skype4py
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/skype4py/ChangeLog,v 1.2 2009/03/21 05:51:26 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/skype4py/ChangeLog,v 1.3 2009/08/20 03:23:43 darkside Exp $
+
+ 20 Aug 2009; Jeremy Olexa <darkside@gentoo.org> skype4py-1.0.31.0.ebuild,
+ +files/skype4py-1.0.31.0-automagic-cython.patch:
+ build fix for automagic cython dep, bug 280488. patch by Arfrever
+
+ 20 Aug 2009; Jeremy Olexa <darkside@gentoo.org> skype4py-1.0.31.0.ebuild,
+ +files/skype4py-1.0.31.0-automagic-cython.patch:
+ build fix for automagic cython dep, bug 280488. patch by Arfrever
21 Mar 2009; Jeremy Olexa <darkside@gentoo.org> skype4py-1.0.31.0.ebuild:
skype4py is pretty useless if skype is not installed - listed on the
diff --git a/dev-python/skype4py/files/skype4py-1.0.31.0-automagic-cython.patch b/dev-python/skype4py/files/skype4py-1.0.31.0-automagic-cython.patch
new file mode 100644
index 000000000000..fc141381f0ef
--- /dev/null
+++ b/dev-python/skype4py/files/skype4py-1.0.31.0-automagic-cython.patch
@@ -0,0 +1,43 @@
+--- setup.py.orig 2009-08-19 22:12:33.287642233 -0500
++++ setup.py 2009-08-19 22:13:00.449644751 -0500
+@@ -140,34 +140,6 @@
+ commands = {'build_doc': build_doc,
+ 'install_lib': install_lib}
+
+-try:
+- # If Cython is present, add the 'build_ext' commands.
+- from Cython.Distutils import build_ext
+-
+-except ImportError:
+- extensions = []
+-
+-else:
+- commands['build_ext'] = build_ext
+-
+- def scandir(dirpath):
+- names = []
+- for name in os.listdir(dirpath):
+- path = os.path.join(dirpath, name)
+- if os.path.isfile(path) and os.path.splitext(name)[-1].lower() == '.py':
+- names.append(path.replace(os.path.sep, '.')[:-3])
+- elif os.path.isdir(path):
+- names.extend(scandir(path))
+- return names
+-
+- extensions = []
+- for ext in scandir('Skype4Py'):
+- if ext.endswith('.__init__'):
+- continue
+- if ext == 'Skype4Py.API.faked_dbus':
+- continue
+- extensions.append(ext)
+-
+
+ # start the distutils setup
+ setup(name='Skype4Py',
+@@ -185,4 +157,4 @@
+ packages=('Skype4Py', 'Skype4Py.API', 'Skype4Py.Languages'),
+ provides=('Skype4Py',),
+ cmdclass=commands,
+- ext_modules=[make_extension(name) for name in extensions])
++ ext_modules=[])
diff --git a/dev-python/skype4py/skype4py-1.0.31.0.ebuild b/dev-python/skype4py/skype4py-1.0.31.0.ebuild
index fe7940f389cf..5639b02feab8 100644
--- a/dev-python/skype4py/skype4py-1.0.31.0.ebuild
+++ b/dev-python/skype4py/skype4py-1.0.31.0.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/skype4py/skype4py-1.0.31.0.ebuild,v 1.2 2009/03/21 05:51:26 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/skype4py/skype4py-1.0.31.0.ebuild,v 1.3 2009/08/20 03:23:43 darkside Exp $
-inherit distutils
+inherit distutils eutils
DESCRIPTION="Python wrapper for the Skype API."
HOMEPAGE="https://developer.skype.com/wiki/Skype4Py"
@@ -23,6 +23,7 @@ src_unpack() {
unpack ${A}
cd "${S}"
use doc && mv "${WORKDIR}/Skype4Py-${PV}-htmldoc" "${S}/html_doc"
+ epatch "${FILESDIR}/${P}-automagic-cython.patch"
}
src_install() {