summaryrefslogtreecommitdiff
path: root/dev-python/celementtree
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/celementtree
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/celementtree')
-rw-r--r--dev-python/celementtree/Manifest7
-rw-r--r--dev-python/celementtree/celementtree-1.0.5-r2.ebuild44
-rw-r--r--dev-python/celementtree/files/celementtree-1.0.5-setuptools.patch12
-rw-r--r--dev-python/celementtree/files/celementtree-1.0.5-use_system_expat.patch44
-rw-r--r--dev-python/celementtree/metadata.xml8
5 files changed, 115 insertions, 0 deletions
diff --git a/dev-python/celementtree/Manifest b/dev-python/celementtree/Manifest
new file mode 100644
index 000000000000..6ffef0013084
--- /dev/null
+++ b/dev-python/celementtree/Manifest
@@ -0,0 +1,7 @@
+AUX celementtree-1.0.5-setuptools.patch 322 SHA256 24f1f9d7a28247bc0237f2d598dfdcbad579bceb4fb1d0fd09f91c1932175638 SHA512 d72e17afb23f9070797a0d8a88cb48df8c59de8c4f8db04cfcff7499e68d97f37e79569c1a763aa1670af8a99c9efe3013396a458a33ac8a338079fa25d4d792 WHIRLPOOL 738bfece12f2ac204929f473aeb7debb7c25f71a99502cbbdc23e749988fbbc620e644c5bd55a54162836bdd35599863f1801a4a51fd80997f8d697734016ddc
+AUX celementtree-1.0.5-use_system_expat.patch 1069 SHA256 aec7cc96f85d621f68df442533b5964d5517f5922b7d1c1f9bdbdf7629fb11ea SHA512 2b343a2aa5f30c1aa63acdc47cc89417f3622d837e846e2756098123f8491d140660c123d4dfabb4947e82b9561fbc424e31d3685e223db337a1b451bf2008c1 WHIRLPOOL 7be4729ec5aefed99768ec6a47a57e7f17560f802f8c57964fb6adef4bd0b59c94805196599352c385e63edc8839f12cba996f9ca8af2c6757f69018c2b29e90
+DIST cElementTree-1.0.5-20051216.tar.gz 93766 SHA256 b2e528c99837124b32598bde7a19da579203c600d71f22f4c84da0933ba09751 SHA512 2cb99e4980580f186eb9b8740bc5a3e6e85e714a5d1f613850a8f12f7dbc125c8aa7770f7fe70480fb96999212c11181ab681822c74429882c1dfe91c20e2af9 WHIRLPOOL 2788c2eb7ab7bb3a654b535d273cb198eaf15d2265b00e4a9da3b1aa097041db34ce3ebd7b393e75a806957dca3b5c712e5256bc69f0eceb0c11c99bdb9bbce2
+EBUILD celementtree-1.0.5-r2.ebuild 1126 SHA256 f5cd900a057808ba5cff7be421b2409d12b659babad386791c42afcade36fec4 SHA512 46ca7225edb11a9a7b0b1df2adb7d3cae776e1debbe6591140ef9d06ffb1347c5fda6baafd0c1e7e1fbc28b0a74ed15d000aadf7f5d9a22b9d3e5528cb6ab47b WHIRLPOOL 2e2dedff3b4ae3a14087c3f789012f56b0b56aadd7dd345775c95d384c0af8b22609d6173786629fa07e2a1d10ac2f7968b8cb83adfabf322b334642be1ab730
+MISC ChangeLog 2697 SHA256 25fe07dda0a55225bc0bfb08f0f833c33cb12779369731d8f6e7b296ed825f3f SHA512 f133ed39b5af0567bf887f513eaf07c55422b7d2de1c8f94518f167cb499a7ebb4b5fa98a5a0410879d9d45a275d08dcbb1600fd0cbf2a0586a214d16133e94b WHIRLPOOL d898ba4cab4ca2d163d5bfc015820b23c287b28c62d23423c7d3cfde5f3081149ce13aa10a0fc49a329dcd9e365dedb2ba352dbb4ffe38b171a59dfad5800340
+MISC ChangeLog-2015 5877 SHA256 112b438d2759f24a3d6bfd9eb787acc4812fb8061493df08156ed54a5ac11964 SHA512 38c5c6834cf28bf73ecc740b4e1bafecad4d68d97800794236af92c09ec6c085b24345949ee54c90f437a069b0a2032cf56923ba4d4f4a74874a919d9adc8878 WHIRLPOOL 25f3edba8c7527b175e736706140e92f1026e4c9ad9782679732e63ee91fc136006ac3bc961c19e9b6167054205a72392355756345601948266f48b86fcb1fa9
+MISC metadata.xml 240 SHA256 07a76e79a43ffd9aa15de0e4ae548ea85aa5bd165c4602630c3519e60f113ee6 SHA512 9c23321eaa853f851bf00195ea64ac2ba093e516f9b57855ee5aa58fbb1988130c9f0c17c2a9ce9fae4ee033e0a28a70c868e0f5acdfa1dd316ab533c5279d59 WHIRLPOOL e3e059953c7c36bd942545f4e2a0e94ba938a17fe2bd04df81b137c185e64a213152c11918922563509e4767e601b41105f80c5983a87ee4d6be7704bcf7cf54
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..ffe294af978c
--- /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.python.org/pypi/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>