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.

67 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. python-django
  33. VARIANT:=python
  34. MDEPENDS:=python-django
  35. endef
  36. define Package/python-django-constance/description
  37. Django live settings with pluggable backends, including Redis.
  38. endef
  39. define Package/python3-django-constance
  40. $(call Package/python-django-constance/Default)
  41. DEPENDS:= \
  42. +PACKAGE_python3-django-constance:python3 \
  43. python3-django
  44. VARIANT:=python3
  45. MDEPENDS:=python3-django
  46. endef
  47. define Package/python3-django-constance/description
  48. $(call define Package/python-django-constance/description)
  49. .
  50. (Variant for Python3)
  51. endef
  52. $(eval $(call PyPackage,python-django-constance))
  53. $(eval $(call BuildPackage,python-django-constance))
  54. $(eval $(call Py3Package,python3-django-constance))
  55. $(eval $(call BuildPackage,python3-django-constance))