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.

46 lines
1.4 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:=3
  11. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_SOURCE:=django_compressor-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=https://pypi.python.org/packages/82/76/1355459f90714517c52f264aa7245b52e59a273ec16e8f8d505fa6c342f8/
  16. PKG_HASH:=9616570e5b08e92fa9eadc7a1b1b49639cce07ef392fc27c74230ab08075b30f
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/django_compressor-$(PKG_VERSION)/
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. define Package/django-compressor
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Compress CSS/JS into single cached files
  25. URL:=http://django-compressor.readthedocs.org/
  26. DEPENDS:=+python +django +django-appconf +python-rcssmin
  27. VARIANT:=python
  28. endef
  29. define Package/django-compressor/description
  30. Compresses linked and inline JavaScript or CSS into single cached files.
  31. Note that the JavaScript filter is not being installed as a dependency.
  32. You'll need to build the rjsmin module (it is not par of the openwrt standard
  33. feeds) to use JavaScript functionality.
  34. endef
  35. $(eval $(call PyPackage,django-compressor))
  36. $(eval $(call BuildPackage,django-compressor))
  37. $(eval $(call BuildPackage,django-compressor-src))