summaryrefslogtreecommitdiff
path: root/lang/python/click
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2017-07-02 02:21:40 +0200
committerDaniel Golle <daniel@makrotopia.org>2017-07-14 17:00:58 +0200
commitfb8dc3ffd4df5a06fe0cb5d0f52871b0df2f37ee (patch)
tree7cfffc45296cee8cbf8de027e1bec456e2b7fd28 /lang/python/click
parent4feb91a9154b2063e007cda5b7939b211932329f (diff)
python: click: add package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'lang/python/click')
-rw-r--r--lang/python/click/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/lang/python/click/Makefile b/lang/python/click/Makefile
new file mode 100644
index 000000000..e52e99938
--- /dev/null
+++ b/lang/python/click/Makefile
@@ -0,0 +1,40 @@
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=click
+PKG_VERSION:=6.7
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://pypi.python.org/packages/95/d9/c3336b6b5711c3ab9d1d3a80f1a3e2afeb9d8c02a7166462f6cc96570897/
+PKG_HASH:=f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b
+PKG_BUILD_DEPENDS:=python python3
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=LICENSE
+PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
+
+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)
+
+include $(INCLUDE_DIR)/package.mk
+$(call include_mk, python3-package.mk)
+
+define Package/python3-click
+ SECTION:=lang
+ CATEGORY:=Languages
+ SUBMENU:=Python
+ URL:=http://github.com/mitsuhiko/click
+ TITLE:=python3-click
+ DEPENDS:=+python3-light
+ VARIANT:=python3
+endef
+
+define Package/python3-click/description
+A simple wrapper around optparse for powerful command line utilities.
+endef
+
+$(eval $(call Py3Package,python3-click))
+$(eval $(call BuildPackage,python3-click))