You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.0 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=python-et_xmlfile
  7. PKG_VERSION:=1.0.1
  8. PKG_RELEASE:=1
  9. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Eneas U de Queiroz <cote2004-github@yahoo.com>
  10. PKG_LICENSE:=MIT
  11. PKG_SOURCE:=et_xmlfile-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/e/et_xmlfile
  13. PKG_HASH:=614d9722d572f6246302c4491846d2c393c199cfa4edc9af593437691683335b
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-et_xmlfile-$(PKG_VERSION)
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../python-package.mk
  17. include ../python3-package.mk
  18. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  19. define Package/python-et_xmlfile/Default
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=Low memory library for creating large XML files.
  24. URL:=https://bitbucket.org/openpyxl/et_xmlfile
  25. endef
  26. define Package/python-et_xmlfile
  27. $(call Package/python-et_xmlfile/Default)
  28. DEPENDS:= \
  29. +PACKAGE_python-et_xmlfile:python-light \
  30. +PACKAGE_python-et_xmlfile:python-lxml
  31. VARIANT:=python
  32. endef
  33. define Package/python3-et_xmlfile
  34. $(call Package/python-et_xmlfile/Default)
  35. DEPENDS:= \
  36. +python3-light \
  37. +python3-lxml
  38. VARIANT:=python3
  39. endef
  40. define Package/python-et_xmlfile/description
  41. An implementation of lxml.xmlfile for the standard library.
  42. It is based upon the xmlfile module from lxml with the aim of
  43. allowing code to be developed that will work with both libraries.
  44. endef
  45. define Package/python3-et_xmlfile/description
  46. $(call Package/python-et_xmlfile/description)
  47. .
  48. (Variant for Python3)
  49. endef
  50. $(eval $(call PyPackage,python-et_xmlfile))
  51. $(eval $(call BuildPackage,python-et_xmlfile))
  52. $(eval $(call BuildPackage,python-et_xmlfile-src))
  53. $(eval $(call Py3Package,python3-et_xmlfile))
  54. $(eval $(call BuildPackage,python3-et_xmlfile))
  55. $(eval $(call BuildPackage,python3-et_xmlfile-src))