summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-02-09 18:12:36 +0000
committerHans de Graaff <graaff@gentoo.org>2010-02-09 18:12:36 +0000
commit94dbf37013e1186ea8795e9b17145a8c4668decb (patch)
treee84cd9b8a3bbfc63353aff525753d1b0aa4906fb /dev-ruby/oniguruma
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-94dbf37013e1186ea8795e9b17145a8c4668decb.tar.gz
gentoo-2-94dbf37013e1186ea8795e9b17145a8c4668decb.tar.bz2
gentoo-2-94dbf37013e1186ea8795e9b17145a8c4668decb.zip
Convert to ruby-fakegem.
(Portage version: 2.1.7.16/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/oniguruma')
-rw-r--r--dev-ruby/oniguruma/ChangeLog8
-rw-r--r--dev-ruby/oniguruma/files/oniguruma-1.1.0-unmonkey.patch34
-rw-r--r--dev-ruby/oniguruma/oniguruma-1.1.0-r1.ebuild44
3 files changed, 85 insertions, 1 deletions
diff --git a/dev-ruby/oniguruma/ChangeLog b/dev-ruby/oniguruma/ChangeLog
index 538b03490fa8..21c1c053472d 100644
--- a/dev-ruby/oniguruma/ChangeLog
+++ b/dev-ruby/oniguruma/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/oniguruma
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oniguruma/ChangeLog,v 1.3 2010/01/04 11:41:13 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oniguruma/ChangeLog,v 1.4 2010/02/09 18:12:35 graaff Exp $
+
+*oniguruma-1.1.0-r1 (09 Feb 2010)
+
+ 09 Feb 2010; Hans de Graaff <graaff@gentoo.org>
+ +oniguruma-1.1.0-r1.ebuild, +files/oniguruma-1.1.0-unmonkey.patch:
+ Convert to ruby-fakegem.
04 Jan 2010; Christian Faulhammer <fauli@gentoo.org>
oniguruma-1.1.0.ebuild:
diff --git a/dev-ruby/oniguruma/files/oniguruma-1.1.0-unmonkey.patch b/dev-ruby/oniguruma/files/oniguruma-1.1.0-unmonkey.patch
new file mode 100644
index 000000000000..45340adc0071
--- /dev/null
+++ b/dev-ruby/oniguruma/files/oniguruma-1.1.0-unmonkey.patch
@@ -0,0 +1,34 @@
+--- Rakefile.~1~ 2010-02-09 18:58:29.879967846 +0100
++++ Rakefile 2010-02-09 19:00:19.247218285 +0100
+@@ -1,23 +1,6 @@
+ require 'rubygems'
+ require 'hoe'
+
+-class Hoe
+- # Dirty hack to eliminate Hoe from gem dependencies
+- def extra_deps
+- @extra_deps.delete_if{ |x| x.first == 'hoe' }
+- end
+-
+- # Dirty hack to package only the required files per platform
+- def spec= s
+- if ENV['PLATFORM'] =~ /win32/
+- s.files = s.files.reject! {|f| f =~ /extconf\.rb/}
+- else
+- s.files = s.files.reject! {|f| f =~ /win\//}
+- end
+- @spec = s
+- end
+-end
+-
+ version = /^== *(\d+\.\d+\.\d+)/.match( File.read( 'History.txt' ) )[1]
+
+ Hoe.new('oniguruma', version) do |p|
+@@ -34,7 +17,6 @@
+ else
+ p.spec_extras[:extensions] = ["ext/extconf.rb"]
+ end
+- p.rdoc_pattern = /^(lib|bin|ext)|txt$/
+ p.changes = p.paragraphs_of('History.txt', 0).join("\n\n")
+ end
+
diff --git a/dev-ruby/oniguruma/oniguruma-1.1.0-r1.ebuild b/dev-ruby/oniguruma/oniguruma-1.1.0-r1.ebuild
new file mode 100644
index 000000000000..66255983764a
--- /dev/null
+++ b/dev-ruby/oniguruma/oniguruma-1.1.0-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oniguruma/oniguruma-1.1.0-r1.ebuild,v 1.1 2010/02/09 18:12:35 graaff Exp $
+
+EAPI="2"
+USE_RUBY="ruby18"
+
+RUBY_FAKEGEM_TASK_DOC="docs"
+
+RUBY_FAKEGEM_EXTRADOC="History.txt README.txt Syntax.txt"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby bindings to the Oniguruma"
+HOMEPAGE="http://oniguruma.rubyforge.org/"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE=""
+
+DEPEND="dev-libs/oniguruma"
+
+RUBY_PATCHES=( "${P}-unmonkey.patch" )
+
+ruby_add_bdepend doc dev-ruby/hoe
+ruby_add_bdepend test "dev-ruby/hoe virtual/ruby-test-unit"
+
+each_ruby_configure() {
+ pushd ext >& /dev/null
+ ${RUBY} extconf.rb
+ popd >& /dev/null
+}
+
+each_ruby_compile() {
+ pushd ext >& /dev/null
+ emake || die "Compilation failed."
+ popd >& /dev/null
+}
+
+each_ruby_install() {
+ mv ext/oregexp.so lib || die "Unable to move oregexp.so"
+ each_fakegem_install
+}