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.

67 lines
1.9 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=python-rcssmin
  7. PKG_VERSION:=1.0.6
  8. PKG_RELEASE=1
  9. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Eneas U de Queiroz <cote2004-github@yahoo.com>
  10. PKG_LICENSE:=Apache-2.0
  11. PKG_LICENSE_FILES:=LICENSE
  12. PYPI_NAME:=rcssmin
  13. PKG_HASH:=ca87b695d3d7864157773a61263e5abb96006e9ff0e021eff90cbe0e1ba18270
  14. include ../pypi.mk
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../python-package.mk
  17. include ../python3-package.mk
  18. define Package/python-rcssmin/Default
  19. SUBMENU:=Python
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=Fast CSS minifier for Python
  23. URL:=http://opensource.perlig.de/rcssmin/
  24. endef
  25. define Package/python-rcssmin
  26. $(call Package/python-rcssmin/Default)
  27. DEPENDS:= \
  28. +PACKAGE_python-rcssmin:python-light \
  29. +PACKAGE_python-rcssmin:python-codecs
  30. VARIANT:=python
  31. endef
  32. define Package/python3-rcssmin
  33. $(call Package/python-rcssmin/Default)
  34. DEPENDS:= \
  35. +PACKAGE_python3-rcssmin:python3-light
  36. VARIANT:=python3
  37. endef
  38. define Package/python-rcssmin/description
  39. This module is a re-implementation aiming for speed instead of maximum compression,
  40. so it can be used at runtime (rather than during a preprocessing step).
  41. RCSSmin does syntactical compression only (removing spaces, comments and possibly
  42. semicolons). It does not provide semantic compression (like removing empty blocks,
  43. collapsing redundant properties etc).
  44. endef
  45. define Package/python3-rcssmin/description
  46. $(call Package/python-rcssmin/description)
  47. .
  48. (Variant for Python3)
  49. endef
  50. $(eval $(call PyPackage,python-rcssmin))
  51. $(eval $(call BuildPackage,python-rcssmin))
  52. $(eval $(call BuildPackage,python-rcssmin-src))
  53. $(eval $(call Py3Package,python3-rcssmin))
  54. $(eval $(call BuildPackage,python3-rcssmin))
  55. $(eval $(call BuildPackage,python3-rcssmin-src))