summaryrefslogtreecommitdiff
path: root/lang/python/python-gmpy2/Makefile
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-gmpy2/Makefile
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-gmpy2/Makefile')
-rw-r--r--lang/python/python-gmpy2/Makefile27
1 files changed, 12 insertions, 15 deletions
diff --git a/lang/python/python-gmpy2/Makefile b/lang/python/python-gmpy2/Makefile
index 991741365..df6a30fca 100644
--- a/lang/python/python-gmpy2/Makefile
+++ b/lang/python/python-gmpy2/Makefile
@@ -9,10 +9,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=python-gmpy2
PKG_VERSION:=2.0.8
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=gmpy2-$(PKG_VERSION).zip
-PKG_SOURCE_URL:=https://pypi.python.org/packages/90/f4/9a2e384b325b69bc5827b9a6510a8fb4a51698c915c06a3f25a86458892a
+PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/g/gmpy2
PKG_HASH:=dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-gmpy2-$(PKG_VERSION)
@@ -27,24 +27,27 @@ include ../python3-package.mk
PKG_UNPACK:=unzip -q -d $(PKG_BUILD_DIR) $(DL_DIR)/$(PKG_SOURCE); mv -f $(PKG_BUILD_DIR)/gmpy2-$(PKG_VERSION)/* $(PKG_BUILD_DIR)
+PYTHON_PKG_SETUP_ARGS:=--nompfr
+PYTHON3_PKG_SETUP_ARGS:=--nompfr
+
define Package/python-gmpy2/Default
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
- URL:=http://code.google.com/p/gmpy/
+ TITLE:=GMP/MPIR, MPFR, and MPC interface
+ URL:=https://github.com/aleaxit/gmpy
+ DEPENDS:=+libgmp
endef
define Package/python-gmpy2
$(call Package/python-gmpy2/Default)
- TITLE:=python-gmpy2
- DEPENDS:=+libgmp +PACKAGE_python-gmpy2:python-light
+ DEPENDS+=+PACKAGE_python-gmpy2:python-light
VARIANT:=python
endef
define Package/python3-gmpy2
$(call Package/python-gmpy2/Default)
- TITLE:=python3-gmpy2
- DEPENDS:=+libgmp +PACKAGE_python3-gmpy2:python3-light
+ DEPENDS+=+PACKAGE_python3-gmpy2:python3-light
VARIANT:=python3
endef
@@ -64,16 +67,10 @@ $(call Package/python-gmpy2/description)
(Variant for Python3)
endef
-define PyBuild/Compile
- $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" --nompfr)
-endef
-
-define Py3Build/Compile
- $(call Build/Compile/Py3Mod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" --nompfr)
-endef
-
$(eval $(call PyPackage,python-gmpy2))
$(eval $(call BuildPackage,python-gmpy2))
+$(eval $(call BuildPackage,python-gmpy2-src))
$(eval $(call Py3Package,python3-gmpy2))
$(eval $(call BuildPackage,python3-gmpy2))
+$(eval $(call BuildPackage,python3-gmpy2-src))