Skip to content
Snippets Groups Projects
Verified Commit 2c603f59 authored by Štěpán Henek's avatar Štěpán Henek :bear:
Browse files

python-prctl: python3

parent f83f4190
Branches
Tags
No related merge requests found
......@@ -15,38 +15,61 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://pypi.python.org/packages/2c/a6/a866caf122908583f5f5e27217ca7f956c616e48e35cdb2a4a60ab4c7ad8/
PKG_MD5SUM:=5f36d6a1e832ca29f9fc458b5ace1627
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=python libcap
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=python3 python libcap
include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/packages/lang/python/python-package.mk
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
define Package/$(PKG_NAME)
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
define Package/python-prctl/Default
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=$(PKG_NAME)
URL:=https://pythonhosted.org/python-prctl/
DEPENDS:=+python-light +libcap
MAINTAINER:=CZ.NIC <packaging@turris.cz>
DEPENDS:=+libcap
endef
define Package/python-prctl
$(call Package/python-prctl/Default)
TITLE:=python-prctl
DEPENDS+=+PACKAGE_python-prctl:python-light
VARIANT:=python
endef
define Package/python3-prctl
$(call Package/python-prctl/Default)
TITLE:=python3-prctl
DEPENDS+=+PACKAGE_python3-prctl:python3-light
VARIANT:=python3
endef
define Package/$(PKG_NAME)/description
define Package/python-prctl/description
Python(ic) interface to the linux prctl syscall
endef
define Build/Compile
$(call Build/Compile/PyMod,., \
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
)
define Package/python3-prctl/description
$(call Package/python-prctl/description)
.
(Variant for Python3)
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/
$(CP) \
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
$(1)$(PYTHON_PKG_DIR)/
define PyBuild/Compile
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
endef
$(eval $(call PyPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)))
define Py3Build/Compile
$(call Build/Compile/Py3Mod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
endef
$(eval $(call PyPackage,python-prctl))
$(eval $(call BuildPackage,python-prctl))
$(eval $(call BuildPackage,python-prctl-src))
$(eval $(call Py3Package,python3-prctl))
$(eval $(call BuildPackage,python3-prctl))
$(eval $(call BuildPackage,python3-prctl-src))
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment