diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-10-06 07:16:20 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-10-06 07:16:20 +0200 |
commit | e96893fb08966c3f78eb972596ed584845f2bd91 (patch) | |
tree | e5976fb411a58f63df431efeddfb3b351ee890c5 /dev-ruby/ruby-xslt | |
parent | dev-ruby/pathutil: add 0.16.0 (diff) | |
download | gentoo-e96893fb08966c3f78eb972596ed584845f2bd91.tar.gz gentoo-e96893fb08966c3f78eb972596ed584845f2bd91.tar.bz2 gentoo-e96893fb08966c3f78eb972596ed584845f2bd91.zip |
dev-ruby/ruby-xslt: add 0.9.10
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/ruby-xslt')
-rw-r--r-- | dev-ruby/ruby-xslt/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/ruby-xslt/ruby-xslt-0.9.10.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/ruby-xslt/Manifest b/dev-ruby/ruby-xslt/Manifest index 627bb7d5690e..ed31c3f4f351 100644 --- a/dev-ruby/ruby-xslt/Manifest +++ b/dev-ruby/ruby-xslt/Manifest @@ -1 +1,2 @@ +DIST ruby-xslt-0.9.10.gem 35328 SHA256 a6fa14574f8f9cec4ee7a34085545b4f79151d10c0c119f2d2bb62d1fa8ff369 SHA512 b196a517b19c6cb91ed6f4543ecfc6b58532e66f460029d2618e792cfe4078342fcb4428642328cbe6d97d1d942a6025ecff617578fc3abe2b0e414bf61ca1c4 WHIRLPOOL 2ed19e0c3635b214fe4e488e3521128dc35811c6be9d3cb94117fbfa16704f6219c30f6e455be953651bde8e68d5c0a38913429d11533b12796c73d3515cd556 DIST ruby-xslt-0.9.9.gem 34816 SHA256 7dc7565e90719b5971ef9620f64180848a5d9e983e9abc74d76f7cf1b01a2f72 SHA512 8c23bff3406ae2712663f81fb46525df4938aee5bf85f5497ff33108e4fb0f443ca3389dedbbb9eea233e86e51c24938f699eae2bc62cbf291c04a56a9af36ff WHIRLPOOL a01a8a1cfc94de4455fdebd115eb83d5953977a0d57ac50cbdf6d8a874413744aa1a77fe31cfcab628a9d4cf7bdf45423156bb3ea65e904d598762f9ebd23537 diff --git a/dev-ruby/ruby-xslt/ruby-xslt-0.9.10.ebuild b/dev-ruby/ruby-xslt/ruby-xslt-0.9.10.ebuild new file mode 100644 index 000000000000..57bd5c84d7e5 --- /dev/null +++ b/dev-ruby/ruby-xslt/ruby-xslt-0.9.10.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_EXTRADOC="ChangeLog.rdoc AUTHORS.rdoc README.rdoc" + +inherit multilib ruby-fakegem + +DESCRIPTION="A Ruby class for processing XSLT" +HOMEPAGE="https://github.com/glejeune/ruby-xslt" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="" + +DEPEND+=" >=dev-libs/libxslt-1.1.12" +RDEPEND+=" >=dev-libs/libxslt-1.1.12" + +all_ruby_prepare() { + # Remove forced -g compiler flag. + sed -i -e 's/-g //' ext/xslt_lib/extconf.rb || die + + # One test fails but we have installed this code already for a long + # time so this probably isn't a regression. No upstream bug tracker + # to report the problem :-( + sed -i -e '/test_transformation_error/,/^ end/ s:^:#:' test/test.rb || die +} + +each_ruby_configure() { + ${RUBY} -C ext/xslt_lib extconf.rb || die +} + +each_ruby_compile() { + emake -C ext/xslt_lib V=1 + cp ext/xslt_lib/xslt_lib$(get_modname) lib/xml/ || die +} + +each_ruby_test() { + ${RUBY} -I../lib:lib -Ctest test.rb || die +} |