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.

62 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=docutils
  3. PKG_VERSION:=0.14
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/docutils
  7. PKG_HASH:=51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-docutils-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
  10. PKG_LICENSE:=MIT
  11. include $(INCLUDE_DIR)/package.mk
  12. include ../python-package.mk
  13. include ../python3-package.mk
  14. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  15. define Package/python-docutils/Default
  16. SUBMENU:=Python
  17. SECTION:=lang
  18. CATEGORY:=Languages
  19. TITLE:=docutils
  20. URL:=http://docutils.sourceforge.net
  21. endef
  22. define Package/python-docutils
  23. $(call Package/python-docutils/Default)
  24. DEPENDS:=+python
  25. VARIANT:=python
  26. endef
  27. define Package/python3-docutils
  28. $(call Package/python-docutils/Default)
  29. DEPENDS:=+python3
  30. VARIANT:=python3
  31. endef
  32. define Package/python-docutils/description
  33. Docutils is a modular system for processing documentation into useful formats,
  34. such as HTML, XML, and LaTeX. For input Docutils supports reStructuredText,
  35. an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
  36. endef
  37. define Package/python3-docutils/description
  38. $(call Package/python-docutils/description)
  39. .
  40. (Variant for Python3)
  41. endef
  42. PYTHON_PKG_SETUP_ARGS:=
  43. PYTHON3_PKG_SETUP_ARGS:=
  44. $(eval $(call PyPackage,python-docutils))
  45. $(eval $(call BuildPackage,python-docutils))
  46. $(eval $(call BuildPackage,python-docutils-src))
  47. $(eval $(call Py3Package,python3-docutils))
  48. $(eval $(call BuildPackage,python3-docutils))
  49. $(eval $(call BuildPackage,python3-docutils-src))