click-log: Update to 0.4.0, rename source package
authorJeffery To <jeffery.to@gmail.com>
Mon, 29 May 2023 11:15:29 +0000 (19:15 +0800)
committerRosen Penev <rosenp@gmail.com>
Mon, 29 May 2023 15:16:56 +0000 (18:16 +0300)
This renames the source package from click-log to python-click-log to
match other Python packages.

This also updates the package to download from PyPI, and updates the
package title, URL, and dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/click-log/Makefile [deleted file]
lang/python/python-click-log/Makefile [new file with mode: 0644]

diff --git a/lang/python/click-log/Makefile b/lang/python/click-log/Makefile
deleted file mode 100644 (file)
index 5a39c81..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=click-log
-PKG_VERSION:=0.3.2
-PKG_RELEASE:=2
-PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
-
-PKG_SOURCE_URL:=https://codeload.github.com/click-contrib/click-log/tar.gz/$(PKG_VERSION)?
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_HASH:=16babb66a2ebf22c37c1cf38753a84e6027eb8991fcf9a8487971591b8ca9812
-PKG_LICENSE:=MIT
-
-include $(INCLUDE_DIR)/package.mk
-include ../python3-package.mk
-
-define Package/python3-click-log
-  SECTION:=lang
-  CATEGORY:=Languages
-  SUBMENU:=Python
-  URL:=http://github.com/mitsuhiko/click
-  TITLE:=python3-click-log
-  DEPENDS:=+python3-click
-endef
-
-define Package/python3-click-log/description
-  Simple and beautiful logging for click applications
-endef
-
-$(eval $(call Py3Package,python3-click-log))
-$(eval $(call BuildPackage,python3-click-log))
-$(eval $(call BuildPackage,python3-click-log-src))
diff --git a/lang/python/python-click-log/Makefile b/lang/python/python-click-log/Makefile
new file mode 100644 (file)
index 0000000..01f6c0e
--- /dev/null
@@ -0,0 +1,36 @@
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-click-log
+PKG_VERSION:=0.4.0
+PKG_RELEASE:=1
+PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
+
+PYPI_NAME:=click-log
+PKG_HASH:=3970f8570ac54491237bcdb3d8ab5e3eef6c057df29f8c3d1151a51a9c23b975
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-click-log
+  SECTION:=lang
+  CATEGORY:=Languages
+  SUBMENU:=Python
+  URL:=https://github.com/click-contrib/click-log
+  TITLE:=Logging integration for Click
+  DEPENDS:=+python3-light +python3-logging +python3-click
+endef
+
+define Package/python3-click-log/description
+  Simple and beautiful logging for click applications
+endef
+
+$(eval $(call Py3Package,python3-click-log))
+$(eval $(call BuildPackage,python3-click-log))
+$(eval $(call BuildPackage,python3-click-log-src))