aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2013-10-19 23:40:04 +0800
committernivit <nivit@FreeBSD.org>2013-10-19 23:40:04 +0800
commit5341e3d41fe8365f61fa03486e90d11d0a1466cd (patch)
tree7cd3be9ef6ec949d09685064e5cd38d8329380a2
parent7267c0d37c11d1a89dba5e8595ff3f7bc2dc47ab (diff)
downloadfreebsd-ports-gnome-5341e3d41fe8365f61fa03486e90d11d0a1466cd.tar.gz
freebsd-ports-gnome-5341e3d41fe8365f61fa03486e90d11d0a1466cd.tar.zst
freebsd-ports-gnome-5341e3d41fe8365f61fa03486e90d11d0a1466cd.zip
CSSO (CSS Optimizer) is a CSS minimizer unlike others. In addition to usual
minification techniques it can perform structural optimization of CSS files, resulting in smaller file size compared to other minifiers. WWW: http://bem.info/tools/csso/ Build logs: https://redports.org/buildarchive/20131019150900-23459/
-rw-r--r--www/Makefile1
-rw-r--r--www/csso/Makefile32
-rw-r--r--www/csso/distinfo2
-rw-r--r--www/csso/pkg-descr5
-rw-r--r--www/csso/pkg-plist12
5 files changed, 52 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 8682b11ecaf1..e1132f542ba0 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -118,6 +118,7 @@
SUBDIR += crp
SUBDIR += css-mode.el
SUBDIR += cssed
+ SUBDIR += csso
SUBDIR += csstidy
SUBDIR += ctemplate
SUBDIR += cutycapt
diff --git a/www/csso/Makefile b/www/csso/Makefile
new file mode 100644
index 000000000000..11c6ad1e45dc
--- /dev/null
+++ b/www/csso/Makefile
@@ -0,0 +1,32 @@
+# Created by: Nicola Vitale <nivit@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= csso
+PORTVERSION= 1.3.9
+#PORTREVISION= 0
+CATEGORIES= www
+MASTER_SITES= http://nivit.altervista.org/FreeBSD/ports/distfiles/
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= CSS optimizer
+
+LICENSE= MIT
+
+RUN_DEPENDS= node:${PORTSDIR}/www/node
+
+GH_ACCOUNT= css
+GH_COMMIT= 99ae4ad
+GH_TAGNAME= v${PORTVERSION}
+
+NO_BUILD= yes
+
+USE_GITHUB= yes
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${DATADIR}/bin
+ ${INSTALL_DATA} ${WRKSRC}/USAGE ${STAGEDIR}${DATADIR}/USAGE
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${DATADIR}/bin/${PORTNAME}
+ ${LN} -s ${STAGEDIR}${DATADIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/lib
+
+.include <bsd.port.mk>
diff --git a/www/csso/distinfo b/www/csso/distinfo
new file mode 100644
index 000000000000..d4029e6d7f3d
--- /dev/null
+++ b/www/csso/distinfo
@@ -0,0 +1,2 @@
+SHA256 (csso-1.3.9.tar.gz) = dda3e6d845929482d88d98572360120f76c7249256c0701ee995e77e260cacd3
+SIZE (csso-1.3.9.tar.gz) = 118023
diff --git a/www/csso/pkg-descr b/www/csso/pkg-descr
new file mode 100644
index 000000000000..51ff7fbc721a
--- /dev/null
+++ b/www/csso/pkg-descr
@@ -0,0 +1,5 @@
+CSSO (CSS Optimizer) is a CSS minimizer unlike others. In addition to usual
+minification techniques it can perform structural optimization of CSS files,
+resulting in smaller file size compared to other minifiers.
+
+WWW: http://bem.info/tools/csso/
diff --git a/www/csso/pkg-plist b/www/csso/pkg-plist
new file mode 100644
index 000000000000..e25b2e527483
--- /dev/null
+++ b/www/csso/pkg-plist
@@ -0,0 +1,12 @@
+bin/csso
+%%DATADIR%%/USAGE
+%%DATADIR%%/bin/csso
+%%DATADIR%%/lib/compressor.js
+%%DATADIR%%/lib/csso.js
+%%DATADIR%%/lib/cssoapi.js
+%%DATADIR%%/lib/gonzales.cssp.node.js
+%%DATADIR%%/lib/translator.js
+%%DATADIR%%/lib/util.js
+@dirrm %%DATADIR%%/lib
+@dirrm %%DATADIR%%/bin
+@dirrm %%DATADIR%%