b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2015-2016, 2018-2020, 2023 Jeffery To |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=python-gmpy2 |
| 11 | PKG_VERSION:=2.1.5 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=gmpy2 |
| 15 | PKG_HASH:=bc297f1fd8c377ae67a4f493fc0f926e5d1b157e5c342e30a4d84dc7b9f95d96 |
| 16 | |
| 17 | PKG_LICENSE:=LGPL-3.0-or-later |
| 18 | PKG_LICENSE_FILES:=COPYING.LESSER |
| 19 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 20 | |
| 21 | include ../pypi.mk |
| 22 | include $(INCLUDE_DIR)/package.mk |
| 23 | include ../python3-package.mk |
| 24 | |
| 25 | define Package/python3-gmpy2 |
| 26 | SECTION:=lang |
| 27 | CATEGORY:=Languages |
| 28 | SUBMENU:=Python |
| 29 | TITLE:=GMP/MPIR, MPFR, and MPC interface |
| 30 | URL:=https://github.com/aleaxit/gmpy |
| 31 | DEPENDS:=+libgmp +libmpc +libmpfr +python3-light |
| 32 | endef |
| 33 | |
| 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 | endef |
| 43 | |
| 44 | $(eval $(call Py3Package,python3-gmpy2)) |
| 45 | $(eval $(call BuildPackage,python3-gmpy2)) |
| 46 | $(eval $(call BuildPackage,python3-gmpy2-src)) |