diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-06-11 19:18:06 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-06-11 19:18:06 +0200 |
commit | 402a4305cf5eb7f6fdddb0aa63bbba94932b4524 (patch) | |
tree | e383dfb9e9ca588f2c771c3183bfafd2c3ad1177 /dev-ruby/posix-spawn/posix-spawn-0.3.13-r1.ebuild | |
parent | media-libs/soxr: stable 0.1.3-r1 for sparc (diff) | |
download | gentoo-402a4305cf5eb7f6fdddb0aa63bbba94932b4524.tar.gz gentoo-402a4305cf5eb7f6fdddb0aa63bbba94932b4524.tar.bz2 gentoo-402a4305cf5eb7f6fdddb0aa63bbba94932b4524.zip |
dev-ruby/posix-spawn: fix compilation on x86
Closes: https://bugs.gentoo.org/657806
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-ruby/posix-spawn/posix-spawn-0.3.13-r1.ebuild')
-rw-r--r-- | dev-ruby/posix-spawn/posix-spawn-0.3.13-r1.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/posix-spawn/posix-spawn-0.3.13-r1.ebuild b/dev-ruby/posix-spawn/posix-spawn-0.3.13-r1.ebuild new file mode 100644 index 000000000000..e9cd83e0d10a --- /dev/null +++ b/dev-ruby/posix-spawn/posix-spawn-0.3.13-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.md TODO HACKING" + +inherit ruby-fakegem + +DESCRIPTION="Library that implements a subset of the Ruby 1.9 Process::spawn" +HOMEPAGE="https://github.com/rtomayko/posix-spawn/" + +KEYWORDS="~amd64" + +LICENSE="MIT LGPL-2.1" +SLOT="0" +IUSE="test" + +all_ruby_prepare() { + eapply "${FILESDIR}/${P}-x86.patch" +} + +each_ruby_configure() { + ${RUBY} -Cext extconf.rb || die +} + +each_ruby_compile() { + emake V=1 -Cext + cp ext/*$(get_modname) lib/ || die +} + +each_ruby_test() { + ${RUBY} -Ilib:.:test -e 'Dir["test/test_*.rb"].each {|f| require f}' || die +} |