diff options
| author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-05-17 16:45:48 +0300 |
|---|---|---|
| committer | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-05-17 16:51:14 +0300 |
| commit | 68312f49c0b4456e665ed438a86a44738caa765a (patch) | |
| tree | 6280a9fb0de5782ca8ca4ca39b014062e1b8d387 /lang/python/python-cffi | |
| parent | 1bf7af4ca53db6f58655857f6eb49a9893c854d9 (diff) | |
python packages: move all things python under lang/python
I admit this may be be a bit aggressive, but the lang
folder is getting cluttered/filled up with Python, PHP, Perl,
Ruby, etc. packages.
Makes sense to try to group them into per-lang folders.
I took the Pythons.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/python-cffi')
| -rw-r--r-- | lang/python/python-cffi/Makefile | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/lang/python/python-cffi/Makefile b/lang/python/python-cffi/Makefile new file mode 100644 index 000000000..aa16f500c --- /dev/null +++ b/lang/python/python-cffi/Makefile @@ -0,0 +1,96 @@ +# +# Copyright (C) 2015-2016 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=cffi +PKG_VERSION:=1.8.3 +PKG_RELEASE:=2 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://pypi.python.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a +PKG_HASH:=c321bd46faa7847261b89c0469569530cad5a41976bb6dba8202c0159f476568 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION) +PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) + +HOST_BUILD_DEPENDS:=libffi/host python-pycparser/host +ifdef CONFIG_PACKAGE_python-cffi +HOST_BUILD_DEPENDS+=python/host +endif +ifdef CONFIG_PACKAGE_python3-cffi +HOST_BUILD_DEPENDS+=python3/host +endif + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> + +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/package.mk +$(call include_mk, python-package.mk) +$(call include_mk, python3-package.mk) + +define Package/python-cffi/Default + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + URL:=http://cffi.readthedocs.org/ + DEPENDS:=+libffi +endef + +define Package/python-cffi +$(call Package/python-cffi/Default) + TITLE:=python-cffi + DEPENDS+=+python-light +python-pycparser + VARIANT:=python +endef + +define Package/python3-cffi +$(call Package/python-cffi/Default) + TITLE:=python3-cffi + DEPENDS+=+python3-light +python3-pycparser + VARIANT:=python3 +endef + +define Package/python-cffi/description +Foreign Function Interface for Python calling C code. +endef + +define Package/python3-cffi/description +$(call Package/python-cffi/description) +. +(Variant for Python3) +endef + +ifdef CONFIG_PACKAGE_python-cffi +define Host/Compile/python-cffi + $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)") +endef +endif + +ifdef CONFIG_PACKAGE_python3-cffi +define Host/Compile/python3-cffi + $(call Build/Compile/HostPy3Mod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)") +endef +endif + +define Host/Compile +$(call Host/Compile/python-cffi) +$(call Host/Compile/python3-cffi) +endef + +define Host/Install +endef + +$(eval $(call HostBuild)) + +$(eval $(call PyPackage,python-cffi)) +$(eval $(call BuildPackage,python-cffi)) + +$(eval $(call Py3Package,python3-cffi)) +$(eval $(call BuildPackage,python3-cffi)) |
