You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2015-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-gmpy2
  9. PKG_VERSION:=2.0.8
  10. PKG_RELEASE:=4
  11. PYPI_NAME:=gmpy2
  12. PYPI_SOURCE_EXT:=zip
  13. PKG_HASH:=dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f
  14. PKG_LICENSE:=LGPL-3.0-or-later
  15. PKG_LICENSE_FILES:=COPYING.LESSER
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. PYTHON_PKG_SETUP_ARGS:=--nompfr
  22. PYTHON3_PKG_SETUP_ARGS:=--nompfr
  23. define Package/python-gmpy2/Default
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. SUBMENU:=Python
  27. TITLE:=GMP/MPIR, MPFR, and MPC interface
  28. URL:=https://github.com/aleaxit/gmpy
  29. DEPENDS:=+libgmp
  30. endef
  31. define Package/python-gmpy2
  32. $(call Package/python-gmpy2/Default)
  33. DEPENDS+=+PACKAGE_python-gmpy2:python-light
  34. VARIANT:=python
  35. endef
  36. define Package/python3-gmpy2
  37. $(call Package/python-gmpy2/Default)
  38. DEPENDS+=+PACKAGE_python3-gmpy2:python3-light
  39. VARIANT:=python3
  40. endef
  41. define Package/python-gmpy2/description
  42. gmpy2 is a C-coded Python extension module that supports multiple-precision
  43. arithmetic. gmpy2 is the successor to the original gmpy module. The gmpy module
  44. only supported the GMP multiple-precision library. gmpy2 adds support for the
  45. MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly
  46. rounded complex floating-point arithmetic) libraries. gmpy2 also updates the
  47. API and naming conventions to be more consistent and support the additional
  48. functionality.
  49. endef
  50. define Package/python3-gmpy2/description
  51. $(call Package/python-gmpy2/description)
  52. .
  53. (Variant for Python3)
  54. endef
  55. $(eval $(call PyPackage,python-gmpy2))
  56. $(eval $(call BuildPackage,python-gmpy2))
  57. $(eval $(call BuildPackage,python-gmpy2-src))
  58. $(eval $(call Py3Package,python3-gmpy2))
  59. $(eval $(call BuildPackage,python3-gmpy2))
  60. $(eval $(call BuildPackage,python3-gmpy2-src))