summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-15 14:05:50 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-15 14:05:50 +0000
commit0c8002613809653ec60079c72fbba1fd7d7eaaad (patch)
treefb405010e1185ffd8d7d9e4828c75a38cd22affd /dev-ruby
parentInitial import of rexical, needed for nokogiri after patching. (diff)
downloadhistorical-0c8002613809653ec60079c72fbba1fd7d7eaaad.tar.gz
historical-0c8002613809653ec60079c72fbba1fd7d7eaaad.tar.bz2
historical-0c8002613809653ec60079c72fbba1fd7d7eaaad.zip
Add a new revision of nokogiri that works with Ruby 1.9, but which depends on newly-added rexical.
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/nokogiri/ChangeLog9
-rw-r--r--dev-ruby/nokogiri/files/nokogiri-1.4.1-ruby19.patch14
-rw-r--r--dev-ruby/nokogiri/nokogiri-1.4.1-r1.ebuild36
3 files changed, 58 insertions, 1 deletions
diff --git a/dev-ruby/nokogiri/ChangeLog b/dev-ruby/nokogiri/ChangeLog
index fce3f460f7d8..ea28e5647ad5 100644
--- a/dev-ruby/nokogiri/ChangeLog
+++ b/dev-ruby/nokogiri/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-ruby/nokogiri
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v 1.20 2010/01/14 16:15:19 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v 1.21 2010/01/15 14:05:49 flameeyes Exp $
+
+*nokogiri-1.4.1-r1 (15 Jan 2010)
+
+ 15 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ +nokogiri-1.4.1-r1.ebuild, +files/nokogiri-1.4.1-ruby19.patch:
+ Add a new revision of nokogiri that works with Ruby 1.9, but which depends
+ on newly-added rexical.
14 Jan 2010; Brent Baude <ranger@gentoo.org> nokogiri-1.4.1.ebuild:
Marking nokogiri-1.4.1 ~ppc for bug 297822
diff --git a/dev-ruby/nokogiri/files/nokogiri-1.4.1-ruby19.patch b/dev-ruby/nokogiri/files/nokogiri-1.4.1-ruby19.patch
new file mode 100644
index 000000000000..f2af1eeceb65
--- /dev/null
+++ b/dev-ruby/nokogiri/files/nokogiri-1.4.1-ruby19.patch
@@ -0,0 +1,14 @@
+Index: nokogiri-1.4.1/test/helper.rb
+===================================================================
+--- nokogiri-1.4.1.orig/test/helper.rb
++++ nokogiri-1.4.1/test/helper.rb
+@@ -52,6 +52,9 @@ module Nokogiri
+ assert_equal(0, len % amount, message)
+ end
+ end
++
++ def default_test
++ end
+ end
+
+ module SAX
diff --git a/dev-ruby/nokogiri/nokogiri-1.4.1-r1.ebuild b/dev-ruby/nokogiri/nokogiri-1.4.1-r1.ebuild
new file mode 100644
index 000000000000..2d7926d58a9a
--- /dev/null
+++ b/dev-ruby/nokogiri/nokogiri-1.4.1-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.4.1-r1.ebuild,v 1.1 2010/01/15 14:05:49 flameeyes Exp $
+
+EAPI=2
+
+# jruby → native extension, no Java version available
+USE_RUBY="ruby18 ruby19"
+
+RUBY_FAKEGEM_TASK_DOC="docs"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc CHANGELOG.ja.rdoc README.rdoc README.ja.rdoc"
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser."
+HOMEPAGE="http://nokogiri.rubyforge.org/"
+LICENSE="MIT"
+
+KEYWORDS="~amd64"
+SLOT="0"
+IUSE=""
+
+RDEPEND="dev-libs/libxml2
+ dev-libs/libxslt"
+DEPEND="${RDEPEND}"
+
+ruby_add_bdepend "dev-ruby/rake-compiler dev-ruby/rexical"
+
+all_ruby_prepare() {
+ epatch "${FILESDIR}"/${P}-ruby19.patch
+}
+
+each_ruby_compile() {
+ ${RUBY} -S rake compile || die "extension build failed"
+}