From: Daniel Golle Date: Sun, 2 Jul 2017 00:21:40 +0000 (+0200) Subject: python: click: add package X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=fb8dc3ffd4df5a06fe0cb5d0f52871b0df2f37ee;p=feed%2Fpackages.git python: click: add package Signed-off-by: Daniel Golle --- diff --git a/lang/python/click/Makefile b/lang/python/click/Makefile new file mode 100644 index 0000000000..e52e99938e --- /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 + +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))