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.

48 lines
1.3 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.4
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=$(PKG_NAME)
  12. PYPI_SOURCE_NAME:=django_compressor
  13. PKG_HASH:=d2ed1c6137ddaac5536233ec0a819e14009553fee0a869bea65d03e5285ba74f
  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 ../python3-package.mk
  20. define Package/python3-django-compressor
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Compress CSS/JS into single cached files
  25. URL:=https://django-compressor.readthedocs.io
  26. DEPENDS:= \
  27. +python3 \
  28. +python3-django1 \
  29. +python3-django-appconf \
  30. +python3-rcssmin
  31. endef
  32. define Package/python3-django-compressor/description
  33. Compresses linked and inline JavaScript or CSS into single cached files.
  34. Note that the JavaScript filter is not being installed as a dependency.
  35. You'll need to build the rjsmin module (it is not par of the openwrt standard
  36. feeds) to use JavaScript functionality.
  37. endef
  38. $(eval $(call Py3Package,python3-django-compressor))
  39. $(eval $(call BuildPackage,python3-django-compressor))
  40. $(eval $(call BuildPackage,python3-django-compressor-src))