summaryrefslogtreecommitdiff
path: root/dev-python/mwlib-ext
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/mwlib-ext
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/mwlib-ext')
-rw-r--r--dev-python/mwlib-ext/Manifest4
-rw-r--r--dev-python/mwlib-ext/files/0.13.2-unbundle-reportlab.patch35
-rw-r--r--dev-python/mwlib-ext/metadata.xml11
-rw-r--r--dev-python/mwlib-ext/mwlib-ext-0.13.2.ebuild28
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-python/mwlib-ext/Manifest b/dev-python/mwlib-ext/Manifest
new file mode 100644
index 000000000000..2a8da9acc81d
--- /dev/null
+++ b/dev-python/mwlib-ext/Manifest
@@ -0,0 +1,4 @@
+AUX 0.13.2-unbundle-reportlab.patch 1211 BLAKE2B a1237cf320e5a37aadb1f9a49c85a9bc9c2b080134fc066612f1b7eb5d01b77a233b5fb98ef2c3e17106e1787cb778901a3c0953bd093be2ba950926f5b0826e SHA512 9b722a08157d7e3545ce40c061ed84f1bda323bd65b2938062dc816d41b1005de851602249f787a5e6868674bf94ec37246572a7fe7476339fa5eae43e11dd72
+DIST mwlib.ext-0.13.2.zip 2111364 BLAKE2B b1b5ddf4cdc54fb2e72f809e86dfabd2b81498432161128e7fc99e811ed3736889b59242e935dddae090deb6489bcc043e699e6b4db0f360732ed983765f27f0 SHA512 a7c6a53d92335d59f952c9fc549ef079afa92dbf8b3c97930463c817c867c27d6ea97b3a52aeadc12c6d107f149630799007409f1c1ca23186ba64a2e71ca6d8
+EBUILD mwlib-ext-0.13.2.ebuild 663 BLAKE2B a0c37c1912757f723544f4c365680387fe72e1c2574075f5162f0811f4a637745cbc9f91c040ea5a501eea0776eaf54a839ed4017e6fa1e52562ca1d5f98ee0d SHA512 8b786610239a9d19729e5e1b2bef48dabad70e8ee41b110e3cad7d0998ad26b856981be10c4430ff29095587d4e46e2dd421f3a341a2fa1ee980b3160778a904
+MISC metadata.xml 312 BLAKE2B 3b9e1681fadec769e08d8f84b79152ad1bf713e81b401393fbfda73dc4acb2350d91d20b81c8556f9948990b82d2c0afc530ad22bc34e0d99abcd9ae80e809ff SHA512 35e6f66eb933bb01e8475c55ff097ec406a08fd0358da5912fe702bebbbc46b04de23e7da88144ab699f91cb7796d7eb3fdb5e620dfb7f85b38caaf3c1c88a52
diff --git a/dev-python/mwlib-ext/files/0.13.2-unbundle-reportlab.patch b/dev-python/mwlib-ext/files/0.13.2-unbundle-reportlab.patch
new file mode 100644
index 000000000000..12156a796a5a
--- /dev/null
+++ b/dev-python/mwlib-ext/files/0.13.2-unbundle-reportlab.patch
@@ -0,0 +1,35 @@
+diff -ur mwlib.ext-0.13.2.orig/setup.py mwlib.ext-0.13.2/setup.py
+--- setup.py 2013-07-02 09:53:32.000000000 +0800
++++ setup.py 2013-07-27 13:24:48.169128958 +0800
+@@ -1,30 +1,16 @@
+ #! /usr/bin/env python
+
+ from setuptools import setup, Extension, find_packages
+-from distutils import sysconfig
+-if sysconfig.get_config_var("LIBM") == "-lm":
+- libraries = ["m"]
+-else:
+- libraries = []
+-
+ install_requires = []
+ execfile('mwlib/_extversion.py') # adds 'version' to local namespace
+
+-ext_modules = []
+-ext_modules.append(Extension("mwlib.ext._rl_accel",
+- ['upstream-src/src/rl_addons/rl_accel/_rl_accel.c'],
+- libraries=libraries))
+-
+-packages = ["mwlib.ext." + x for x in find_packages("upstream-src/src")] + find_packages(".")
++packages = find_packages(".")
+
+ setup(
+ name="mwlib.ext",
+ version=str(version),
+ install_requires=install_requires,
+ packages=packages,
+- package_dir={"mwlib.ext.reportlab": "upstream-src/src/reportlab",
+- "mwlib.ext.rl_addons": "upstream-src/src/rl_addons"},
+- ext_modules=ext_modules,
+ namespace_packages=['mwlib'],
+ include_package_data=True,
+ zip_safe=False,
diff --git a/dev-python/mwlib-ext/metadata.xml b/dev-python/mwlib-ext/metadata.xml
new file mode 100644
index 000000000000..f5604784d292
--- /dev/null
+++ b/dev-python/mwlib-ext/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="pypi">mwlib.ext</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/mwlib-ext/mwlib-ext-0.13.2.ebuild b/dev-python/mwlib-ext/mwlib-ext-0.13.2.ebuild
new file mode 100644
index 000000000000..fe4411d9904e
--- /dev/null
+++ b/dev-python/mwlib-ext/mwlib-ext-0.13.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_PN="${PN/-/.}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Extension module to mwlib to pull in reportlab"
+HOMEPAGE="https://pediapress.com/code/ https://pypi.org/project/mwlib.ext/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-python/reportlab-2.6[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}/${PV}-unbundle-reportlab.patch" )