mirror of
https://github.com/openwrt/packages.git
synced 2025-12-20 09:31:20 +00:00
python-packages: Clean up Makefiles
This removes: * Python 3 variants (VARIANT:=python3) * "for Python3" from package titles * Package selection condition from package dependencies, e.g. +PACKAGE_python3-six:python3-light replaced with +python3-light * "Default" package information sections, e.g. Package/python-six/Default removed and package details merged into Package/python3-six * "(Variant for Python3)" from package descriptions Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=django-simple-captcha
|
||||
PKG_VERSION:=0.5.12
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/mbi/django-simple-captcha/tar.gz/v$(PKG_VERSION)?
|
||||
@@ -19,37 +19,26 @@ PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include ../python3-package.mk
|
||||
|
||||
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
|
||||
|
||||
define Package/django-simple-captcha/Default
|
||||
define Package/python3-django-simple-captcha
|
||||
SUBMENU:=Python
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=Simple Django captcha application
|
||||
URL:=https://github.com/mbi/django-simple-captcha
|
||||
endef
|
||||
|
||||
define Package/python3-django-simple-captcha
|
||||
$(call Package/django-simple-captcha/Default)
|
||||
DEPENDS:= \
|
||||
+PACKAGE_python3-django-simple-captcha:python3 \
|
||||
+PACKAGE_python3-django-simple-captcha:python3-six \
|
||||
+PACKAGE_python3-django-simple-captcha:python3-django1 \
|
||||
+PACKAGE_python3-django-simple-captcha:python3-pillow \
|
||||
+PACKAGE_python3-django-simple-captcha:python3-django-ranged-response
|
||||
VARIANT:=python3
|
||||
+python3 \
|
||||
+python3-six \
|
||||
+python3-django1 \
|
||||
+python3-pillow \
|
||||
+python3-django-ranged-response
|
||||
endef
|
||||
|
||||
define Package/python3-django-simple-captcha/description
|
||||
Django Simple Captcha is an extremely simple, yet highly customizable Django
|
||||
application to add captcha images to any Django form.
|
||||
.
|
||||
(Variant for Python3)
|
||||
endef
|
||||
|
||||
$(eval $(call Py3Package,python3-django-simple-captcha))
|
||||
|
||||
Reference in New Issue
Block a user