Simple update to the most recent release of the sassc gem.

Change log at:
https://github.com/sass/sassc-ruby/blob/master/CHANGELOG.md

Port changes are minimal.  Fix the RDEP to use the correct
version specifier, and add the LIBCXX to WANTLIB as mentioned
by port-lib-depends-check. Update the patch to disable link
time optimization.

Tested on amd64.  Will be committing in a couple days unless I hear
objections.

Thanks,
Jeremy

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/ruby-sassc/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile    14 Nov 2019 16:32:15 -0000      1.2
+++ Makefile    19 May 2021 20:32:51 -0000
@@ -2,7 +2,7 @@
 
 COMMENT =              libsass wrapper for ruby
 
-DISTNAME =             sassc-2.2.1
+DISTNAME =             sassc-2.4.0
 CATEGORIES =           www
 
 HOMEPAGE =             https://github.com/sass/sassc-ruby
@@ -16,7 +16,8 @@ COMPILER =            base-clang ports-gcc
 MODULES =              lang/ruby
 CONFIGURE_STYLE =      ruby gem ext
 
+WANTLIB =              ${COMPILER_LIBCXX}
 BUILD_DEPENDS =                ${RUN_DEPENDS}
-RUN_DEPENDS =          devel/ruby-ffi,${MODRUBY_FLAVOR}>=1.9
+RUN_DEPENDS =          devel/ruby-ffi,${MODRUBY_FLAVOR}>=1.9,<2.0
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/ruby-sassc/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo    10 Nov 2019 16:52:05 -0000      1.1.1.1
+++ distinfo    19 May 2021 20:25:35 -0000
@@ -1,2 +1,2 @@
-SHA256 (sassc-2.2.1.gem) = P+okCe5KiQ+MjrxPthY/4sWO9r57elhsZLD8kk+LdiU=
-SIZE (sassc-2.2.1.gem) = 302080
+SHA256 (sassc-2.4.0.gem) = TGCisKOzZoXIO4DVeJQBwvZ4wWUuMogxWhVR2BHZ+D4=
+SIZE (sassc-2.4.0.gem) = 304640
Index: patches/patch-ext_extconf_rb
===================================================================
RCS file: /cvs/ports/www/ruby-sassc/patches/patch-ext_extconf_rb,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-ext_extconf_rb
--- patches/patch-ext_extconf_rb        10 Nov 2019 16:52:05 -0000      1.1.1.1
+++ patches/patch-ext_extconf_rb        19 May 2021 20:27:22 -0000
@@ -3,17 +3,11 @@ $OpenBSD: patch-ext_extconf_rb,v 1.1.1.1
 Index: ext/extconf.rb
 --- ext/extconf.rb.orig
 +++ ext/extconf.rb
-@@ -20,12 +20,12 @@ if enable_config('static-stdlib', false)
- end
+@@ -29,7 +29,7 @@ end
+ # see: https://github.com/sass/sassc-ruby/issues/148
+ enable_lto_by_default = (Gem::Platform.local.os == "darwin" && 
!ENV['NIX_CC'].nil?)
  
- # Set to false when building binary gems
--if enable_config('march-tune-native', true)
-+if enable_config('march-tune-native', false)
-   $CFLAGS << ' -march=native -mtune=native'
-   $CXXFLAGS << ' -march=native -mtune=native'
- end
- 
--if enable_config('lto', true)
+-if enable_config('lto', enable_lto_by_default)
 +if enable_config('lto', false)
    $CFLAGS << ' -flto'
    $CXXFLAGS << ' -flto'
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/www/ruby-sassc/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   10 Nov 2019 16:52:05 -0000      1.1.1.1
+++ pkg/PLIST   19 May 2021 20:32:17 -0000
@@ -19,10 +19,9 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/sassc/er
 ${GEM_LIB}/gems/${DISTNAME}/lib/sassc/functions_handler.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/sassc/import_handler.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/sassc/importer.rb
-${GEM_LIB}/gems/${DISTNAME}/lib/sassc/libsass.so
+@so ${GEM_LIB}/gems/${DISTNAME}/lib/sassc/libsass.so
 ${GEM_LIB}/gems/${DISTNAME}/lib/sassc/native/
 ${GEM_LIB}/gems/${DISTNAME}/lib/sassc/native.rb
-${GEM_LIB}/gems/${DISTNAME}/lib/sassc/native/lib_c.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/sassc/native/native_context_api.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/sassc/native/native_functions_api.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/sassc/native/sass2scss_api.rb

Reply via email to