summaryrefslogtreecommitdiff
path: root/lang/python/python-rcssmin
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-05-21 01:20:09 -0700
committerGitHub <noreply@github.com>2019-05-21 01:20:09 -0700
commit05cd0c24a4eb9b803e4287b0c1fe67534bb83dad (patch)
tree36b91a305a98329874967b4baf277c292a3f89f7 /lang/python/python-rcssmin
parentc771ed1f64e0d50cad8bb7dfe3bcadae64ea086b (diff)
parent016ef28dff0444504a05073cc9a5ac0bc8f64002 (diff)
Merge pull request #8993 from cotequeiroz/rcssmin
python-rcssmin: restore & update removed package, add depend to django-compressor
Diffstat (limited to 'lang/python/python-rcssmin')
-rw-r--r--lang/python/python-rcssmin/Makefile71
1 files changed, 71 insertions, 0 deletions
diff --git a/lang/python/python-rcssmin/Makefile b/lang/python/python-rcssmin/Makefile
new file mode 100644
index 000000000..f1e4477fa
--- /dev/null
+++ b/lang/python/python-rcssmin/Makefile
@@ -0,0 +1,71 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-rcssmin
+PKG_VERSION:=1.0.6
+PKG_RELEASE=1
+
+PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Eneas U de Queiroz <cote2004-github@yahoo.com>
+PKG_LICENSE:=Apache-2.0
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_SOURCE:=rcssmin-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/r/rcssmin
+PKG_HASH:=ca87b695d3d7864157773a61263e5abb96006e9ff0e021eff90cbe0e1ba18270
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-rcssmin-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+include ../python-package.mk
+include ../python3-package.mk
+
+PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
+
+define Package/python-rcssmin/Default
+ SUBMENU:=Python
+ SECTION:=lang
+ CATEGORY:=Languages
+ TITLE:=Fast CSS minifier for Python
+ URL:=http://opensource.perlig.de/rcssmin/
+endef
+
+define Package/python-rcssmin
+ $(call Package/python-rcssmin/Default)
+ DEPENDS:= \
+ +PACKAGE_python-rcssmin:python-light \
+ +PACKAGE_python-rcssmin:python-codecs
+ VARIANT:=python
+endef
+
+define Package/python3-rcssmin
+ $(call Package/python-rcssmin/Default)
+ DEPENDS:= \
+ +PACKAGE_python3-rcssmin:python3-light
+ VARIANT:=python3
+endef
+
+define Package/python-rcssmin/description
+ This module is a re-implementation aiming for speed instead of maximum compression,
+ so it can be used at runtime (rather than during a preprocessing step).
+ RCSSmin does syntactical compression only (removing spaces, comments and possibly
+ semicolons). It does not provide semantic compression (like removing empty blocks,
+ collapsing redundant properties etc).
+endef
+
+define Package/python3-rcssmin/description
+$(call Package/python-rcssmin/description)
+.
+(Variant for Python3)
+endef
+
+$(eval $(call PyPackage,python-rcssmin))
+$(eval $(call BuildPackage,python-rcssmin))
+$(eval $(call BuildPackage,python-rcssmin-src))
+
+$(eval $(call Py3Package,python3-rcssmin))
+$(eval $(call BuildPackage,python3-rcssmin))
+$(eval $(call BuildPackage,python3-rcssmin-src))