From 227b452d3dff887bc8f971fd97f0d03bc3d69385 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 1 Feb 2012 18:59:29 -0500 Subject: [PATCH] dev-python/*: import from portage Just copying the ebuilds from portage/ so hopefully no functional changes. BUG=chromium-os:26016 TEST=`cbuildbot arm-generic-full` works TEST=build_packages+build_image boots x86 Change-Id: Iba5f8cdbfd2a518944c7bcf26f91c9ffa826f149 Reviewed-on: https://gerrit.chromium.org/gerrit/15760 Reviewed-by: David James Commit-Ready: Mike Frysinger Tested-by: Mike Frysinger --- .../dev-python/argparse/Manifest | 1 + .../dev-python/argparse/argparse-1.0.1.ebuild | 29 +++++ .../dev-python/cherrypy/Manifest | 1 + .../dev-python/cherrypy/cherrypy-3.1.2.ebuild | 49 ++++++++ .../dev-python/imaging/Manifest | 1 + .../files/imaging-1.1.7-giftrans.patch | 14 +++ .../files/imaging-1.1.7-missing-math.patch | 20 +++ .../imaging/files/imaging-1.1.7-no-xv.patch | 18 +++ .../imaging/files/imaging-1.1.7-sane.patch | 13 ++ .../dev-python/imaging/imaging-1.1.7.ebuild | 95 ++++++++++++++ .../dev-python/m2crypto/Manifest | 1 + .../m2crypto/m2crypto-0.20.2.ebuild | 55 +++++++++ .../dev-python/pycairo/Manifest | 1 + .../files/pycairo-1.8.8-pkgconfig_dir.patch | 17 +++ .../files/pycairo-1.8.8-svg_check.patch | 116 ++++++++++++++++++ .../dev-python/pycairo/pycairo-1.8.8.ebuild | 91 ++++++++++++++ .../dev-python/pyopenssl/Manifest | 1 + .../pyopenssl/pyopenssl-0.10.ebuild | 72 +++++++++++ .../dev-python/pyserial/Manifest | 1 + .../pyserial/pyserial-2.5_rc1.ebuild | 27 ++++ .../portage-stable/dev-python/pyxdg/Manifest | 1 + .../pyxdg/files/pyxdg-subprocess.patch | 38 ++++++ .../dev-python/pyxdg/pyxdg-0.18.ebuild | 37 ++++++ 23 files changed, 699 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/argparse/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/argparse/argparse-1.0.1.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/cherrypy/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/cherrypy/cherrypy-3.1.2.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/imaging/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-giftrans.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-missing-math.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-no-xv.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-sane.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/imaging/imaging-1.1.7.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/m2crypto/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/m2crypto/m2crypto-0.20.2.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pycairo/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pycairo/files/pycairo-1.8.8-pkgconfig_dir.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pycairo/files/pycairo-1.8.8-svg_check.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pycairo/pycairo-1.8.8.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pyopenssl/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pyopenssl/pyopenssl-0.10.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pyserial/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pyserial/pyserial-2.5_rc1.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pyxdg/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pyxdg/files/pyxdg-subprocess.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/pyxdg/pyxdg-0.18.ebuild diff --git a/sdk_container/src/third_party/portage-stable/dev-python/argparse/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/argparse/Manifest new file mode 100644 index 0000000000..955f21d462 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/argparse/Manifest @@ -0,0 +1 @@ +DIST argparse-1.0.1.zip 148371 RMD160 4fd598c116f846aea2537e8ee67fb52108872508 SHA1 2d11d7c3ae6dca73d15c92d20ce8bb99f95daa0f SHA256 d167be909e74f28d32745d09299c0980bd2cd6d9fca4ca27f3bd948c82e87389 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/argparse/argparse-1.0.1.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/argparse/argparse-1.0.1.ebuild new file mode 100644 index 0000000000..6c017e8c3b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/argparse/argparse-1.0.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/argparse/argparse-1.0.1.ebuild,v 1.4 2009/12/02 10:49:48 maekke Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils + +DESCRIPTION="Provides an easy, declarative interface for creating command line tools." +HOMEPAGE="http://code.google.com/p/argparse/ http://pypi.python.org/pypi/argparse" +SRC_URI="http://argparse.googlecode.com/files/${P}.zip" +LICENSE="Apache-2.0" + +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +PYTHON_MODNAME="argparse.py" + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test/test_argparse.py + } + python_execute_function testing +} diff --git a/sdk_container/src/third_party/portage-stable/dev-python/cherrypy/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/cherrypy/Manifest new file mode 100644 index 0000000000..bd2e615c05 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/cherrypy/Manifest @@ -0,0 +1 @@ +DIST CherryPy-3.1.2.tar.gz 319196 RMD160 43a34bc7454da21b597c60124ff0fc61b8dc3e31 SHA1 a94aedfd0e675858dbcc32dd250c23d285ee9b88 SHA256 0dfd65507b047d54c09849e7a4b8bdd3616fa8776a5dbff7697cbf6ea1559bf6 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/cherrypy/cherrypy-3.1.2.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/cherrypy/cherrypy-3.1.2.ebuild new file mode 100644 index 0000000000..a2320be340 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/cherrypy/cherrypy-3.1.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/cherrypy/cherrypy-3.1.2.ebuild,v 1.8 2010/11/14 21:06:25 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils + +MY_P="CherryPy-${PV}" + +DESCRIPTION="CherryPy is a pythonic, object-oriented HTTP framework" +HOMEPAGE="http://www.cherrypy.org/ http://pypi.python.org/pypi/CherryPy" +SRC_URI="http://download.cherrypy.org/${PN}/${PV}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ia64 ppc x86 ~amd64-linux ~x86-linux ~x86-macos" +IUSE="doc" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + sed -i \ + -e 's/"cherrypy.tutorial",//' \ + -e "/('cherrypy\/tutorial',/, /),/d" \ + setup.py || die "sed failed" +} + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" cherrypy/test/test.py --dumb + } + python_execute_function testing +} + +src_install() { + distutils_src_install + + if use doc; then + insinto /usr/share/doc/${PF} + doins -r cherrypy/tutorial + fi +} diff --git a/sdk_container/src/third_party/portage-stable/dev-python/imaging/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/imaging/Manifest new file mode 100644 index 0000000000..3706685324 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/imaging/Manifest @@ -0,0 +1 @@ +DIST Imaging-1.1.7.tar.gz 498749 RMD160 9af570fe100e250a4860314341fe3e6d695d7fde SHA1 76c37504251171fda8da8e63ecb8bc42a69a5c81 SHA256 895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-giftrans.patch b/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-giftrans.patch new file mode 100644 index 0000000000..1a109d28ee --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-giftrans.patch @@ -0,0 +1,14 @@ +--- Imaging-1.1.6.orig/PIL/GifImagePlugin.py 2006-12-03 11:37:15.000000000 +0000 ++++ Imaging-1.1.6/PIL/GifImagePlugin.py 2008-10-02 14:51:43.000000000 +0100 +@@ -352,6 +352,11 @@ + for i in range(maxcolor): + s.append(chr(i) * 3) + ++ if im.info.has_key('transparency'): ++ transparentIndex = im.info['transparency'] ++ s.append('!' + chr(0xf9) + chr(4) + chr(1) + chr(0) + chr(0) + ++ chr(transparentIndex) + chr(0)) ++ + return s + + def getdata(im, offset = (0, 0), **params): diff --git a/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-missing-math.patch b/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-missing-math.patch new file mode 100644 index 0000000000..f4d6167eec --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-missing-math.patch @@ -0,0 +1,20 @@ +--- setup.py.old 2009-07-03 11:34:59.141671252 +0200 ++++ setup.py 2009-07-03 11:51:54.415666711 +0200 +@@ -281,6 +281,8 @@ class pil_build_ext(build_ext): + if struct.unpack("h", "\0\1")[0] == 1: + defs.append(("WORDS_BIGENDIAN", None)) + ++ libs.append("m") ++ + exts = [(Extension( + "_imaging", files, libraries=libs, define_macros=defs + ))] +@@ -332,7 +334,7 @@ class pil_build_ext(build_ext): + )) + + if os.path.isfile("_imagingmath.c"): +- exts.append(Extension("_imagingmath", ["_imagingmath.c"])) ++ exts.append(Extension("_imagingmath", ["_imagingmath.c"], libraries=["m"])) + + self.extensions[:] = exts + diff --git a/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-no-xv.patch b/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-no-xv.patch new file mode 100644 index 0000000000..1cbaf515bd --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-no-xv.patch @@ -0,0 +1,18 @@ +--- PIL/ImageShow.py.old 2009-11-30 10:28:37.000000000 +0100 ++++ PIL/ImageShow.py 2009-11-30 10:29:02.000000000 +0100 +@@ -149,13 +149,10 @@ + def get_command_ex(self, file, title=None, **options): + # note: xv is pretty outdated. most modern systems have + # imagemagick's display command instead. +- command = executable = "xv" +- if title: +- # FIXME: do full escaping +- command = command + " -name \"%s\"" % title ++ command = executable = "xdg-open" + return command, executable + +- if which("xv"): ++ if which("xdg-open"): + register(XVViewer) + + if __name__ == "__main__": diff --git a/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-sane.patch b/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-sane.patch new file mode 100644 index 0000000000..4970e50033 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/imaging/files/imaging-1.1.7-sane.patch @@ -0,0 +1,13 @@ +--- Imaging-1.1.6/Sane/_sane.c.orig 2006-12-03 13:12:22.000000000 +0100 ++++ Imaging-1.1.6/Sane/_sane.c 2009-02-28 11:41:19.000000000 +0200 +@@ -1152,8 +1152,8 @@ + static PyObject * + PySane_get_devices(PyObject *self, PyObject *args) + { +- SANE_Device **devlist; +- SANE_Device *dev; ++ const SANE_Device **devlist; ++ const SANE_Device *dev; + SANE_Status st; + PyObject *list; + int local_only, i; diff --git a/sdk_container/src/third_party/portage-stable/dev-python/imaging/imaging-1.1.7.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/imaging/imaging-1.1.7.ebuild new file mode 100644 index 0000000000..501cd3abd9 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/imaging/imaging-1.1.7.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.7.ebuild,v 1.8 2010/03/07 12:51:07 ssuominen Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit eutils distutils + +MY_P=Imaging-${PV} + +DESCRIPTION="Python Imaging Library (PIL)" +HOMEPAGE="http://www.pythonware.com/products/pil/index.htm" +SRC_URI="http://www.effbot.org/downloads/${MY_P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" +IUSE="doc examples scanner tk X" + +DEPEND="media-libs/jpeg:0 + media-libs/freetype:2 + tk? ( dev-lang/python[tk?] ) + scanner? ( media-gfx/sane-backends ) + X? ( x11-misc/xdg-utils )" +RDEPEND="${DEPEND}" + +RESTRICT_PYTHON_ABIS="3*" + +PYTHON_MODNAME=PIL +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-no-xv.patch + epatch "${FILESDIR}"/${P}-sane.patch + epatch "${FILESDIR}"/${P}-giftrans.patch + epatch "${FILESDIR}"/${P}-missing-math.patch + sed -i \ + -e "s:/usr/lib\":/usr/$(get_libdir)\":" \ + -e "s:\"lib\":\"$(get_libdir)\":g" \ + setup.py || die "sed failed" + if ! use tk; then + # Make the test always fail + sed -i \ + -e 's/import _tkinter/raise ImportError/' \ + setup.py || die "sed failed" + fi +} + +src_compile() { + distutils_src_compile + if use scanner; then + cd "${S}/Sane" + distutils_src_compile + fi +} + +src_test() { + tests() { + PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" selftest.py + } + python_execute_function tests +} + +src_install() { + local DOCS="CHANGES CONTENTS" + distutils_src_install + + use doc && dohtml Docs/* + + if use scanner; then + cd "${S}/Sane" + docinto sane + local DOCS="CHANGES sanedoc.txt" + distutils_src_install + cd "${S}" + fi + + # Install headers required by media-gfx/sketch. + install_headers() { + insinto "$(python_get_includedir)" + doins libImaging/Imaging.h + doins libImaging/ImPlatform.h + } + python_execute_function install_headers + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins Scripts/* + if use scanner; then + insinto /usr/share/doc/${PF}/examples/sane + doins Sane/demo_*.py + fi + fi +} diff --git a/sdk_container/src/third_party/portage-stable/dev-python/m2crypto/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/m2crypto/Manifest new file mode 100644 index 0000000000..b500aa8039 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/m2crypto/Manifest @@ -0,0 +1 @@ +DIST M2Crypto-0.20.2.tar.gz 412987 RMD160 7376195fd586e7834d41229a4798f8810b86eed2 SHA1 6e85d7035971c353db74a497fca0ec2eaea4dea0 SHA256 fc66b96ad2a14de1a502358286d3490677eda30385645fca995fffff22b73e6e diff --git a/sdk_container/src/third_party/portage-stable/dev-python/m2crypto/m2crypto-0.20.2.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/m2crypto/m2crypto-0.20.2.ebuild new file mode 100644 index 0000000000..daa9559c8b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/m2crypto/m2crypto-0.20.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/m2crypto/m2crypto-0.20.2.ebuild,v 1.12 2010/02/14 18:00:53 arfrever Exp $ + +EAPI="2" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils eutils multilib portability + +MY_PN="M2Crypto" + +DESCRIPTION="A python wrapper for the OpenSSL crypto library" +HOMEPAGE="http://chandlerproject.org/bin/view/Projects/MeTooCrypto http://pypi.python.org/pypi/M2Crypto" +SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="doc" + +RDEPEND=">=dev-libs/openssl-0.9.8" +DEPEND="${RDEPEND} + >=dev-lang/swig-1.3.25 + doc? ( dev-python/epydoc ) + dev-python/setuptools" +RESTRICT_PYTHON_ABIS="3.*" + +PYTHON_MODNAME="${MY_PN}" + +S="${WORKDIR}/${MY_PN}-${PV}" + +DOCS="CHANGES" + +src_test() { + testing() { + PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test + } + python_execute_function testing +} + +src_install() { + [[ -z ${ED} ]] && local ED=${D} + distutils_src_install + + if use doc; then + cd "${S}/demo" + treecopy . "${ED}/usr/share/doc/${PF}/example" + + einfo "Generating API documentation..." + cd "${S}/doc" + PYTHONPATH="${ED}$(python_get_sitedir -f)" epydoc --html --output=api --name=M2Crypto M2Crypto + fi + dohtml -r * +} diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pycairo/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/pycairo/Manifest new file mode 100644 index 0000000000..78a57216c4 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pycairo/Manifest @@ -0,0 +1 @@ +DIST pycairo-1.8.8.tar.gz 475651 RMD160 d7e40be061140992e05f714b45182c498ae19311 SHA1 b127ed59bd876ca0fe5d0cf0f69735835c599e9b SHA256 2f52599943ca03c8ff336a0e84b1c8b74f30e2a3de9cb6a9a42a93a848832860 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pycairo/files/pycairo-1.8.8-pkgconfig_dir.patch b/sdk_container/src/third_party/portage-stable/dev-python/pycairo/files/pycairo-1.8.8-pkgconfig_dir.patch new file mode 100644 index 0000000000..27c24a8940 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pycairo/files/pycairo-1.8.8-pkgconfig_dir.patch @@ -0,0 +1,17 @@ +--- setup.py ++++ setup.py +@@ -4,6 +4,7 @@ + import distutils.dir_util as dut + import distutils.file_util as fut + import io ++import os + import subprocess + import sys + +@@ -106,5 +107,5 @@ + description = "python interface for cairo", + ext_modules = [cairo], + data_files=[('include/pycairo',['src/pycairo.h']), +- ('lib/pkgconfig',[pkgconfig_file])], ++ (os.environ.get('PKGCONFIG_DIR', 'lib/pkgconfig'),[pkgconfig_file])], + ) diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pycairo/files/pycairo-1.8.8-svg_check.patch b/sdk_container/src/third_party/portage-stable/dev-python/pycairo/files/pycairo-1.8.8-svg_check.patch new file mode 100644 index 0000000000..78dc13bd17 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pycairo/files/pycairo-1.8.8-svg_check.patch @@ -0,0 +1,116 @@ +--- setup.py ++++ setup.py +@@ -29,6 +30,16 @@ + print pipe.stderr.read() + raise SystemExit('Error: %s >= %s not found' % (pkg, version)) + ++def pkg_config_svg_check(): ++ if os.environ.get('PYCAIRO_DISABLE_SVG', None) is None: ++ pipe = call('pkg-config --exists cairo-svg') ++ if pipe.returncode == 0: ++ return [('PYCAIRO_ENABLE_SVG', None)] ++ else: ++ return [] ++ else: ++ return [] ++ + def pkg_config_parse(opt, pkg): + pipe = call("pkg-config %s %s" % (opt, pkg)) + output = pipe.stdout.read() +@@ -94,6 +105,7 @@ + 'src/pattern.c', + 'src/surface.c', + ], ++ define_macros = pkg_config_svg_check(), + include_dirs = pkg_config_parse('--cflags-only-I', 'cairo'), + library_dirs = pkg_config_parse('--libs-only-L', 'cairo'), + libraries = pkg_config_parse('--libs-only-l', 'cairo'), +--- src/cairomodule.c ++++ src/cairomodule.c +@@ -122,7 +122,7 @@ + #else + 0, + #endif +-#ifdef CAIRO_HAS_SVG_SURFACE ++#ifdef PYCAIRO_ENABLE_SVG + &PycairoSVGSurface_Type, + #else + 0, +@@ -209,7 +209,7 @@ + if (PyType_Ready(&PycairoPSSurface_Type) < 0) + return; + #endif +-#ifdef CAIRO_HAS_SVG_SURFACE ++#ifdef PYCAIRO_ENABLE_SVG + if (PyType_Ready(&PycairoSVGSurface_Type) < 0) + return; + #endif +@@ -285,7 +285,7 @@ + PyModule_AddObject(m, "PSSurface", (PyObject *)&PycairoPSSurface_Type); + #endif + +-#ifdef CAIRO_HAS_SVG_SURFACE ++#ifdef PYCAIRO_ENABLE_SVG + Py_INCREF(&PycairoSVGSurface_Type); + PyModule_AddObject(m, "SVGSurface", (PyObject *)&PycairoSVGSurface_Type); + #endif +@@ -350,7 +350,7 @@ + #else + PyModule_AddIntConstant(m, "HAS_PS_SURFACE", 0); + #endif +-#if CAIRO_HAS_SVG_SURFACE ++#if PYCAIRO_ENABLE_SVG + PyModule_AddIntConstant(m, "HAS_SVG_SURFACE", 1); + #else + PyModule_AddIntConstant(m, "HAS_SVG_SURFACE", 0); +--- src/private.h ++++ src/private.h +@@ -86,7 +86,7 @@ + extern PyTypeObject PycairoPSSurface_Type; + #endif + +-#if CAIRO_HAS_SVG_SURFACE ++#if PYCAIRO_ENABLE_SVG + extern PyTypeObject PycairoSVGSurface_Type; + #endif + +--- src/pycairo.h ++++ src/pycairo.h +@@ -178,7 +178,7 @@ + #define PycairoPSSurface_Type *(Pycairo_CAPI->PSSurface_Type) + #endif + +-#if CAIRO_HAS_SVG_SURFACE ++#if PYCAIRO_ENABLE_SVG + #define PycairoSVGSurface_Type *(Pycairo_CAPI->SVGSurface_Type) + #endif + +--- src/surface.c ++++ src/surface.c +@@ -80,7 +80,7 @@ + type = &PycairoPSSurface_Type; + break; + #endif +-#if CAIRO_HAS_SVG_SURFACE ++#if PYCAIRO_ENABLE_SVG + case CAIRO_SURFACE_TYPE_SVG: + type = &PycairoSVGSurface_Type; + break; +@@ -965,7 +965,7 @@ + + + /* Class SVGSurface(Surface) ----------------------------------------------- */ +-#ifdef CAIRO_HAS_SVG_SURFACE ++#ifdef PYCAIRO_ENABLE_SVG + #include + + static PyObject * +@@ -1067,7 +1067,7 @@ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + }; +-#endif /* CAIRO_HAS_SVG_SURFACE */ ++#endif /* PYCAIRO_ENABLE_SVG */ + + + /* Class Win32Surface(Surface) -------------------------------------------- */ diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pycairo/pycairo-1.8.8.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/pycairo/pycairo-1.8.8.ebuild new file mode 100644 index 0000000000..fd9ff12ba8 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pycairo/pycairo-1.8.8.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/Attic/pycairo-1.8.8.ebuild,v 1.18 2010/10/23 12:21:38 arfrever dead $ + +EAPI="3" +PYTHON_DEPEND="2:2.6" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.4 2.5 3.*" + +inherit eutils distutils multilib + +DESCRIPTION="Python wrapper for cairo vector graphics library" +HOMEPAGE="http://cairographics.org/pycairo/ http://pypi.python.org/pypi/pycairo" +SRC_URI="http://cairographics.org/releases/${P}.tar.gz" + +LICENSE="|| ( LGPL-2.1 MPL-1.1 )" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="doc examples svg" + +RDEPEND=">=x11-libs/cairo-1.8.8[svg?]" +DEPEND="${RDEPEND} + dev-util/pkgconfig + doc? ( >=dev-python/sphinx-0.6 )" + +DOCS="AUTHORS NEWS README" +PYTHON_MODNAME="cairo" + +src_prepare() { + # Don't run py-compile. + sed -i \ + -e '/if test -n "$$dlist"; then/,/else :; fi/d' \ + src/Makefile.in || die "sed in src/Makefile.in failed" + + epatch "${FILESDIR}/${P}-pkgconfig_dir.patch" + epatch "${FILESDIR}/${P}-svg_check.patch" +} + +src_configure() { + if use doc; then + econf + fi + + if ! use svg; then + export PYCAIRO_DISABLE_SVG="1" + fi +} + +src_compile() { + distutils_src_compile + + if use doc; then + emake html || die "emake html failed" + fi +} + +src_test() { + testing() { + cp src/__init__.py $(ls -d build-${PYTHON_ABI}/lib.*)/cairo + pushd test > /dev/null + # examples_test.test_snippets_png() calls os.chdir(). + PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*):../$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" -c "import examples_test; examples_test.test_examples(); examples_test.test_snippets_png()" || return 1 + popd > /dev/null + } + python_execute_function testing +} + +src_install() { + PKGCONFIG_DIR="${EPREFIX}/usr/$(get_libdir)/pkgconfig" distutils_src_install + + if use doc; then + dohtml -r doc/.build/html/ || die "dohtml -r doc/.build/html/ failed" + fi + + if use examples; then + # Delete files created by tests. + find examples{,/cairo_snippets/snippets} -maxdepth 1 -name "*.png" | xargs rm -f + + insinto /usr/share/doc/${PF}/examples + doins -r examples/* + rm "${ED}"/usr/share/doc/${PF}/examples/Makefile* + fi + + # dev-python/pycairo-1.8.8 doesn't install __init__.py automatically. + # http://lists.cairographics.org/archives/cairo/2009-August/018044.html + installation() { + insinto "$(python_get_sitedir)/cairo" + doins src/__init__.py + } + python_execute_function -q installation +} diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pyopenssl/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/pyopenssl/Manifest new file mode 100644 index 0000000000..1c61c2418f --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pyopenssl/Manifest @@ -0,0 +1 @@ +DIST pyOpenSSL-0.10.tar.gz 222169 RMD160 1e303655754b5652327151a790ac6f3b25959972 SHA1 11c956d317ab2b1628937a2681acc31f4b890fe8 SHA256 4514f8960389042ca2587f9cb801a13f7990387753fc678680b0c084719b5b60 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pyopenssl/pyopenssl-0.10.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/pyopenssl/pyopenssl-0.10.ebuild new file mode 100644 index 0000000000..60fe40406a --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pyopenssl/pyopenssl-0.10.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopenssl/pyopenssl-0.10.ebuild,v 1.7 2010/01/16 15:10:42 armin76 Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils eutils + +MY_PN="pyOpenSSL" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Python interface to the OpenSSL library" +HOMEPAGE="http://pyopenssl.sourceforge.net/ http://pypi.python.org/pypi/pyOpenSSL" +SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz + mirror://sourceforge/pyopenssl/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~x64-solaris" +IUSE="doc" + +RDEPEND=">=dev-libs/openssl-0.9.6g" +DEPEND="${RDEPEND} + doc? ( >=dev-tex/latex2html-2002.2 )" +RESTRICT_PYTHON_ABIS="3.*" + +S="${WORKDIR}/${MY_P}" + +PYTHON_MODNAME="OpenSSL" + +src_compile() { + distutils_src_compile + if use doc; then + addwrite /var/cache/fonts + # This one seems to be unnecessary with a recent tetex, but + # according to bugs it was definitely necessary in the past, + # so leaving it in. + addwrite /usr/share/texmf/fonts/pk + + cd doc + make html ps dvi + fi +} + +src_test() { + test_package() { + pushd test > /dev/null + local test + for test in test_*.py; do + echo -e "\e[1;31mRunning ${test}...\e[0m" + PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" "${test}" || die "${test} failed with Python ${PYTHON_ABI}" + done + popd > /dev/null + } + python_execute_function test_package +} + +src_install() { + distutils_src_install + + if use doc; then + dohtml doc/html/* + dodoc doc/pyOpenSSL.* + fi + + # Install examples + docinto examples + dodoc examples/* + docinto examples/simple + dodoc examples/simple/* +} diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pyserial/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/pyserial/Manifest new file mode 100644 index 0000000000..316bf55cad --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pyserial/Manifest @@ -0,0 +1 @@ +DIST pyserial-2.5-rc1.zip 97320 RMD160 a7f69302baa395e794605350553745b268905aa1 SHA1 262a77d50fa91c3b264022f36e4c684035c4d0fd SHA256 88e530ebd51821a5e93df08d471ce445098027659609c28caddbd6552bde6b5d diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pyserial/pyserial-2.5_rc1.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/pyserial/pyserial-2.5_rc1.ebuild new file mode 100644 index 0000000000..0dcd7354dd --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pyserial/pyserial-2.5_rc1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyserial/pyserial-2.5_rc1.ebuild,v 1.8 2009/11/11 00:06:01 ranger Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils + +MY_P="${P/_/-}" + +DESCRIPTION="Python Serial Port Extension" +HOMEPAGE="http://pyserial.wiki.sourceforge.net/pySerial" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" + +LICENSE="PYTHON" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="" + +DOCS="CHANGES.txt" +PYTHON_MODNAME="serial" + +S="${WORKDIR}/${MY_P}" diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pyxdg/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/pyxdg/Manifest new file mode 100644 index 0000000000..fd50bbe45b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pyxdg/Manifest @@ -0,0 +1 @@ +DIST pyxdg-0.18.tar.gz 37558 RMD160 9488598be38dfe3228767e13cdd4931b2cf07506 SHA1 d7245b47e47ced647d700045e0472f8d3ce60a7c SHA256 686f27449812b720fcdea0d07fe31e4eac713e8183538cefbe77526180d7ca7d diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pyxdg/files/pyxdg-subprocess.patch b/sdk_container/src/third_party/portage-stable/dev-python/pyxdg/files/pyxdg-subprocess.patch new file mode 100644 index 0000000000..7b9a1ba7d6 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pyxdg/files/pyxdg-subprocess.patch @@ -0,0 +1,38 @@ +#Patch sent to upstream on March 1st, 2009 +#Jesus Rivero (Neurogeek) +#Replaced deprecated os.popen3 for subprocess + +diff -uNr xdg.orig/Menu.py xdg/Menu.py +--- xdg.orig/Menu.py 2009-03-01 04:34:38.000000000 -0430 ++++ xdg/Menu.py 2009-03-01 04:41:27.000000000 -0430 +@@ -12,6 +12,7 @@ + + import xdg.Locale + import xdg.Config ++from subprocess import Popen, PIPE + + ELEMENT_NODE = xml.dom.Node.ELEMENT_NODE + +@@ -841,13 +842,16 @@ + return m + + def __parseKDELegacyDirs(filename, parent): +- f=os.popen3("kde-config --path apps") +- output = f[1].readlines() + try: +- for dir in output[0].split(":"): +- __parseLegacyDir(dir,"kde", filename, parent) +- except IndexError: +- pass ++ f=Popen("kde-config --path apps", shell=True, stdout=PIPE).stdout ++ output = f.readlines() ++ try: ++ for dir in output[0].split(":"): ++ __parseLegacyDir(dir,"kde", filename, parent) ++ except IndexError: ++ pass ++ except: ++ raise Exception, "kde-config failed" + + # remove duplicate entries from a list + def __removeDuplicates(list): diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pyxdg/pyxdg-0.18.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/pyxdg/pyxdg-0.18.ebuild new file mode 100644 index 0000000000..57d32e97bc --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/pyxdg/pyxdg-0.18.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyxdg/pyxdg-0.18.ebuild,v 1.7 2010/02/13 16:44:47 armin76 Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils eutils + +DESCRIPTION="A Python module to deal with freedesktop.org specifications" +SRC_URI="http://people.freedesktop.org/~lanius/${P}.tar.gz" +HOMEPAGE="http://pyxdg.freedesktop.org/ http://people.freedesktop.org/~lanius/" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="" +RESTRICT_PYTHON_ABIS="3.*" + +PYTHON_MODNAME="xdg" +DOCS="AUTHORS" + +src_prepare() { + distutils_src_prepare + epatch "${FILESDIR}/${PN}-subprocess.patch" +} + +src_install () { + distutils_src_install + + insinto /usr/share/doc/${PF}/tests + insopts -m 755 + doins test/* +}