summaryrefslogtreecommitdiff
path: root/lang/python/python-crypto
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2019-02-19 22:54:43 +0800
committerJeffery To <jeffery.to@gmail.com>2019-02-19 22:54:43 +0800
commit8100d33b04324886a6f1a704ee4b824b27082015 (patch)
tree61a908a7b333b90605b9b8c7feaa84a560d1dc0e /lang/python/python-crypto
parentd1d0fac7d8790395830b0a0faf9659db74408c96 (diff)
python-(automat|crypto|gmpy2|parsley): Use default compile
This updates these packages to use the default PyBuild/Compile, instead of defining their own Build/Compile. This also updates the Python 2 and 3 versions to use the same TITLE. This also updates the source url and adds src packages for python-gmpy2. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python-crypto')
-rw-r--r--lang/python/python-crypto/Makefile32
1 files changed, 13 insertions, 19 deletions
diff --git a/lang/python/python-crypto/Makefile b/lang/python/python-crypto/Makefile
index ae1694a6a..f0f8d6598 100644
--- a/lang/python/python-crypto/Makefile
+++ b/lang/python/python-crypto/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=python-crypto
PKG_VERSION:=2.6.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=pycrypto-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycrypto
@@ -28,24 +28,32 @@ include ../python3-package.mk
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
+PYTHON_PKG_SETUP_ARGS:=
+PYTHON_PKG_SETUP_VARS:= \
+ CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
+
+PYTHON3_PKG_SETUP_ARGS:=
+PYTHON3_PKG_SETUP_VARS:= \
+ CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
+
define Package/python-crypto/Default
SECTION:=lang-python
CATEGORY:=Languages
SUBMENU:=Python
+ TITLE:=Python Cryptography Toolkit
URL:=https://www.dlitz.net/software/pycrypto/
+ DEPENDS:=+libgmp
endef
define Package/python-crypto
$(call Package/python-crypto/Default)
- TITLE:=python-crypto
- DEPENDS:=+libgmp +PACKAGE_python-crypto:python
+ DEPENDS+=+PACKAGE_python-crypto:python
VARIANT:=python
endef
define Package/python3-crypto
$(call Package/python-crypto/Default)
- TITLE:=python3-crypto
- DEPENDS:=+libgmp +PACKAGE_python3-crypto:python3
+ DEPENDS+=+PACKAGE_python3-crypto:python3
VARIANT:=python3
endef
@@ -60,20 +68,6 @@ $(call Package/python-crypto/description)
(Variant for Python3)
endef
-define PyBuild/Compile
- $(call Build/Compile/PyMod,,\
- install --prefix=/usr --root=$(PKG_INSTALL_DIR),\
- CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)" \
- )
-endef
-
-define Py3Build/Compile
- $(call Build/Compile/Py3Mod,,\
- install --prefix=/usr --root=$(PKG_INSTALL_DIR),\
- CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)" \
- )
-endef
-
$(eval $(call PyPackage,python-crypto))
$(eval $(call BuildPackage,python-crypto))
$(eval $(call BuildPackage,python-crypto-src))