summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-06-07 07:09:36 +0200
committerHans de Graaff <graaff@gentoo.org>2016-06-07 07:09:36 +0200
commitde01b95d0a0294c02cc197680f078c38640c8972 (patch)
tree8e377ac99f35df17736d793225695b9b6904515a /dev-ruby/nokogiri
parentdev-ruby/lumberjack: add ruby23 (diff)
downloadgentoo-de01b95d0a0294c02cc197680f078c38640c8972.tar.gz
gentoo-de01b95d0a0294c02cc197680f078c38640c8972.tar.bz2
gentoo-de01b95d0a0294c02cc197680f078c38640c8972.zip
dev-ruby/nokogiri: add 1.6.8
Drop alpha, arm, hppa, ia64, sparc keywords due to new dependency on dev-ruby/pkg-config, bug 585240 Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/nokogiri')
-rw-r--r--dev-ruby/nokogiri/Manifest1
-rw-r--r--dev-ruby/nokogiri/nokogiri-1.6.8.ebuild94
2 files changed, 95 insertions, 0 deletions
diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest
index 0b7477b254aa..d1801c9c4150 100644
--- a/dev-ruby/nokogiri/Manifest
+++ b/dev-ruby/nokogiri/Manifest
@@ -3,3 +3,4 @@ DIST nokogiri-1.6.6.2-git.tgz 2258820 SHA256 32358b52936f1e2de0136130d3f43ea7e8d
DIST nokogiri-1.6.6.4-git.tgz 2263539 SHA256 de5241eb4dcebb3efe7a0f00d6bc82e18e47756fa76d66fd5d6399aeaac3757e SHA512 8009fa3519b9aae37223211601900541c7d12debedc561738013a8816b43e3b14979d044d1bf54797eabe47a0156af1263cad78ab0f067f4be4c3417842dc843 WHIRLPOOL 32b8d6bd7345d4063c7d4e48c105a1bdc62fd929430113810e5942feaf3f82b77d34652ca1b2176555a3af659700b03465faf67cf506fd4bdad1d40c96718d6b
DIST nokogiri-1.6.7.1-git.tgz 2285125 SHA256 96d7b27124244a3f3d8d1bbfe84484f70eac4a5dc82daf4a1345f2f87db0c399 SHA512 aec39aedbbd08aafb0ef61747d7d7e9c96f311a53cc4b6c2f7f6ff8fcc3b7f5f6a46a295ddcfe04944742ef80a504bd3fa692d3aa2f3728e0bd107866a44a4b2 WHIRLPOOL 29c7c3c2998d5693c541bad199c40aa3027d508797f387f7a5058ddee178b436f700d2ced11389a1ef29fced6afc75f8b23249403e2e4ac1cfedafc37ed60d39
DIST nokogiri-1.6.7.2-git.tgz 2287034 SHA256 3ae69986d68b0922a13545a0530507374ba8be3df4e8acaca48e7e446c96e41f SHA512 aeccc3999e6ab97fca969d8ac5c5a117b6c65a610c1178349c5715c1c94717779b63106824ad2dd8ae80813b59e5381220a58d067e9f44aace41fd01d9a7a6df WHIRLPOOL 51913aac7c3a2a3bef9822da90bc3123d134ee49a9e4549fb408e1eda5157a28aa3f77ba3ac5554250461def7d499f1c85f7b1f5fd7e6ec4d7e60e88c2121050
+DIST nokogiri-1.6.8-git.tgz 5707447 SHA256 e4c5c0799fb2c3fceb1874ef2c9a1c26a8d04bb527f376fb9936372db60001a2 SHA512 0457b26e09739c99ac06fd56fae1ab6422e0855e935518cf433de5d8c6abe5c24d700a0932128dbe9417f96267fcbac30b1988a9f0f60fefc2980346ec5b12b0 WHIRLPOOL 362ee473369449de916abdd4de5645ae92eeaa2b4772e76bfcbf5a88469b4425f898de04fab2d7aadc3463ea8e68d683f97fdc0f1118cafbd87f37b7a1e36b44
diff --git a/dev-ruby/nokogiri/nokogiri-1.6.8.ebuild b/dev-ruby/nokogiri/nokogiri-1.6.8.ebuild
new file mode 100644
index 000000000000..a0362b3f5ddd
--- /dev/null
+++ b/dev-ruby/nokogiri/nokogiri-1.6.8.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.md ROADMAP.md STANDARD_RESPONSES.md"
+
+RUBY_FAKEGEM_EXTRAINSTALL="ext"
+
+inherit ruby-fakegem eutils multilib
+
+DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser"
+HOMEPAGE="http://nokogiri.org/"
+LICENSE="MIT"
+SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE=""
+
+RDEPEND="${RDEPEND}
+ >=dev-libs/libxml2-2.9.2:=
+ dev-libs/libxslt
+ virtual/libiconv"
+DEPEND="${DEPEND}
+ >=dev-libs/libxml2-2.9.2
+ dev-libs/libxslt
+ virtual/libiconv"
+
+ruby_add_bdepend "
+ dev-ruby/hoe
+ >=dev-ruby/pkg-config-1.1.7
+ dev-ruby/rexical
+ dev-ruby/rdoc
+ dev-ruby/racc
+ test? ( dev-ruby/minitest )"
+
+all_ruby_prepare() {
+ sed -i \
+ -e '/tasks\/cross_compile/s:^:#:' \
+ -e '/:test.*prerequisites/s:^:#:' \
+ -e '/license/ s:^:#:' \
+ Rakefile || die
+ # Remove the cross compilation options since they interfere with
+ # native building.
+ sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die
+ sed -i -e '/cross_config_options/d' Rakefile || die
+}
+
+each_ruby_configure() {
+ NOKOGIRI_USE_SYSTEM_LIBRARIES=true \
+ ${RUBY} -Cext/${PN} extconf.rb \
+ --with-zlib-include="${EPREFIX}"/usr/include \
+ --with-zlib-lib="${EPREFIX}"/$(get_libdir) \
+ --with-iconv-include="${EPREFIX}"/usr/include \
+ --with-iconv-lib="${EPREFIX}"/$(get_libdir) \
+ --with-xml2-include="${EPREFIX}"/usr/include/libxml2 \
+ --with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \
+ --with-xslt-dir="${EPREFIX}"/usr \
+ --with-iconvlib=iconv \
+ || die "extconf.rb failed"
+}
+
+each_ruby_compile() {
+ if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then
+ ${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed"
+ fi
+
+ if ! [[ -f lib/nokogiri/css/parser.rb ]]; then
+ ${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed"
+ fi
+
+ emake -Cext/${PN} \
+ V=1 \
+ CFLAGS="${CFLAGS} -fPIC" \
+ archflag="${LDFLAGS}" || die "make extension failed"
+ cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die
+}
+
+each_ruby_install() {
+ # Clean up "ext" directory before installing it. nokogumbo expects
+ # the header files and shared object to be in ext.
+ rm -rf ext/java ext/nokogiri/*.o ext/nokogiri/{mkmf.log,Makefile} || die
+
+ each_fakegem_install
+}