From 9b1028dc40596612f797858c7936a684a7304798 Mon Sep 17 00:00:00 2001 From: sunpoet Date: Sun, 17 May 2020 18:07:12 +0000 Subject: [PATCH] Add rubygem-sassc22 2.2.1 (copied from rubygem-sassc) This is a workaround for gitlab-ce. It should be fixed after rubygem-sassc updating libsass from 3.6.3 to 3.6.4. Reference: https://gitlab.com/gitlab-org/gitlab/-/issues/216740 https://github.com/sass/sassc-ruby/issues/201 https://github.com/sass/sassc-ruby/pull/199 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@535562 35697150-7ecd-e111-bb59-0022644237b5 --- textproc/Makefile | 1 + textproc/rubygem-sassc22/Makefile | 24 +++++++++++++++++++ textproc/rubygem-sassc22/distinfo | 3 +++ .../files/patch-ext-extconf.rb | 21 ++++++++++++++++ textproc/rubygem-sassc22/pkg-descr | 4 ++++ 5 files changed, 53 insertions(+) create mode 100644 textproc/rubygem-sassc22/Makefile create mode 100644 textproc/rubygem-sassc22/distinfo create mode 100644 textproc/rubygem-sassc22/files/patch-ext-extconf.rb create mode 100644 textproc/rubygem-sassc22/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index 126a1b929a69d..0c7bd6be4b9f1 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1619,6 +1619,7 @@ SUBDIR += rubygem-sassc-rails-rails50 SUBDIR += rubygem-sassc-rails-rails52 SUBDIR += rubygem-sassc-rails-rails60 + SUBDIR += rubygem-sassc22 SUBDIR += rubygem-sax-machine SUBDIR += rubygem-scss_lint SUBDIR += rubygem-shell2html diff --git a/textproc/rubygem-sassc22/Makefile b/textproc/rubygem-sassc22/Makefile new file mode 100644 index 0000000000000..bbe122595f622 --- /dev/null +++ b/textproc/rubygem-sassc22/Makefile @@ -0,0 +1,24 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= sassc +PORTVERSION= 2.2.1 +CATEGORIES= textproc rubygems +MASTER_SITES= RG +PKGNAMESUFFIX= 22 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Use libsass with Ruby + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= rubygem-ffi>=1.9<2:devel/rubygem-ffi + +USES= gem gmake +USE_RUBY= yes + +# Workaround for https://gitlab.com/gitlab-org/gitlab/-/issues/216740 +PORTSCOUT= limit:^2\.2\. + +.include diff --git a/textproc/rubygem-sassc22/distinfo b/textproc/rubygem-sassc22/distinfo new file mode 100644 index 0000000000000..89cb1dea33222 --- /dev/null +++ b/textproc/rubygem-sassc22/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1569591598 +SHA256 (rubygem/sassc-2.2.1.gem) = 3fea2409ee4a890f8c8ebc4fb6163fe2c58ef6be7b7a586c64b0fc924f8b7625 +SIZE (rubygem/sassc-2.2.1.gem) = 302080 diff --git a/textproc/rubygem-sassc22/files/patch-ext-extconf.rb b/textproc/rubygem-sassc22/files/patch-ext-extconf.rb new file mode 100644 index 0000000000000..f930167384741 --- /dev/null +++ b/textproc/rubygem-sassc22/files/patch-ext-extconf.rb @@ -0,0 +1,21 @@ +--- ext/extconf.rb.orig 2019-10-20 13:40:05 UTC ++++ ext/extconf.rb +@@ -19,18 +19,6 @@ if enable_config('static-stdlib', false) + $LDFLAGS << ' -static-libgcc -static-libstdc++' + end + +-# Set to false when building binary gems +-if enable_config('march-tune-native', true) +- $CFLAGS << ' -march=native -mtune=native' +- $CXXFLAGS << ' -march=native -mtune=native' +-end +- +-if enable_config('lto', true) +- $CFLAGS << ' -flto' +- $CXXFLAGS << ' -flto' +- $LDFLAGS << ' -flto' +-end +- + # Disable noisy compilation warnings. + $warnflags = '' + $CFLAGS.gsub!(/[\s+](-ansi|-std=[^\s]+)/, '') diff --git a/textproc/rubygem-sassc22/pkg-descr b/textproc/rubygem-sassc22/pkg-descr new file mode 100644 index 0000000000000..a7ca35d174a8b --- /dev/null +++ b/textproc/rubygem-sassc22/pkg-descr @@ -0,0 +1,4 @@ +SassC combines the speed of libsass, the Sass C implementation, with the ease of +use of the original Ruby Sass library. + +WWW: https://github.com/sass/sassc-ruby