diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-24 00:02:35 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-24 00:02:35 +0000 |
commit | b4864f4f4ab8e5f705e5e70ae0501210deac6dbe (patch) | |
tree | 22f5fe536fa2b5ffdf7e504c19f30564e934c9aa /dev-ruby/ruby-serialport | |
parent | Define each_ruby_test in ruby-fakegem only if a test task is defined. (diff) | |
download | historical-b4864f4f4ab8e5f705e5e70ae0501210deac6dbe.tar.gz historical-b4864f4f4ab8e5f705e5e70ae0501210deac6dbe.tar.bz2 historical-b4864f4f4ab8e5f705e5e70ae0501210deac6dbe.zip |
Cleanup, set the fakegem name, so that the spec file is generated correctly, also add ruby19 support and install also the .rb glue file.
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/ruby-serialport')
-rw-r--r-- | dev-ruby/ruby-serialport/ChangeLog | 7 | ||||
-rw-r--r-- | dev-ruby/ruby-serialport/Manifest | 12 | ||||
-rw-r--r-- | dev-ruby/ruby-serialport/ruby-serialport-1.0.1.ebuild | 32 |
3 files changed, 35 insertions, 16 deletions
diff --git a/dev-ruby/ruby-serialport/ChangeLog b/dev-ruby/ruby-serialport/ChangeLog index 5e765863c627..ed346a3cbe8e 100644 --- a/dev-ruby/ruby-serialport/ChangeLog +++ b/dev-ruby/ruby-serialport/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-ruby/ruby-serialport # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-serialport/ChangeLog,v 1.10 2010/01/23 07:36:45 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-serialport/ChangeLog,v 1.11 2010/01/24 00:02:35 flameeyes Exp $ + + 24 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> + ruby-serialport-1.0.1.ebuild: + Cleanup, set the fakegem name, so that the spec file is generated + correctly, also add ruby19 support and install also the .rb glue file. *ruby-serialport-1.0.1 (23 Jan 2010) diff --git a/dev-ruby/ruby-serialport/Manifest b/dev-ruby/ruby-serialport/Manifest index bf5eed9001df..765ea05cda6b 100644 --- a/dev-ruby/ruby-serialport/Manifest +++ b/dev-ruby/ruby-serialport/Manifest @@ -6,13 +6,13 @@ DIST ruby-serialport-0.7.0.tar.gz 17722 RMD160 8243d709bbbfac37e4876090cdb7345ab DIST serialport-1.0.1.gem 22528 RMD160 d665387e4effdcd9aef387b31179addd59774eaf SHA1 9241ead8729a06ffacad6a1ab62b644335fba140 SHA256 9a7fb4d209b3d6fc025e743efb6274cd22c77a37dd6d230010817b56629f871b EBUILD ruby-serialport-0.6.ebuild 705 RMD160 b29e13d24a69bad8ee13b53a5cd72834e516bb81 SHA1 9d7166d9d72745ba18de83f656eec768a9ba506b SHA256 efa7fdfab92d8a276fe6f344f74e2d2e81f0bcc4b6271afde124b8d5159652d9 EBUILD ruby-serialport-0.7.0.ebuild 711 RMD160 398efdcd2f4abe8a65612b2a9db356519bc1a668 SHA1 6573f429f3e754abfeeb2fd0c9c66d6924d52a61 SHA256 8c3856b38b591cb350fa7d0c57d7335992cdc7461b98e57fac63146426d5da73 -EBUILD ruby-serialport-1.0.1.ebuild 840 RMD160 083d0081121c75bc9091279ccc034ab2254a8182 SHA1 d37139f059e72fae288a67e59050bf305d1c9211 SHA256 019a1a6ceb559602d7c7bc343f993d6c3d29d91f5e28b1510b6022d288fff61a -MISC ChangeLog 1429 RMD160 1f033fe84a856e8cfbee1a48412dfca8c38e89f1 SHA1 1fc055172cc07611bf7afcf87a8718f7f1860f61 SHA256 3fb4d2daff88cf03e0647a8dce66208a5e13344c525456efc1a2128971a83026 +EBUILD ruby-serialport-1.0.1.ebuild 1198 RMD160 bd1cdf26399910c5e0640fc4a7ad00a8aafb9e98 SHA1 43135b6e7cf5633a590e20668af191557b92d9c4 SHA256 960a8c1f59cbbd946d0d1ecd3c9db05fa5e23abcbdd6f94fb9de6d5f902145e9 +MISC ChangeLog 1662 RMD160 e840ac848eb2655446733222c01e5c0cd3216baa SHA1 fb67ce8dccc0c4e03fe02a254033f9157f3b2c6b SHA256 3430b6a22071c01ba69d75becde25987d3a12cf7106522febbf88a9c7130a0f5 MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.11 (GNU/Linux) +Version: GnuPG v2.0.14 (GNU/Linux) -iEYEARECAAYFAktapxkACgkQeM7EJeUH71Pv6wCfS8B8s5D/28VGWmkfV4PvoWoR -fQ0An3amMzRg7qLHYXfpi0Cfsr5lAp9s -=XXXu +iEYEARECAAYFAktbjhAACgkQAiZjviIA2XgbtACfcXQFxhcUveS9zbjOFwaOj2o9 +zp8AmwQKzAUP+3rdMf+oaTD/LQ82Gxn+ +=wyKj -----END PGP SIGNATURE----- diff --git a/dev-ruby/ruby-serialport/ruby-serialport-1.0.1.ebuild b/dev-ruby/ruby-serialport/ruby-serialport-1.0.1.ebuild index d53622d2bb4c..f62aecd17584 100644 --- a/dev-ruby/ruby-serialport/ruby-serialport-1.0.1.ebuild +++ b/dev-ruby/ruby-serialport/ruby-serialport-1.0.1.ebuild @@ -1,38 +1,52 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-serialport/ruby-serialport-1.0.1.ebuild,v 1.1 2010/01/23 07:36:45 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-serialport/ruby-serialport-1.0.1.ebuild,v 1.2 2010/01/24 00:02:35 flameeyes Exp $ EAPI="2" -USE_RUBY="ruby18" + +# jruby → uses native library +USE_RUBY="ruby18 ruby19" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_TASK_TEST="" RUBY_FAKEGEM_EXTRADOC="CHANGELOG README" +RUBY_FAKEGEM_NAME=${PN/ruby-/} + inherit ruby-fakegem -MY_P=${P/ruby-/} DESCRIPTION="a library for serial port (rs232) access in ruby" HOMEPAGE="http://rubyforge.org/projects/ruby-serialport/" -SRC_URI="mirror://rubygems/${MY_P}.gem" + LICENSE="GPL-2" SLOT="0" KEYWORDS="~ia64 ~ppc ~x86" IUSE="" +all_ruby_prepare() { + # Fix the miniterm script so that it might actually work, we'll + # install it as example. + sed -i -e 's:\.\./serialport.so:serialport:' test/miniterm.rb || die +} + each_ruby_configure() { cd ext/native ${RUBY} extconf.rb || die } each_ruby_compile() { - cd ext/native + pushd ext/native &>/dev/null emake || die + popd &>/dev/null + + # Avoids the need for a specific install phase + cp ext/native/*.so lib/ || die "extension copy failed" } -each_ruby_install() { - ruby_fakegem_genspec +all_ruby_install() { + all_fakegem_install - cd ext/native - emake DESTDIR="${D}" install || die + docinto examples + # don't compress it + doins test/miniterm.rb || die } |