2015-11-16 11:55:06 +00:00
|
|
|
#
|
2018-01-14 17:59:14 +00:00
|
|
|
# Copyright (C) 2015-2018 OpenWrt.org
|
2015-11-16 11:55:06 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2017-07-04 18:02:39 +00:00
|
|
|
PKG_NAME:=python-cffi
|
2019-04-22 13:18:58 +00:00
|
|
|
PKG_VERSION:=1.12.3
|
2018-01-14 17:59:14 +00:00
|
|
|
PKG_RELEASE:=1
|
2015-11-16 11:55:06 +00:00
|
|
|
|
2017-07-04 18:02:39 +00:00
|
|
|
PKG_SOURCE:=cffi-$(PKG_VERSION).tar.gz
|
2019-02-19 08:51:21 +00:00
|
|
|
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/cffi
|
2019-04-22 13:18:58 +00:00
|
|
|
PKG_HASH:=041c81822e9f84b1d9c401182e174996f0bae9991f33725d059b771744290774
|
2015-11-16 11:55:06 +00:00
|
|
|
|
2017-07-04 18:02:39 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-cffi-$(PKG_VERSION)
|
2015-11-16 11:55:06 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2017-07-27 06:36:44 +00:00
|
|
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
|
2015-11-16 11:55:06 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2018-01-10 07:56:52 +00:00
|
|
|
include ../python-package.mk
|
|
|
|
include ../python3-package.mk
|
2017-01-31 16:08:48 +00:00
|
|
|
|
2017-07-04 18:02:39 +00:00
|
|
|
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
|
|
|
|
|
2017-01-31 16:08:48 +00:00
|
|
|
define Package/python-cffi/Default
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
SUBMENU:=Python
|
2019-02-19 08:51:21 +00:00
|
|
|
TITLE:=C Foreign Function Interface
|
2019-03-22 13:50:36 +00:00
|
|
|
URL:=https://cffi.readthedocs.org/
|
2017-01-31 16:08:48 +00:00
|
|
|
DEPENDS:=+libffi
|
|
|
|
endef
|
2015-11-16 11:55:06 +00:00
|
|
|
|
|
|
|
define Package/python-cffi
|
2017-01-31 16:08:48 +00:00
|
|
|
$(call Package/python-cffi/Default)
|
2019-02-19 08:51:21 +00:00
|
|
|
DEPENDS+= \
|
|
|
|
+PACKAGE_python-cffi:python-light \
|
|
|
|
+PACKAGE_python-cffi:python-pycparser
|
2017-01-31 16:08:48 +00:00
|
|
|
VARIANT:=python
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python3-cffi
|
|
|
|
$(call Package/python-cffi/Default)
|
2019-02-19 08:51:21 +00:00
|
|
|
DEPENDS+= \
|
|
|
|
+PACKAGE_python3-cffi:python3-light \
|
|
|
|
+PACKAGE_python3-cffi:python3-pycparser
|
2017-01-31 16:08:48 +00:00
|
|
|
VARIANT:=python3
|
2015-11-16 11:55:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python-cffi/description
|
|
|
|
Foreign Function Interface for Python calling C code.
|
|
|
|
endef
|
|
|
|
|
2017-01-31 16:08:48 +00:00
|
|
|
define Package/python3-cffi/description
|
|
|
|
$(call Package/python-cffi/description)
|
|
|
|
.
|
|
|
|
(Variant for Python3)
|
2015-11-16 11:55:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call PyPackage,python-cffi))
|
|
|
|
$(eval $(call BuildPackage,python-cffi))
|
2018-01-14 17:59:14 +00:00
|
|
|
$(eval $(call BuildPackage,python-cffi-src))
|
2017-01-31 16:08:48 +00:00
|
|
|
|
|
|
|
$(eval $(call Py3Package,python3-cffi))
|
|
|
|
$(eval $(call BuildPackage,python3-cffi))
|
2018-01-14 17:59:14 +00:00
|
|
|
$(eval $(call BuildPackage,python3-cffi-src))
|