From 1044ca095f0e0dd0ceafadc43e4c054eb8179a3a Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Tue, 14 May 2019 17:02:27 -0300 Subject: [PATCH] python-et_xmlfile: restore & update removed package This is a dependency of the openpyxl package. The package Makefile was reworked, and a python3 variant was added. Maintainer was changed to Alexandru Ardelean & Eneas U de Queiroz. Signed-off-by: Eneas U de Queiroz --- lang/python/python-et_xmlfile/Makefile | 69 ++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 lang/python/python-et_xmlfile/Makefile diff --git a/lang/python/python-et_xmlfile/Makefile b/lang/python/python-et_xmlfile/Makefile new file mode 100644 index 0000000000..d9af063c24 --- /dev/null +++ b/lang/python/python-et_xmlfile/Makefile @@ -0,0 +1,69 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-et_xmlfile +PKG_VERSION:=1.0.1 +PKG_RELEASE:=1 + +PKG_MAINTAINER:=Alexandru Ardelean , Eneas U de Queiroz +PKG_LICENSE:=MIT + +PKG_SOURCE:=et_xmlfile-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/e/et_xmlfile +PKG_HASH:=614d9722d572f6246302c4491846d2c393c199cfa4edc9af593437691683335b + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-et_xmlfile-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk +include ../python-package.mk +include ../python3-package.mk + +PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) + +define Package/python-et_xmlfile/Default + SUBMENU:=Python + SECTION:=lang + CATEGORY:=Languages + TITLE:=Low memory library for creating large XML files. + URL:=https://bitbucket.org/openpyxl/et_xmlfile +endef + +define Package/python-et_xmlfile +$(call Package/python-et_xmlfile/Default) + DEPENDS:= \ + +PACKAGE_python-et_xmlfile:python-light \ + +PACKAGE_python-et_xmlfile:python-lxml + VARIANT:=python +endef + +define Package/python3-et_xmlfile +$(call Package/python-et_xmlfile/Default) + DEPENDS:= \ + +python3-light \ + +python3-lxml + VARIANT:=python3 +endef + +define Package/python-et_xmlfile/description + An implementation of lxml.xmlfile for the standard library. + It is based upon the xmlfile module from lxml with the aim of + allowing code to be developed that will work with both libraries. +endef + +define Package/python3-et_xmlfile/description +$(call Package/python-et_xmlfile/description) +. +(Variant for Python3) +endef + +$(eval $(call PyPackage,python-et_xmlfile)) +$(eval $(call BuildPackage,python-et_xmlfile)) +$(eval $(call BuildPackage,python-et_xmlfile-src)) + +$(eval $(call Py3Package,python3-et_xmlfile)) +$(eval $(call BuildPackage,python3-et_xmlfile)) +$(eval $(call BuildPackage,python3-et_xmlfile-src)) -- 2.30.2