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.

77 lines
2.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.2
  10. PKG_RELEASE:=5
  11. PKG_SOURCE:=django_compressor-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/$(PKG_NAME)/
  13. PKG_HASH:=9616570e5b08e92fa9eadc7a1b1b49639cce07ef392fc27c74230ab08075b30f
  14. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  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:=Compress CSS/JS into single cached files
  27. URL:=https://$(PKG_NAME).readthedocs.io
  28. endef
  29. define Package/python-$(PKG_NAME)
  30. $(call Package/$(PKG_NAME)/Default)
  31. DEPENDS:= \
  32. +PACKAGE_python-$(PKG_NAME):python \
  33. +PACKAGE_python-$(PKG_NAME):python-django \
  34. +PACKAGE_python-$(PKG_NAME):python-django-appconf \
  35. +PACKAGE_python-$(PKG_NAME):python-rcssmin
  36. VARIANT:=python
  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. +PACKAGE_python3-$(PKG_NAME):python3-django \
  49. +PACKAGE_python3-$(PKG_NAME):python3-django-appconf \
  50. +PACKAGE_python3-$(PKG_NAME):python3-rcssmin
  51. VARIANT:=python3
  52. endef
  53. define Package/python3-$(PKG_NAME)/description
  54. $(call define Package/python-$(PKG_NAME)/description)
  55. .
  56. (Variant for Python3)
  57. endef
  58. $(eval $(call PyPackage,python-$(PKG_NAME)))
  59. $(eval $(call BuildPackage,python-$(PKG_NAME)))
  60. $(eval $(call BuildPackage,python-$(PKG_NAME)-src))
  61. $(eval $(call Py3Package,python3-$(PKG_NAME)))
  62. $(eval $(call BuildPackage,python3-$(PKG_NAME)))
  63. $(eval $(call BuildPackage,python3-$(PKG_NAME)-src))