summaryrefslogtreecommitdiff
path: root/lang/python/python-chardet
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-05-25 14:21:50 -0700
committerGitHub <noreply@github.com>2019-05-25 14:21:50 -0700
commit36d409f9f9cfd22427489ccebaa1571c230ba374 (patch)
treea3251f26aaf8b6e1220a92e4e04ccdd553d333bb /lang/python/python-chardet
parent9d34465c4919342ddb2167b267247609436647ed (diff)
parent6bd527df2ed5703eb4dcd3041c7113e9ebdcd2c4 (diff)
Merge pull request #9067 from jefferyto/python3-chardet-rename-script
python-chardet: Rename Python 3 script
Diffstat (limited to 'lang/python/python-chardet')
-rw-r--r--lang/python/python-chardet/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/python/python-chardet/Makefile b/lang/python/python-chardet/Makefile
index bce37b3c2..35a181252 100644
--- a/lang/python/python-chardet/Makefile
+++ b/lang/python/python-chardet/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=python-chardet
PKG_VERSION:=3.0.4
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_LICENSE:=LGPL-2.1
PKG_SOURCE:=chardet-$(PKG_VERSION).tar.gz
@@ -55,6 +55,14 @@ $(call Package/python-chardet/description)
(Variant for Python3)
endef
+define Py3Package/python3-chardet/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
+ for bin in $(1)/usr/bin/*; do \
+ mv $$$$bin $$$${bin}3 ; \
+ done
+endef
+
$(eval $(call PyPackage,python-chardet))
$(eval $(call BuildPackage,python-chardet))
$(eval $(call BuildPackage,python-chardet-src))