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 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:=gmpy2
  9. PKG_VERSION:=2.0.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/source/g/gmpy2
  13. PKG_MD5SUM:=b5aada3ee5afb316ea94604f45192054
  14. PKG_LICENSE:=LGPL-3.0+
  15. PKG_LICENSE_FILES:=COPYING.LESSER
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  17. include $(INCLUDE_DIR)/package.mk
  18. $(call include_mk, python-package.mk)
  19. define Package/python-gmpy2
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. SUBMENU:=Python
  23. TITLE:=python-gmpy2
  24. URL:=http://code.google.com/p/gmpy/
  25. DEPENDS:=+libgmp +python-light
  26. endef
  27. define Package/python-gmpy2/description
  28. gmpy2 is a C-coded Python extension module that supports multiple-precision
  29. arithmetic. gmpy2 is the successor to the original gmpy module. The gmpy module
  30. only supported the GMP multiple-precision library. gmpy2 adds support for the
  31. MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly
  32. rounded complex floating-point arithmetic) libraries. gmpy2 also updates the
  33. API and naming conventions to be more consistent and support the additional
  34. functionality.
  35. endef
  36. define Build/Compile
  37. $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" --nompfr)
  38. endef
  39. $(eval $(call PyPackage,python-gmpy2))
  40. $(eval $(call BuildPackage,python-gmpy2))