diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/celementtree | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/celementtree')
5 files changed, 113 insertions, 0 deletions
diff --git a/dev-python/celementtree/Manifest b/dev-python/celementtree/Manifest new file mode 100644 index 000000000000..61f493f6910a --- /dev/null +++ b/dev-python/celementtree/Manifest @@ -0,0 +1,5 @@ +AUX celementtree-1.0.5-setuptools.patch 322 BLAKE2B 5da2f11073e8f52505bb6c9ed8be446164624ca6b2032343cf5e064534db68804d04848413c2676d4bd50f3a07528cfcc6329bf2c6c31219eef11da8d01379a6 SHA512 d72e17afb23f9070797a0d8a88cb48df8c59de8c4f8db04cfcff7499e68d97f37e79569c1a763aa1670af8a99c9efe3013396a458a33ac8a338079fa25d4d792 +AUX celementtree-1.0.5-use_system_expat.patch 1069 BLAKE2B 2655c03b2e7faf0528091138de58a4bffcd2074b3f9979860a234d8b8ca474bf0f0071b891f3292eb0173859e831a6c78a8d763b7762c21ba783cff848f9bf8c SHA512 2b343a2aa5f30c1aa63acdc47cc89417f3622d837e846e2756098123f8491d140660c123d4dfabb4947e82b9561fbc424e31d3685e223db337a1b451bf2008c1 +DIST cElementTree-1.0.5-20051216.tar.gz 93766 BLAKE2B b3d70fdec8361b003915215e0007460bcc5947f96c293941849ff0c000eb689dc33f0d32a5f473370341f0e0749183717a326e79ae23a7e4c15f4e4ec9970366 SHA512 2cb99e4980580f186eb9b8740bc5a3e6e85e714a5d1f613850a8f12f7dbc125c8aa7770f7fe70480fb96999212c11181ab681822c74429882c1dfe91c20e2af9 +EBUILD celementtree-1.0.5-r2.ebuild 1123 BLAKE2B e028d0d5328d8876f5034747893478ca2ef633dd91ba552f398321df7b2595e3f2df895874c1d87a05f2894302440cdee318d6ad74b9b3f06a13e1b9a162f111 SHA512 1cbf8328459dbadbcb3714d91831ce4108efc25dd03b6b6970d84a25c3789868df175aa9e29441682ee29424e93274ed4e038bb8c7b7bdbd73f9bf213aa5362a +MISC metadata.xml 240 BLAKE2B 41e6a4d9da33dab2decc5ff419924f382a8f64d27a81fdb97576db8c6cf125be95911747946ec8be1b453f56617fef1084f5947f84b50a8db419d46df2ae8a0f SHA512 9c23321eaa853f851bf00195ea64ac2ba093e516f9b57855ee5aa58fbb1988130c9f0c17c2a9ce9fae4ee033e0a28a70c868e0f5acdfa1dd316ab533c5279d59 diff --git a/dev-python/celementtree/celementtree-1.0.5-r2.ebuild b/dev-python/celementtree/celementtree-1.0.5-r2.ebuild new file mode 100644 index 000000000000..d249e06a3072 --- /dev/null +++ b/dev-python/celementtree/celementtree-1.0.5-r2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +MY_P="cElementTree-${PV}-20051216" + +DESCRIPTION="The cElementTree module is a C implementation of the ElementTree API" +HOMEPAGE="http://effbot.org/zone/celementtree.htm https://pypi.org/project/cElementTree/" +SRC_URI="http://effbot.org/downloads/${MY_P}.tar.gz" + +LICENSE="ElementTree" +SLOT="0" +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris" +IUSE="examples" + +RDEPEND=">=dev-python/elementtree-1.2[${PYTHON_USEDEP}] + >=dev-libs/expat-1.95.8" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +S="${WORKDIR}/${MY_P}" + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}/${P}-use_system_expat.patch" + "${FILESDIR}/${P}-setuptools.patch" + ) + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" selftest.py || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use examples && local EXAMPLES=( samples/. selftest.py ) + + distutils-r1_python_install_all +} diff --git a/dev-python/celementtree/files/celementtree-1.0.5-setuptools.patch b/dev-python/celementtree/files/celementtree-1.0.5-setuptools.patch new file mode 100644 index 000000000000..d70dfab1a519 --- /dev/null +++ b/dev-python/celementtree/files/celementtree-1.0.5-setuptools.patch @@ -0,0 +1,12 @@ +--- setup.py.orig 2007-07-04 23:05:19.000000000 -0700 ++++ setup.py 2007-07-04 23:05:58.000000000 -0700 +@@ -6,7 +6,8 @@ + # Usage: python setup.py install + # + +-from distutils.core import setup, Extension ++from setuptools import setup ++from distutils.core import Extension + from distutils import sysconfig + import sys, os + diff --git a/dev-python/celementtree/files/celementtree-1.0.5-use_system_expat.patch b/dev-python/celementtree/files/celementtree-1.0.5-use_system_expat.patch new file mode 100644 index 000000000000..fb90e59a4492 --- /dev/null +++ b/dev-python/celementtree/files/celementtree-1.0.5-use_system_expat.patch @@ -0,0 +1,44 @@ +diff -u a/selftest.py b/selftest.py +--- a/selftest.py 2005-12-16 23:57:47.000000000 +0200 ++++ b/selftest.py 2007-07-03 08:07:45.000000000 +0300 +@@ -176,8 +176,6 @@ + </ns0:root> + + >>> parser = ElementTree.XMLParser() +- >>> parser.version +- 'Expat 1.95.8' + >>> parser.feed(open("samples/simple.xml").read()) + >>> print serialize(parser.close()) + <root> +diff -u a/setup.py b/setup.py +--- a/setup.py 2005-12-16 23:57:47.000000000 +0200 ++++ b/setup.py 2007-07-03 08:00:57.000000000 +0300 +@@ -23,16 +23,6 @@ + # -------------------------------------------------------------------- + # expat library + +-sources = [ +- "expat/xmlparse.c", +- "expat/xmlrole.c", +- "expat/xmltok.c", +- ] +- +-includes = [ +- "expat", +- ] +- + defines = [ + ("XML_STATIC", None), + ] +@@ -63,9 +53,9 @@ + + ext_modules.append( + Extension( +- "cElementTree", ["cElementTree.c"] + sources, ++ "cElementTree", ["cElementTree.c"], + define_macros=defines, +- include_dirs=includes, ++ libraries=['expat'], + ) + ) + diff --git a/dev-python/celementtree/metadata.xml b/dev-python/celementtree/metadata.xml new file mode 100644 index 000000000000..7f4f33c6dbc9 --- /dev/null +++ b/dev-python/celementtree/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> +</pkgmetadata> |