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.

57 lines
1.6 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 ../python3-package.mk
  20. PYTHON3_PKG_SETUP_ARGS:=--nompfr
  21. define Package/python-gmpy2/Default
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. SUBMENU:=Python
  25. TITLE:=GMP/MPIR, MPFR, and MPC interface
  26. URL:=https://github.com/aleaxit/gmpy
  27. DEPENDS:=+libgmp
  28. endef
  29. define Package/python3-gmpy2
  30. $(call Package/python-gmpy2/Default)
  31. DEPENDS+=+PACKAGE_python3-gmpy2:python3-light
  32. VARIANT:=python3
  33. endef
  34. define Package/python3-gmpy2/description
  35. gmpy2 is a C-coded Python extension module that supports multiple-precision
  36. arithmetic. gmpy2 is the successor to the original gmpy module. The gmpy module
  37. only supported the GMP multiple-precision library. gmpy2 adds support for the
  38. MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly
  39. rounded complex floating-point arithmetic) libraries. gmpy2 also updates the
  40. API and naming conventions to be more consistent and support the additional
  41. functionality.
  42. .
  43. (Variant for Python3)
  44. endef
  45. $(eval $(call Py3Package,python3-gmpy2))
  46. $(eval $(call BuildPackage,python3-gmpy2))
  47. $(eval $(call BuildPackage,python3-gmpy2-src))