Version bump.
authorHans de Graaff <graaff@gentoo.org>
Sun, 25 Dec 2011 07:28:55 +0000 (07:28 +0000)
committerHans de Graaff <graaff@gentoo.org>
Sun, 25 Dec 2011 07:28:55 +0000 (07:28 +0000)
Package-Manager: portage-2.1.10.41/cvs/Linux x86_64

dev-ruby/ruby-inline/ChangeLog
dev-ruby/ruby-inline/files/ruby-inline-3.11.0-gentoo.patch [new file with mode: 0644]
dev-ruby/ruby-inline/ruby-inline-3.11.0.ebuild [new file with mode: 0644]
dev-ruby/ruby-mp3info/ChangeLog
dev-ruby/ruby-mp3info/ruby-mp3info-0.6.16.ebuild [new file with mode: 0644]
dev-ruby/rubytter/Manifest

index 94bef99a9ffd90c53ffc846df3faf9d203309da8..2661de061e76b1e44c46cb59a7876fd2633199b3 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-ruby/ruby-inline
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-inline/ChangeLog,v 1.44 2011/12/05 00:47:58 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-inline/ChangeLog,v 1.45 2011/12/25 07:24:08 graaff Exp $
+
+*ruby-inline-3.11.0 (25 Dec 2011)
+
+  25 Dec 2011; Hans de Graaff <graaff@gentoo.org> +ruby-inline-3.11.0.ebuild,
+  +files/ruby-inline-3.11.0-gentoo.patch:
+  Version bump.
 
   05 Dec 2011; Naohiro Aota <naota@gentoo.org> ruby-inline-3.9.0.ebuild:
   Add ~x86-fbsd.
diff --git a/dev-ruby/ruby-inline/files/ruby-inline-3.11.0-gentoo.patch b/dev-ruby/ruby-inline/files/ruby-inline-3.11.0-gentoo.patch
new file mode 100644 (file)
index 0000000..38e856b
--- /dev/null
@@ -0,0 +1,66 @@
+we have to patch the code so that it takes the RUBY_DESCRIPTION into
+consideration, to avoid loading Ruby-Enterprise (REE18) objects in MRI
+and vice-versa; we're a bit “greedier” since we will rebuild objects
+even when just switching versions, but it'll be better this way than
+being too conservatives.
+
+Index: ruby-inline-3.8.4/lib/inline.rb
+===================================================================
+--- ruby-inline-3.8.4.orig/lib/inline.rb
++++ ruby-inline-3.8.4/lib/inline.rb
+@@ -360,12 +360,17 @@ module Inline
+       ext.join "\n"
+     end
++    def implementation_checksum
++      @implementation_checksum ||=
++        (Digest::MD5.new << RUBY_DESCRIPTION).to_s[0,4]
++    end
++
+     def module_name
+       unless defined? @module_name then
+         module_name = @mod.name.gsub('::','__')
+         md5 = Digest::MD5.new
+         @sig.keys.sort_by { |x| x.to_s }.each { |m| md5 << m.to_s }
+-        @module_name = "Inline_#{module_name}_#{md5}"
++        @module_name = "Inline_#{module_name}_#{md5}_#{implementation_checksum}"
+       end
+       @module_name
+     end
+Index: ruby-inline-3.8.4/test/test_inline.rb
+===================================================================
+--- ruby-inline-3.8.4.orig/test/test_inline.rb
++++ ruby-inline-3.8.4/test/test_inline.rb
+@@ -404,6 +404,7 @@ static VALUE method_name_equals(VALUE se
+   end
+   def util_module_name(*signatures)
++    implementation = (Digest::MD5.new << RUBY_DESCRIPTION).to_s[0,4]
+     md5 = Digest::MD5.new
+     signatures.each do |signature|
+@@ -411,6 +412,6 @@ static VALUE method_name_equals(VALUE se
+       md5 << signature.to_s
+     end
+-    assert_equal("Inline_TestInline__TestC_#{md5}", @builder.module_name)
++    assert_equal("Inline_TestInline__TestC_#{md5}_#{implementation}", @builder.module_name)
+   end
+@@ -757,6 +758,7 @@ puts(s); return rb_str_new2(s)}"
+     @builder.c "VALUE my_method() { return Qnil; }"
+     windoze = "\n  __declspec(dllexport)" if Inline::WINDOZE
++    implementation = (Digest::MD5.new << RUBY_DESCRIPTION).to_s[0,4]
+     expected = <<-EXT
+ #include "ruby.h"
+@@ -773,7 +775,7 @@ static VALUE my_method(VALUE self) {
+ #ifdef __cplusplus
+ extern \"C\" {
+ #endif#{windoze}
+-  void Init_Inline_TestInline__TestC_eba5e5454322e22fe2310198ef14e43f() {
++  void Init_Inline_TestInline__TestC_eba5e5454322e22fe2310198ef14e43f_#{implementation}() {
+     VALUE c = rb_cObject;
+     c = rb_const_get(c, rb_intern("TestInline"));
+     c = rb_const_get(c, rb_intern("TestC"));
diff --git a/dev-ruby/ruby-inline/ruby-inline-3.11.0.ebuild b/dev-ruby/ruby-inline/ruby-inline-3.11.0.ebuild
new file mode 100644 (file)
index 0000000..44168bf
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-inline/ruby-inline-3.11.0.ebuild,v 1.1 2011/12/25 07:24:08 graaff Exp $
+
+EAPI=4
+
+USE_RUBY="ruby18 ree18 ruby19"
+
+RUBY_FAKEGEM_NAME="RubyInline"
+
+RUBY_FAKEGEM_TASK_DOC="docs"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.txt History.txt"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Allows to embed C/C++ in Ruby code"
+HOMEPAGE="http://www.zenspider.com/ZSS/Products/RubyInline/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+ruby_add_rdepend dev-ruby/zentest
+
+ruby_add_bdepend "
+       doc? (
+               dev-ruby/hoe
+               dev-ruby/hoe-seattlerb
+       )
+       test? (
+               dev-ruby/hoe
+               dev-ruby/hoe-seattlerb
+               virtual/ruby-test-unit
+       )"
+
+all_ruby_prepare() {
+       epatch "${FILESDIR}/${P}-gentoo.patch"
+
+       # Respect ruby's (and thus Gentoo's) LDFLAGS, and explicitly link
+       # against the ruby shared library to avoid confusion and potential
+       # crashes when later using the shared object.
+       epatch "${FILESDIR}/${PN}-3.8.4-ldflags.patch"
+
+       sed -i -e '/isolate/ s:^:#:' Rakefile || die
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       docinto examples
+       dodoc example.rb example2.rb demo/*.rb
+}
index f43f106d9a96c90bc602de1d3189b75ac0cf2236..fc61433b69fdfe02dab1d4b44215f249dcd08aea 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for dev-ruby/ruby-mp3info
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-mp3info/ChangeLog,v 1.20 2011/12/25 07:25:12 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-mp3info/ChangeLog,v 1.21 2011/12/25 07:28:55 graaff Exp $
+
+*ruby-mp3info-0.6.16 (25 Dec 2011)
+
+  25 Dec 2011; Hans de Graaff <graaff@gentoo.org> +ruby-mp3info-0.6.16.ebuild:
+  Version bump.
 
   25 Dec 2011; Hans de Graaff <graaff@gentoo.org> -ruby-mp3info-0.6.14.ebuild:
   Remove old version.
diff --git a/dev-ruby/ruby-mp3info/ruby-mp3info-0.6.16.ebuild b/dev-ruby/ruby-mp3info/ruby-mp3info-0.6.16.ebuild
new file mode 100644 (file)
index 0000000..be49c29
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-mp3info/ruby-mp3info-0.6.16.ebuild,v 1.1 2011/12/25 07:28:55 graaff Exp $
+
+EAPI=4
+# jruby, ruby19 fail tests.
+USE_RUBY="ruby18 ree18"
+
+RUBY_FAKEGEM_TASK_DOC="docs"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="History.txt README.txt"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A pure Ruby library for access to mp3 files (internal infos and tags)"
+HOMEPAGE="http://rubyforge.org/projects/ruby-mp3info/"
+SRC_URI="https://github.com/moumar/${PN}/tarball/v${PV} -> ${P}.tgz"
+RUBY_S="moumar-${PN}-*"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+DEPEND="${DEPEND} test? ( media-sound/id3v2 )"
+
+ruby_add_bdepend "doc? ( dev-ruby/hoe )"
+ruby_add_bdepend "test? ( dev-ruby/hoe virtual/ruby-test-unit )"
index 3abefc3a193f1ec9ca2c09e3b9ed962ca0a9b520..ab31db0dd42db7a74b300e2fcf49b9b4bec371af 100644 (file)
@@ -1,16 +1,14 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA256
 
-DIST rubytter-1.4.0.gem 14848 RMD160 abbec394aa003f38767bac4133f8dd79787719a3 SHA1 0b8d4cae926c01bd8305723dd70b553127b576a7 SHA256 006240beaa48d8ff69db326e5269a9f8573209a98aaec1cbeb72a419800fe9fa
 DIST rubytter-1.4.1.gem 14848 RMD160 7dfc83d9ec9223b158a5b4ddeb8f5a65a8d7073a SHA1 06b4254364b1944bb3f8bf8871e475e2c23758f9 SHA256 d740dd1f288fba2fb76aa8b241ced2868781e54eb2821fda005843290bbabf7f
-EBUILD rubytter-1.4.0.ebuild 683 RMD160 6d3b2dc1ee1f62c004308d9f8deec4e1a7fd8bac SHA1 24f86e2c3dd339115c66b52983b169806417fe1f SHA256 8f9a334dbc58a24c5a7ec8745e11ded8dd7e05d450fb40e4b67c3455cad403a7
 EBUILD rubytter-1.4.1.ebuild 776 RMD160 50c75b7eef9cea581b1d0acb2842524c59b2ac50 SHA1 74aacbc994d8f4bc6cbd16fc6532e97a9c316b41 SHA256 456d9d49dfda97a110bd07facacca7f38a928bb7454f4d9add7b3d92730af883
-MISC ChangeLog 565 RMD160 9671aea7cd734992fe4fa750af4fc0092e661e80 SHA1 6c0dfcb26e87e87668e3f08c3ad471c006b5d2c2 SHA256 2df3c0d3b03732945adae6eed58e65b33419e38ae1fc3b86b87527c28537ec14
+MISC ChangeLog 662 RMD160 4a4452237a33932cdac7a07b360ebf424e5a6695 SHA1 0b5683f44b6c05969d9714e135aa7a7ef6e336c8 SHA256 a089878ed9a56d4875cd21024311d8fcc3c657094db3766f371f584608f86dcf
 MISC metadata.xml 220 RMD160 7f7779deaa0be13dd0c2a42a0f368c1f427322db SHA1 f76b9fa76642a7c943c52c815428c15b4f844cfb SHA256 3876bf94339a6b2a36040fdf7eaeb1dcddff46924c02b8135f615c2d4eb1c743
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.17 (GNU/Linux)
 
-iF4EAREIAAYFAk7IxwgACgkQiIP6VqMIqNd4zQD/WUkN8tVQjPqfI/LF/+/wrpq2
-1DCZO6LL/G2nBrSsd8EA/0g5FHLdc4AhkyfiOPzNx5u5AvrL7fMFyV+wmylwaODT
-=naqq
+iF4EAREIAAYFAk720dcACgkQiIP6VqMIqNes8AEAkqJYwyFy27+0C0RXQBUgCfuz
+GRMbJLAw5Kh6xTM8d/IA/1RSUz0qmakncbYgwBD5KzYE4tvK/LRep0QFniHCMc78
+=ndSB
 -----END PGP SIGNATURE-----