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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F3630158086 for ; Thu, 25 Nov 2021 13:03:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4812D2BC01E; Thu, 25 Nov 2021 13:03:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E89F2BC023 for ; Thu, 25 Nov 2021 13:03:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0131234304B for ; Thu, 25 Nov 2021 13:03:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3EF6E1DC for ; Thu, 25 Nov 2021 13:03:20 +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: <1637845395.397d61e34be73c241699879659c482940fc46a0b.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.4.0-r1.ebuild X-VCS-Directories: dev-ruby/sassc/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 397d61e34be73c241699879659c482940fc46a0b X-VCS-Branch: master Date: Thu, 25 Nov 2021 13:03:20 +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: ae391cd1-4c79-4735-9098-53b6a2e90ea8 X-Archives-Hash: d37e183b64e6b43db2aa4379f5ce62bf commit: 397d61e34be73c241699879659c482940fc46a0b Author: Hans de Graaff gentoo org> AuthorDate: Thu Nov 25 12:33:23 2021 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Thu Nov 25 13:03:15 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=397d61e3 dev-ruby/sassc: fix extension install Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/sassc/sassc-2.4.0-r1.ebuild | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/dev-ruby/sassc/sassc-2.4.0-r1.ebuild b/dev-ruby/sassc/sassc-2.4.0-r1.ebuild new file mode 100644 index 000000000000..dd06a18a6a77 --- /dev/null +++ b/dev-ruby/sassc/sassc-2.4.0-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="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 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +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__:"'${ESYSROOT}'/usr/'$(get_libdir)'":' \ + 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 +} + +each_ruby_install() { + each_fakegem_install + ruby_fakegem_extensions_installed +}