summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2013-05-07 05:05:20 +0000
committerHans de Graaff <graaff@gentoo.org>2013-05-07 05:05:20 +0000
commit80e347625bfa08a8c86f021679cbe96281263011 (patch)
treeba409ee67c50d0fda1379cb1aeb7fb99f803a829 /dev-ruby/mechanize
parent4.8.0 p1.3: Fixes bug #465894 (wine memcopy breakage) and a couple of wrong (diff)
downloadgentoo-2-80e347625bfa08a8c86f021679cbe96281263011.tar.gz
gentoo-2-80e347625bfa08a8c86f021679cbe96281263011.tar.bz2
gentoo-2-80e347625bfa08a8c86f021679cbe96281263011.zip
Version bump.
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/mechanize')
-rw-r--r--dev-ruby/mechanize/ChangeLog10
-rw-r--r--dev-ruby/mechanize/files/mechanize-2.6.0-libxml290.patch34
-rw-r--r--dev-ruby/mechanize/mechanize-2.6.0.ebuild41
3 files changed, 83 insertions, 2 deletions
diff --git a/dev-ruby/mechanize/ChangeLog b/dev-ruby/mechanize/ChangeLog
index 31b8f7f02bdb..27e8d529eb2c 100644
--- a/dev-ruby/mechanize/ChangeLog
+++ b/dev-ruby/mechanize/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/mechanize
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mechanize/ChangeLog,v 1.36 2012/11/25 19:15:44 tomka Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mechanize/ChangeLog,v 1.37 2013/05/07 05:05:20 graaff Exp $
+
+*mechanize-2.6.0 (07 May 2013)
+
+ 07 May 2013; Hans de Graaff <graaff@gentoo.org> +mechanize-2.6.0.ebuild,
+ +files/mechanize-2.6.0-libxml290.patch:
+ Version bump.
25 Nov 2012; Thomas Kahle <tomka@gentoo.org> mechanize-2.5.1.ebuild:
marked ~x86 per bug 432830
diff --git a/dev-ruby/mechanize/files/mechanize-2.6.0-libxml290.patch b/dev-ruby/mechanize/files/mechanize-2.6.0-libxml290.patch
new file mode 100644
index 000000000000..0b5409f582bb
--- /dev/null
+++ b/dev-ruby/mechanize/files/mechanize-2.6.0-libxml290.patch
@@ -0,0 +1,34 @@
+commit 43f3b631484a2c0178e6699584471dedd598eca3
+Author: Lee Jarvis <ljjarvis@gmail.com>
+Date: Mon May 6 19:39:25 2013 +0100
+
+ Ensure we prefix xpath with // for searching entire document
+
+ Tests prior to this commit passed because libxml2 was not so
+ strict. Since upgrading to 2.9.0 this issue has been revealed.
+ The former test should have been written with this in mind.
+
+ Steps to reproduce (on OSX with Homebrew installed):
+
+ gem uninstall nokogiri
+ brew install libxml2
+ LDFLAGS="-L/usr/local/opt/libxml2/lib" \
+ CPPFLAGS="-I/usr/local/opt/libxml2/include" \
+ gem install nokogiri
+
+ closes #308
+
+diff --git a/test/test_mechanize_xml_file.rb b/test/test_mechanize_xml_file.rb
+index 58eb67c..bbe486c 100644
+--- a/test/test_mechanize_xml_file.rb
++++ b/test/test_mechanize_xml_file.rb
+@@ -23,7 +23,7 @@ class TestMechanizeXmlFile < Mechanize::TestCase
+ end
+
+ def test_at
+- assert_equal 'Perl', @xml.at('language[2]').text
++ assert_equal 'Perl', @xml.at('//language[2]').text
+ end
+
+ end
+\ No newline at end of file
diff --git a/dev-ruby/mechanize/mechanize-2.6.0.ebuild b/dev-ruby/mechanize/mechanize-2.6.0.ebuild
new file mode 100644
index 000000000000..8e43109c1630
--- /dev/null
+++ b/dev-ruby/mechanize/mechanize-2.6.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mechanize/mechanize-2.6.0.ebuild,v 1.1 2013/05/07 05:05:20 graaff Exp $
+
+EAPI=5
+
+# jruby → dropped since net-http-persistent does not support jruby.
+USE_RUBY="ruby18 ruby19"
+
+RUBY_FAKEGEM_TASK_DOC="redocs"
+RUBY_FAKEGEM_DOCDIR="doc"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc EXAMPLES.rdoc GUIDE.rdoc README.rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A Ruby library used for automating interaction with websites."
+HOMEPAGE="http://mechanize.rubyforge.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( ${P}-libxml290.patch )
+
+ruby_add_bdepend ">=dev-ruby/hoe-2.3.3"
+ruby_add_rdepend ">=dev-ruby/nokogiri-1.4.4-r1
+ >=dev-ruby/net-http-digest_auth-1.1.1
+ >=dev-ruby/net-http-persistent-2.5.2
+ >=dev-ruby/mime-types-1.17.2
+ >=dev-ruby/ntlm-http-0.1.1
+ >=dev-ruby/webrobots-0.0.9
+ >=dev-ruby/domain_name-0.5.1"
+
+all_ruby_install() {
+ all_fakegem_install
+
+ docinto examples
+ dodoc examples/* || die
+}