python-decorator: add package
authorKarel Kočí <karel.koci@nic.cz>
Mon, 4 Feb 2019 12:51:46 +0000 (13:51 +0100)
committerKarel Kočí <karel.koci@nic.cz>
Mon, 11 Mar 2019 16:21:31 +0000 (17:21 +0100)
Signed-off-by: Karel Kočí <karel.koci@nic.cz>
lang/python/python-decorator/Makefile [new file with mode: 0644]

diff --git a/lang/python/python-decorator/Makefile b/lang/python/python-decorator/Makefile
new file mode 100644 (file)
index 0000000..2d4416e
--- /dev/null
@@ -0,0 +1,32 @@
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-decorator
+PKG_VERSION:=4.3.2
+PKG_RELEASE:=1
+PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
+
+PKG_SOURCE_URL:=https://codeload.github.com/micheles/decorator/tar.gz/$(PKG_VERSION)?
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_HASH:=c053ec881270608a5aef624a45a7700ec76ceca9d96689506411e1f319085380
+PKG_BUILD_DIR:=$(BUILD_DIR)/decorator-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-decorator
+  SECTION:=lang
+  CATEGORY:=Languages
+  SUBMENU:=Python
+  URL:=https://github.com/micheles/decorator
+  TITLE:=python3-decodator
+  DEPENDS:=+python3-light
+  VARIANT:=python3
+endef
+
+$(eval $(call Py3Package,python3-decorator))
+$(eval $(call BuildPackage,python3-decorator))
+$(eval $(call BuildPackage,python3-decorator-src))