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.

49 lines
1.4 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:=5
  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/python3-gmpy2
  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 +python3-light
  28. endef
  29. define Package/python3-gmpy2/description
  30. gmpy2 is a C-coded Python extension module that supports multiple-precision
  31. arithmetic. gmpy2 is the successor to the original gmpy module. The gmpy module
  32. only supported the GMP multiple-precision library. gmpy2 adds support for the
  33. MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly
  34. rounded complex floating-point arithmetic) libraries. gmpy2 also updates the
  35. API and naming conventions to be more consistent and support the additional
  36. functionality.
  37. endef
  38. $(eval $(call Py3Package,python3-gmpy2))
  39. $(eval $(call BuildPackage,python3-gmpy2))
  40. $(eval $(call BuildPackage,python3-gmpy2-src))