public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/sassc/
Date: Tue,  9 Mar 2021 09:01:22 +0000 (UTC)	[thread overview]
Message-ID: <1615280430.e0ce2477f053db0c4d0dd9f73156a45702979b6a.graaff@gentoo> (raw)

commit:     e0ce2477f053db0c4d0dd9f73156a45702979b6a
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  9 09:00:09 2021 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Mar  9 09:00:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0ce2477

dev-ruby/sassc: fix library loading on prefix

Closes: https://bugs.gentoo.org/768042
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/sassc/sassc-2.2.1-r1.ebuild | 48 ++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/dev-ruby/sassc/sassc-2.2.1-r1.ebuild b/dev-ruby/sassc/sassc-2.2.1-r1.ebuild
new file mode 100644
index 00000000000..8dd3c00b8f4
--- /dev/null
+++ b/dev-ruby/sassc/sassc-2.2.1-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_DOC="none"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Use libsass with Ruby"
+HOMEPAGE="https://github.com/sass/sassc-ruby"
+LICENSE="MIT"
+
+KEYWORDS="~amd64 ~arm64"
+SLOT="2"
+IUSE=""
+
+RDEPEND+=">=dev-libs/libsass-3.6.1"
+
+ruby_add_rdepend "
+	>=dev-ruby/ffi-1.9.6
+"
+
+ruby_add_bdepend "test? (
+	dev-ruby/test_construct
+	dev-ruby/minitest-around
+)"
+
+all_ruby_prepare() {
+	# Use unbundled libsass
+	rm -rf ext || die
+
+	sed -i -e '/ffi_lib/ s:__dir__:"'${EROOT}'/usr/lib64":' \
+		lib/sassc/native.rb || die
+
+	# Avoid version-specific test so newer libsass versions can be used.
+	sed -i -e '/test_it_reports_the_libsass_version/,/end/ s:^:#:' test/native_test.rb || die
+
+	sed -i -e '/pry/ s:^:#:' test/test_helper.rb || die
+}
+
+each_ruby_test() {
+	${RUBY} -Ilib:.:test -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die
+}


             reply	other threads:[~2021-03-09  9:01 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-09  9:01 Hans de Graaff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-06  6:42 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/sassc/ Hans de Graaff
2023-08-23  4:33 Hans de Graaff
2023-04-07 18:25 Sam James
2023-04-01 23:19 Sam James
2022-12-18  9:27 Sam James
2022-12-18  9:27 Sam James
2022-12-18  9:18 Sam James
2022-09-25  8:43 Hans de Graaff
2022-06-19  8:24 Agostino Sarubbo
2022-06-19  8:15 Agostino Sarubbo
2022-06-19  8:14 Agostino Sarubbo
2022-06-17  8:14 Arthur Zamarin
2022-03-19 12:00 Hans de Graaff
2022-03-19 12:00 Hans de Graaff
2021-11-25 13:03 Hans de Graaff
2021-11-08  2:51 Yixun Lan
2021-11-01 15:46 Sam James
2021-10-10 23:45 Sam James
2021-10-10 21:48 Sam James
2021-10-10 20:43 Sam James
2021-10-10  0:09 Sam James
2021-10-06  5:33 Hans de Graaff
2021-06-05  5:49 Hans de Graaff
2021-03-09 13:00 Hans de Graaff
2021-03-09 12:57 Hans de Graaff
2020-09-08  5:48 Hans de Graaff
2020-07-27  2:09 Sam James
2020-07-12  6:22 Hans de Graaff
2019-10-12  8:58 Hans de Graaff
2019-05-30 18:05 Hans de Graaff
2019-05-26  5:41 Hans de Graaff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1615280430.e0ce2477f053db0c4d0dd9f73156a45702979b6a.graaff@gentoo \
    --to=graaff@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox