From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 137911382C5 for ; Tue, 9 Mar 2021 09:01:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 446AEE08BF; Tue, 9 Mar 2021 09:01:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2C213E08BF for ; Tue, 9 Mar 2021 09:01:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3C84335D4C for ; Tue, 9 Mar 2021 09:01:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1FEAE579 for ; Tue, 9 Mar 2021 09:01:22 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1615280430.e0ce2477f053db0c4d0dd9f73156a45702979b6a.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/sassc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/sassc/sassc-2.2.1-r1.ebuild X-VCS-Directories: dev-ruby/sassc/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: e0ce2477f053db0c4d0dd9f73156a45702979b6a X-VCS-Branch: master Date: Tue, 9 Mar 2021 09:01:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ef8482e1-966b-4272-8b54-10e05a89bbec X-Archives-Hash: d7564d4108001fc59aa5453f083d70cc commit: e0ce2477f053db0c4d0dd9f73156a45702979b6a Author: Hans de Graaff gentoo org> AuthorDate: Tue Mar 9 09:00:09 2021 +0000 Commit: Hans de Graaff gentoo 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 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 +}