From 8100d33b04324886a6f1a704ee4b824b27082015 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Tue, 19 Feb 2019 22:54:43 +0800 Subject: 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 --- lang/python/python-crypto/Makefile | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) (limited to 'lang/python/python-crypto') 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)) -- cgit