summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-01-22 23:59:49 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-01-22 23:59:49 +0000
commit7dbdaea46a17980a068b285d5766fe890482db6a (patch)
tree47e3ffeb0141a0c704c91e7bf8aeb8c2228629c6
parentAdd minify 2.3.8 (diff)
Add p5-CSS-Sass 3.4.10
CSS::Sass provides a perl interface to LibSass, a nearly complete Sass compiler written in C++. It is currently at ruby sass 3.4 feature parity and heading towards 3.5 compatibility. It can compile .scss and .sass files. WWW: https://metacpan.org/release/CSS-Sass
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/p5-CSS-Sass/Makefile42
-rw-r--r--textproc/p5-CSS-Sass/distinfo3
-rw-r--r--textproc/p5-CSS-Sass/files/patch-Makefile.PL21
-rw-r--r--textproc/p5-CSS-Sass/pkg-descr5
-rw-r--r--textproc/p5-CSS-Sass/pkg-plist18
6 files changed, 90 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 48ba61b14ce7..b55fa8f6d869 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -560,6 +560,7 @@
SUBDIR += p5-CSS-Minifier-XS
SUBDIR += p5-CSS-Packer
SUBDIR += p5-CSS-SAC
+ SUBDIR += p5-CSS-Sass
SUBDIR += p5-CSS-Simple
SUBDIR += p5-CSS-Squish
SUBDIR += p5-CSS-Tiny
diff --git a/textproc/p5-CSS-Sass/Makefile b/textproc/p5-CSS-Sass/Makefile
new file mode 100644
index 000000000000..39ab531bf735
--- /dev/null
+++ b/textproc/p5-CSS-Sass/Makefile
@@ -0,0 +1,42 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= CSS-Sass
+PORTVERSION= 3.4.10
+CATEGORIES= textproc perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Compile .scss and .sass files using LibSass
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= p5-ExtUtils-CppGuess>=0.09:devel/p5-ExtUtils-CppGuess \
+ ${RUN_DEPENDS}
+RUN_DEPENDS= p5-Encode-Locale>=0.01:converters/p5-Encode-Locale \
+ p5-Filesys-Notify-KQueue>=0.01:devel/p5-Filesys-Notify-KQueue \
+ p5-Filesys-Notify-Simple>=0.01:devel/p5-Filesys-Notify-Simple
+TEST_DEPENDS= p5-File-chdir>=0.01:devel/p5-File-chdir \
+ p5-Test-Differences>=0.01:devel/p5-Test-Differences \
+ p5-YAML-LibYAML>=0.01:textproc/p5-YAML-LibYAML
+
+USES= gmake perl5
+USE_PERL5= configure
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 502600
+BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.45:lang/p5-Scalar-List-Utils
+RUN_DEPENDS+= p5-Scalar-List-Utils>=1.45:lang/p5-Scalar-List-Utils
+.endif
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/CSS/Sass/Sass.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/CSS/Sass/plugins/glob/glob.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/CSS/Sass/plugins/img-size/img-size.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/CSS/Sass/plugins/math/math.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/libsass.so
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-CSS-Sass/distinfo b/textproc/p5-CSS-Sass/distinfo
new file mode 100644
index 000000000000..5b5986625bbc
--- /dev/null
+++ b/textproc/p5-CSS-Sass/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1548074445
+SHA256 (CSS-Sass-3.4.10.tar.gz) = 10fc854182dfc0e97bf06823c9dc79dcf9c2fd48fd1581d55b25a8517a2eb2be
+SIZE (CSS-Sass-3.4.10.tar.gz) = 2577824
diff --git a/textproc/p5-CSS-Sass/files/patch-Makefile.PL b/textproc/p5-CSS-Sass/files/patch-Makefile.PL
new file mode 100644
index 000000000000..e8e8e44f0089
--- /dev/null
+++ b/textproc/p5-CSS-Sass/files/patch-Makefile.PL
@@ -0,0 +1,21 @@
+--- Makefile.PL.orig 2018-01-12 02:11:18 UTC
++++ Makefile.PL
+@@ -333,7 +333,8 @@ my $orig = \&ExtUtils::MM_Unix::c_o;
+ foreach (@rv) {
+ # add c++0x flag only for cpp files
+ # otherwise XS perl handshake fails
+- s/\$\*\.c(pp|xx)\s*(?=\n|\r|\Z)/-xc++ -std=c++0x \$\*\.c$1/g
++ s/\$\*\.c\s*(?=\n|\r|\Z)/\$\*\.c$1 -o \$\*.o/g;
++ s/\$\*\.c(pp|xx)\s*(?=\n|\r|\Z)/-xc++ -std=c++0x \$\*\.c$1 -o \$\*\.o/g;
+ }
+ return @rv;
+ };
+@@ -719,7 +720,7 @@ sub libsass_plugin_glob
+ # special case (does not compile with perl inc path)
+ # readdir and friends were not available from headers
+ push @ret, 'plugins/glob/vendor/FS$(OBJ_EXT):';
+- push @ret, "\t" . '$(CCCMD) $(CCCDLFLAGS) $(PASTHRU_DEFINE) $(DEFINE) -xc++ -std=c++0x $*.cpp';
++ push @ret, "\t" . '$(CCCMD) $(CCCDLFLAGS) $(PASTHRU_DEFINE) $(DEFINE) -xc++ -std=c++0x $*.cpp -o $*.o';
+ # create the target for the makefile
+ push @ret, '$(GLOB_LIB): $(LIBSASS_LIB) $(GLOB_OBJ)';
+ # make sure the plugin path exists for output
diff --git a/textproc/p5-CSS-Sass/pkg-descr b/textproc/p5-CSS-Sass/pkg-descr
new file mode 100644
index 000000000000..f8a25cd4cdc0
--- /dev/null
+++ b/textproc/p5-CSS-Sass/pkg-descr
@@ -0,0 +1,5 @@
+CSS::Sass provides a perl interface to LibSass, a nearly complete Sass compiler
+written in C++. It is currently at ruby sass 3.4 feature parity and heading
+towards 3.5 compatibility. It can compile .scss and .sass files.
+
+WWW: https://metacpan.org/release/CSS-Sass
diff --git a/textproc/p5-CSS-Sass/pkg-plist b/textproc/p5-CSS-Sass/pkg-plist
new file mode 100644
index 000000000000..25abb7176a2e
--- /dev/null
+++ b/textproc/p5-CSS-Sass/pkg-plist
@@ -0,0 +1,18 @@
+bin/psass
+%%SITE_ARCH%%/CSS/Sass.md
+%%SITE_ARCH%%/CSS/Sass.pm
+%%SITE_ARCH%%/CSS/Sass/Plugins.pm
+%%SITE_ARCH%%/CSS/Sass/Type.pm
+%%SITE_ARCH%%/CSS/Sass/Value.md
+%%SITE_ARCH%%/CSS/Sass/Value.pm
+%%SITE_ARCH%%/CSS/Sass/Watchdog.pm
+%%SITE_ARCH%%/CSS/ppport.h
+%%SITE_ARCH%%/auto/CSS/Sass/Sass.so
+%%SITE_ARCH%%/auto/CSS/Sass/plugins/glob/glob.so
+%%SITE_ARCH%%/auto/CSS/Sass/plugins/img-size/img-size.so
+%%SITE_ARCH%%/auto/CSS/Sass/plugins/math/math.so
+%%SITE_ARCH%%/libsass.so
+%%PERL5_MAN1%%/psass.1.gz
+%%PERL5_MAN3%%/CSS::Sass.3.gz
+%%PERL5_MAN3%%/CSS::Sass::Value.3.gz
+%%PERL5_MAN3%%/CSS::Sass::Watchdog.3.gz