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.

76 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-compressor
  9. PKG_VERSION:=2.2
  10. PKG_RELEASE:=6
  11. PYPI_NAME:=$(PKG_NAME)
  12. PYPI_SOURCE_NAME:=django_compressor
  13. PKG_HASH:=9616570e5b08e92fa9eadc7a1b1b49639cce07ef392fc27c74230ab08075b30f
  14. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. define Package/$(PKG_NAME)/Default
  22. SUBMENU:=Python
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=Compress CSS/JS into single cached files
  26. URL:=https://$(PKG_NAME).readthedocs.io
  27. endef
  28. define Package/python-$(PKG_NAME)
  29. $(call Package/$(PKG_NAME)/Default)
  30. DEPENDS:= \
  31. +PACKAGE_python-$(PKG_NAME):python \
  32. python-django1 \
  33. +PACKAGE_python-$(PKG_NAME):python-django-appconf \
  34. +PACKAGE_python-$(PKG_NAME):python-rcssmin
  35. VARIANT:=python
  36. MDEPENDS:=python-django1
  37. endef
  38. define Package/python-$(PKG_NAME)/description
  39. Compresses linked and inline JavaScript or CSS into single cached files.
  40. Note that the JavaScript filter is not being installed as a dependency.
  41. You'll need to build the rjsmin module (it is not par of the openwrt standard
  42. feeds) to use JavaScript functionality.
  43. endef
  44. define Package/python3-$(PKG_NAME)
  45. $(call Package/$(PKG_NAME)/Default)
  46. DEPENDS:= \
  47. +PACKAGE_python3-$(PKG_NAME):python3 \
  48. python3-django \
  49. +PACKAGE_python3-$(PKG_NAME):python3-django-appconf \
  50. +PACKAGE_python3-$(PKG_NAME):python3-rcssmin
  51. VARIANT:=python3
  52. MDEPENDS:=python3-django
  53. endef
  54. define Package/python3-$(PKG_NAME)/description
  55. $(call define Package/python-$(PKG_NAME)/description)
  56. .
  57. (Variant for Python3)
  58. endef
  59. $(eval $(call PyPackage,python-$(PKG_NAME)))
  60. $(eval $(call BuildPackage,python-$(PKG_NAME)))
  61. $(eval $(call BuildPackage,python-$(PKG_NAME)-src))
  62. $(eval $(call Py3Package,python3-$(PKG_NAME)))
  63. $(eval $(call BuildPackage,python3-$(PKG_NAME)))
  64. $(eval $(call BuildPackage,python3-$(PKG_NAME)-src))