Skip to content

Commit

Permalink
Add rubygem-sassc22 2.2.1 (copied from rubygem-sassc)
Browse files Browse the repository at this point in the history
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
		sass/sassc-ruby#201
		sass/sassc-ruby#199


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@535562 35697150-7ecd-e111-bb59-0022644237b5
  • Loading branch information
sunpoet committed May 17, 2020
1 parent ff47299 commit 9b1028d
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions textproc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions textproc/rubygem-sassc22/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $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 <bsd.port.mk>
3 changes: 3 additions & 0 deletions textproc/rubygem-sassc22/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1569591598
SHA256 (rubygem/sassc-2.2.1.gem) = 3fea2409ee4a890f8c8ebc4fb6163fe2c58ef6be7b7a586c64b0fc924f8b7625
SIZE (rubygem/sassc-2.2.1.gem) = 302080
21 changes: 21 additions & 0 deletions textproc/rubygem-sassc22/files/patch-ext-extconf.rb
Original file line number Diff line number Diff line change
@@ -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]+)/, '')
4 changes: 4 additions & 0 deletions textproc/rubygem-sassc22/pkg-descr
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9b1028d

Please sign in to comment.