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.

75 lines
2.1 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-postoffice
  9. PKG_VERSION:=3.1.0
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=django-post_office-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/django-post_office
  13. PKG_HASH:=827937a944fe47cea393853069cd9315d080298c8ddb0faf787955d6aa51a030
  14. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE.txt
  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/$(PKG_NAME)/Default
  23. SUBMENU:=Python
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. TITLE:=A Django app to monitor and send mail asynchronously
  27. URL:=https://github.com/ui/django-post_office
  28. endef
  29. define Package/python-$(PKG_NAME)
  30. $(call Package/$(PKG_NAME)/Default)
  31. DEPENDS:= \
  32. +PACKAGE_python-$(PKG_NAME):python \
  33. python-django \
  34. +PACKAGE_python-$(PKG_NAME):python-django-jsonfield
  35. VARIANT:=python
  36. MDEPENDS:=python-django
  37. endef
  38. define Package/python-$(PKG_NAME)/description
  39. A Django app to monitor and send mail asynchronously, complete with template
  40. support
  41. endef
  42. define Package/python3-$(PKG_NAME)
  43. $(call Package/$(PKG_NAME)/Default)
  44. DEPENDS:= \
  45. +PACKAGE_python3-$(PKG_NAME):python3 \
  46. python3-django \
  47. +PACKAGE_python3-$(PKG_NAME):python3-django-jsonfield
  48. VARIANT:=python3
  49. MDEPENDS:=python3-django
  50. endef
  51. define Package/python3-$(PKG_NAME)/description
  52. $(call define Package/python-$(PKG_NAME)/description)
  53. .
  54. (Variant for Python3)
  55. endef
  56. $(eval $(call PyPackage,python-$(PKG_NAME)))
  57. $(eval $(call BuildPackage,python-$(PKG_NAME)))
  58. $(eval $(call BuildPackage,python-$(PKG_NAME)-src))
  59. $(eval $(call Py3Package,python3-$(PKG_NAME)))
  60. $(eval $(call BuildPackage,python3-$(PKG_NAME)))
  61. $(eval $(call BuildPackage,python3-$(PKG_NAME)-src))