1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 USE_RUBY="ruby20 ruby21 ruby22 ruby23"
8 RUBY_FAKEGEM_TASK_DOC=""
9 RUBY_FAKEGEM_TASK_TEST=""
10 RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
12 inherit multilib ruby-fakegem
14 DESCRIPTION="a library for serial port (rs232) access in ruby"
15 HOMEPAGE="http://rubyforge.org/projects/ruby-serialport/"
19 KEYWORDS="amd64 ~ppc x86"
23 # Fix the miniterm script so that it might actually work, we'll
24 # install it as example.
25 sed -i -e 's:\.\./serialport.so:serialport:' test/miniterm.rb || die
28 each_ruby_configure() {
30 ${RUBY} extconf.rb || die
34 pushd ext/native &>/dev/null
38 # Avoids the need for a specific install phase
39 cp ext/native/*$(get_modname) lib/ || die "extension copy failed"
46 insinto /usr/share/doc/${PF}/examples
47 doins test/miniterm.rb