2018-06-23 19:38:24 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007-2016 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=django-simple-captcha
|
2019-08-09 13:47:33 +00:00
|
|
|
PKG_VERSION:=0.5.12
|
2020-02-05 11:13:45 +00:00
|
|
|
PKG_RELEASE:=3
|
2019-03-08 17:18:05 +00:00
|
|
|
|
2019-07-03 08:47:45 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/mbi/django-simple-captcha/tar.gz/v$(PKG_VERSION)?
|
2019-08-09 13:47:33 +00:00
|
|
|
PKG_HASH:=89db73a3883573ad5e22c511948a5500491f9848363174d835a2364750c81a77
|
2019-07-03 08:47:45 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
|
2018-06-23 19:38:24 +00:00
|
|
|
PKG_LICENSE:=MIT
|
2019-03-08 17:18:05 +00:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2018-06-23 19:38:24 +00:00
|
|
|
|
2019-07-03 08:47:45 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
|
2018-06-23 19:38:24 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2019-07-03 08:47:45 +00:00
|
|
|
include ../python3-package.mk
|
|
|
|
|
|
|
|
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
|
2018-06-23 19:38:24 +00:00
|
|
|
|
2020-01-30 14:44:26 +00:00
|
|
|
define Package/django-simple-captcha/Default
|
2018-06-23 19:38:24 +00:00
|
|
|
SUBMENU:=Python
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2019-05-16 14:50:16 +00:00
|
|
|
TITLE:=Simple Django captcha application
|
2018-06-23 19:38:24 +00:00
|
|
|
URL:=https://github.com/mbi/django-simple-captcha
|
2019-07-03 08:47:45 +00:00
|
|
|
endef
|
|
|
|
|
2020-01-30 14:44:26 +00:00
|
|
|
define Package/python3-django-simple-captcha
|
|
|
|
$(call Package/django-simple-captcha/Default)
|
2019-07-03 08:47:45 +00:00
|
|
|
DEPENDS:= \
|
2020-01-30 14:44:26 +00:00
|
|
|
+PACKAGE_python3-django-simple-captcha:python3 \
|
|
|
|
+PACKAGE_python3-django-simple-captcha:python3-six \
|
2020-02-05 11:13:45 +00:00
|
|
|
+PACKAGE_python3-django-simple-captcha:python3-django1 \
|
2020-01-30 14:44:26 +00:00
|
|
|
+PACKAGE_python3-django-simple-captcha:python3-pillow \
|
|
|
|
+PACKAGE_python3-django-simple-captcha:python3-django-ranged-response
|
2019-07-03 08:47:45 +00:00
|
|
|
VARIANT:=python3
|
|
|
|
endef
|
|
|
|
|
2020-01-30 14:44:26 +00:00
|
|
|
define Package/python3-django-simple-captcha/description
|
2020-04-01 14:21:16 +00:00
|
|
|
Django Simple Captcha is an extremely simple, yet highly customizable Django
|
|
|
|
application to add captcha images to any Django form.
|
2019-07-03 08:47:45 +00:00
|
|
|
.
|
|
|
|
(Variant for Python3)
|
|
|
|
endef
|
|
|
|
|
2020-01-30 14:44:26 +00:00
|
|
|
$(eval $(call Py3Package,python3-django-simple-captcha))
|
|
|
|
$(eval $(call BuildPackage,python3-django-simple-captcha))
|
|
|
|
$(eval $(call BuildPackage,python3-django-simple-captcha-src))
|