You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.5 KiB

  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=django-simple-captcha
  9. PKG_VERSION:=0.5.12
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/mbi/django-simple-captcha/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=89db73a3883573ad5e22c511948a5500491f9848363174d835a2364750c81a77
  14. PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  22. define Package/django-simple-captcha/Default
  23. SUBMENU:=Python
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. TITLE:=Simple Django captcha application
  27. URL:=https://github.com/mbi/django-simple-captcha
  28. endef
  29. define Package/python-django-simple-captcha
  30. $(call Package/django-simple-captcha/Default)
  31. DEPENDS:= \
  32. +PACKAGE_python-django-simple-captcha:python \
  33. +PACKAGE_python-django-simple-captcha:python-six \
  34. python-django1 \
  35. +PACKAGE_python-django-simple-captcha:python-pillow \
  36. +PACKAGE_python-django-simple-captcha:python-django-ranged-response
  37. VARIANT:=python
  38. MDEPENDS:=python-django1
  39. endef
  40. define Package/python-django-simple-captcha/description
  41. Django Simple Captcha is an extremely simple, yet highly customizable Django
  42. application to add captcha images to any Django form.
  43. endef
  44. define Package/python3-django-simple-captcha
  45. $(call Package/django-simple-captcha/Default)
  46. DEPENDS:= \
  47. +PACKAGE_python3-django-simple-captcha:python3 \
  48. +PACKAGE_python3-django-simple-captcha:python3-six \
  49. +PACKAGE_python3-django-simple-captcha:python3-django1 \
  50. +PACKAGE_python3-django-simple-captcha:python3-pillow \
  51. +PACKAGE_python3-django-simple-captcha:python3-django-ranged-response
  52. VARIANT:=python3
  53. endef
  54. define Package/python3-django-simple-captcha/description
  55. $(call Package/python-django-simple-captcha/description)
  56. .
  57. (Variant for Python3)
  58. endef
  59. $(eval $(call PyPackage,python-django-simple-captcha))
  60. $(eval $(call BuildPackage,python-django-simple-captcha))
  61. $(eval $(call BuildPackage,python-django-simple-captcha-src))
  62. $(eval $(call Py3Package,python3-django-simple-captcha))
  63. $(eval $(call BuildPackage,python3-django-simple-captcha))
  64. $(eval $(call BuildPackage,python3-django-simple-captcha-src))