diff options
Diffstat (limited to 'dev-ruby/sassc')
-rw-r--r-- | dev-ruby/sassc/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/sassc/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ruby/sassc/sassc-2.0.1-r1.ebuild | 56 |
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-ruby/sassc/Manifest b/dev-ruby/sassc/Manifest new file mode 100644 index 000000000000..2a1bb4f6c9b0 --- /dev/null +++ b/dev-ruby/sassc/Manifest @@ -0,0 +1,3 @@ +DIST sassc-2.0.1.gem 357888 BLAKE2B 670a622edc065abd7124a413bff3e32e524703cd3343ae7ffd1439af075e04d513ee125ddbd9ff81ffd7eadbb2dd935a83dc71334252b681fb478da9aad06181 SHA512 cece2741e316eeb4684a5650627bb2a9f161bfd99a3c93c2bf8b7d40f47ff064ee837831b1f9ad77d9e321bbd9874301762c9f0519b2b42658cbea6fd7240fcd +EBUILD sassc-2.0.1-r1.ebuild 1230 BLAKE2B c89dd78b25250f86705c754b8dbed9b9310a2ece0f324dce102dd5cdec3c5c4da2cecf8f9e5f9a0e1332f5e672b029a325889a436becff468094f6e88467e70e SHA512 e97918a8e2828850d4b8d155615ac88a9a1cdb849683828b14f07a446a25d7414a5ea32ce1071a1591d044c3aa8101f9bb5e7033fcafd3b802eb7d21282065d1 +MISC metadata.xml 341 BLAKE2B a87edcb982765d42f3b800c9cc82e1552e92c758454449fe45da64ae131526134e6f0c3e828547ddf4e63e464563589b67de46c11539464c78b4de4291be6b6b SHA512 4cb9faf011e514021d70371749be7c56529e0bec0b880815cba83fcd66fd9e5b1f44932b3d498a7cbe26238659d590bb5a4e3f98e04553b8299299aaec71c70d diff --git a/dev-ruby/sassc/metadata.xml b/dev-ruby/sassc/metadata.xml new file mode 100644 index 000000000000..7e5ec7336939 --- /dev/null +++ b/dev-ruby/sassc/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">sass/sassc-ruby</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/sassc/sassc-2.0.1-r1.ebuild b/dev-ruby/sassc/sassc-2.0.1-r1.ebuild new file mode 100644 index 000000000000..5ed366f5d0cb --- /dev/null +++ b/dev-ruby/sassc/sassc-2.0.1-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby24 ruby25 ruby26" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="sassc.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Use libsass with Ruby" +HOMEPAGE="https://github.com/sass/sassc-ruby" +LICENSE="MIT" + +KEYWORDS="~amd64" +SLOT="2" +IUSE="" + +RDEPEND+=">=dev-libs/libsass-3.5.5" + +ruby_add_rdepend " + >=dev-ruby/ffi-1.9.6 + dev-ruby/rake +" + +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 '/spec =/,/ffi_lib/ s:^:#:' \ + -e '/ffi_lib/a ffi_lib "/usr/lib64/libsass.so"' \ + 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 + + sed -e 's/git ls-files -z/find . -print0/' \ + -e '/gem_dir/,/^ end/ s:^:#:' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + ${RUBY} -Ilib:.:test -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die +} |