commit 65243cc8f8a179fd87de4ab70a2304454db08053
parent 0fee8f5cb7ecdd6dc04cd6e3ac99e975fe156111
Author: Hannu Nyman <hannu.nyman@iki.fi>
Date: Mon, 7 Dec 2015 13:47:27 +0200
Merge pull request #2085 from jefferyto/python-enum34-update
python-enum34: update to 1.1.1, omit docs and tests from package
Diffstat:
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/lang/python-enum34/Makefile b/lang/python-enum34/Makefile
@@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=enum34
-PKG_VERSION:=1.0.4
+PKG_VERSION:=1.1.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/e/enum34
-PKG_MD5SUM:=ac80f432ac9373e7d162834b264034b6
+PKG_MD5SUM:=5edaf22a14ec2769fc973a0443bf02d5
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=enum/LICENSE
@@ -36,6 +36,11 @@ enum34 is the new Python stdlib enum module available in Python 3.4
backported for previous versions of Python from 2.4 to 3.3.
endef
+define PyPackage/python-enum34/filespec
++|$(PYTHON_PKG_DIR)
+-|$(PYTHON_PKG_DIR)/enum/test_enum.py
+endef
+
define Build/Compile
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
endef
diff --git a/lang/python-enum34/patches/001-omit-docs.patch b/lang/python-enum34/patches/001-omit-docs.patch
@@ -0,0 +1,19 @@
+diff -Nur a/setup.py b/setup.py
+--- a/setup.py 2015-11-29 17:31:14.000000000 +0800
++++ b/setup.py 2015-12-07 18:39:00.863378684 +0800
+@@ -13,15 +13,6 @@
+ version='1.1.1',
+ url='https://pypi.python.org/pypi/enum34',
+ packages=['enum'],
+- package_data={
+- 'enum' : [
+- 'LICENSE',
+- 'README',
+- 'doc/enum.rst',
+- 'doc/enum.pdf',
+- 'test_enum.py',
+- ]
+- },
+ license='BSD License',
+ description='Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4',
+ long_description=long_desc,