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.5 KiB

  1. #
  2. # Copyright (C) 2015-2016 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.8
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/90/f4/9a2e384b325b69bc5827b9a6510a8fb4a51698c915c06a3f25a86458892a
  13. PKG_HASH:=dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f
  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))