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.

65 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2007-2017 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-constance
  9. PKG_VERSION:=2.3.1
  10. PKG_RELEASE:=3
  11. PKG_LICENSE:=BSD-3-Clause
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/django-constance
  14. PKG_HASH:=a49735063b2c30015d2e52a90609ea9798da722ed070f091de51714758a5d018
  15. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-django-constance-$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  21. define Package/python-django-constance/Default
  22. SUBMENU:=Python
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=Django live settings with pluggable backends, including Redis.
  26. URL:=https://github.com/jazzband/django-constance
  27. endef
  28. define Package/python-django-constance
  29. $(call Package/python-django-constance/Default)
  30. DEPENDS:= \
  31. +PACKAGE_python-django-constance:python \
  32. +PACKAGE_python-django-constance:python-django
  33. VARIANT:=python
  34. endef
  35. define Package/python-django-constance/description
  36. Django live settings with pluggable backends, including Redis.
  37. endef
  38. define Package/python3-django-constance
  39. $(call Package/python-django-constance/Default)
  40. DEPENDS:= \
  41. +PACKAGE_python3-django-constance:python3 \
  42. +PACKAGE_python3-django-constance:python3-django
  43. VARIANT:=python3
  44. endef
  45. define Package/python3-django-constance/description
  46. $(call define Package/python-django-constance/description)
  47. .
  48. (Variant for Python3)
  49. endef
  50. $(eval $(call PyPackage,python-django-constance))
  51. $(eval $(call BuildPackage,python-django-constance))
  52. $(eval $(call Py3Package,python3-django-constance))
  53. $(eval $(call BuildPackage,python3-django-constance))