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.

55 lines
1.6 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:=7
  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 ../python3-package.mk
  20. define Package/django-compressor/Default
  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. endef
  27. define Package/python3-django-compressor
  28. $(call Package/django-compressor/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python3-django-compressor:python3 \
  31. +PACKAGE_python3-django-compressor:python3-django1 \
  32. +PACKAGE_python3-django-compressor:python3-django-appconf \
  33. +PACKAGE_python3-django-compressor:python3-rcssmin
  34. VARIANT:=python3
  35. endef
  36. define Package/python3-django-compressor/description
  37. Compresses linked and inline JavaScript or CSS into single cached files.
  38. Note that the JavaScript filter is not being installed as a dependency.
  39. You'll need to build the rjsmin module (it is not par of the openwrt standard
  40. feeds) to use JavaScript functionality.
  41. .
  42. (Variant for Python3)
  43. endef
  44. $(eval $(call Py3Package,python3-django-compressor))
  45. $(eval $(call BuildPackage,python3-django-compressor))
  46. $(eval $(call BuildPackage,python3-django-compressor-src))