Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/nokogiri/
Date: Mon, 30 Nov 2015 06:51:19
Message-Id: 1448866268.94fcf2168a5499e95984d8a9e2741da57aab6716.graaff@gentoo
1 commit: 94fcf2168a5499e95984d8a9e2741da57aab6716
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 06:31:01 2015 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 06:51:08 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94fcf216
7
8 dev-ruby/nokogiri: add 1.6.7
9
10 Package-Manager: portage-2.2.20.1
11
12 dev-ruby/nokogiri/Manifest | 1 +
13 dev-ruby/nokogiri/nokogiri-1.6.7.ebuild | 92 +++++++++++++++++++++++++++++++++
14 2 files changed, 93 insertions(+)
15
16 diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest
17 index a597569..c3af354 100644
18 --- a/dev-ruby/nokogiri/Manifest
19 +++ b/dev-ruby/nokogiri/Manifest
20 @@ -2,3 +2,4 @@ DIST nokogiri-1.6.4.1-git.tgz 2251386 SHA256 5a326466d5bcd1b197c26d933f8ae5b4343
21 DIST nokogiri-1.6.6.2-git.tgz 2258820 SHA256 32358b52936f1e2de0136130d3f43ea7e8d6c6f417265e21dc7e7d8572aff5b6 SHA512 6335c8e584c6b13a5cc9353b348b6df65f3e84392628b3ff458279bb03253e0f773f4557bac701872842761b1656a23d520a8446b83fcbc30efa29109fb2fec5 WHIRLPOOL c488a97872c560be4f366a1fb6cc8da08e025af3da19cd5083fb6bc9ce31127a021bd8ebb4a203172a799dfe5f29cb8c96da86e6165fe50e10a3e73f9e899632
22 DIST nokogiri-1.6.6.3-git.tgz 2262840 SHA256 e4531a003c91a388ef886d6706aff5a0324cd4a44ae16fefd048a18805cdf244 SHA512 6195e7ea162ff4bc8b902b3b25cc597cb5ad6d3da1132a4cc58e26ab9ce5aabeba1e69894bac67ff7edfd9e43063275ce9d78130dc975fed37f226a190932241 WHIRLPOOL 9ecf04575180ff4a63da2163d699569c1b19f893b6419aa5e4a66772a7473e9d15a9209e5706095db8692bebc52a7867d9cfed15bff57471353d85624c526ca6
23 DIST nokogiri-1.6.6.4-git.tgz 2263539 SHA256 de5241eb4dcebb3efe7a0f00d6bc82e18e47756fa76d66fd5d6399aeaac3757e SHA512 8009fa3519b9aae37223211601900541c7d12debedc561738013a8816b43e3b14979d044d1bf54797eabe47a0156af1263cad78ab0f067f4be4c3417842dc843 WHIRLPOOL 32b8d6bd7345d4063c7d4e48c105a1bdc62fd929430113810e5942feaf3f82b77d34652ca1b2176555a3af659700b03465faf67cf506fd4bdad1d40c96718d6b
24 +DIST nokogiri-1.6.7-git.tgz 2280423 SHA256 146bb0dbc25409de8ccf25d2ff59f5691824c29cba773e4a0ec13f890fbc7173 SHA512 cb344c0a11ab4108ed13e3b592355a142e924fe411e0f75574ba58de536f4a4e8e0f2161934ff77a82676cdaf0b1e7796af6db0ad6e6ab3e40df2569b3ea5d7d WHIRLPOOL b3564795c7d0ec6c6ff49b944fe09200b6691bddf70638d440ac1dd0ec8ec0b22e38284b19f62eb016adf38dc0ee1daaca8fac4d2264d73afabdd72262223813
25
26 diff --git a/dev-ruby/nokogiri/nokogiri-1.6.7.ebuild b/dev-ruby/nokogiri/nokogiri-1.6.7.ebuild
27 new file mode 100644
28 index 0000000..b31f32e
29 --- /dev/null
30 +++ b/dev-ruby/nokogiri/nokogiri-1.6.7.ebuild
31 @@ -0,0 +1,92 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +USE_RUBY="ruby20 ruby21 ruby22"
39 +
40 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
41 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc CHANGELOG.ja.rdoc README.md ROADMAP.md STANDARD_RESPONSES.md"
42 +
43 +RUBY_FAKEGEM_EXTRAINSTALL="ext"
44 +
45 +inherit ruby-fakegem eutils multilib
46 +
47 +DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser"
48 +HOMEPAGE="http://nokogiri.org/"
49 +LICENSE="MIT"
50 +SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
51 +
52 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
53 +SLOT="0"
54 +IUSE=""
55 +
56 +RDEPEND="${RDEPEND}
57 + >=dev-libs/libxml2-2.9.2:=
58 + dev-libs/libxslt
59 + virtual/libiconv"
60 +DEPEND="${DEPEND}
61 + >=dev-libs/libxml2-2.9.2
62 + dev-libs/libxslt
63 + virtual/libiconv"
64 +
65 +# The tests require _minitest_, not the virtual; what is shipped with
66 +# Ruby 1.9 is *not* enough, unfortunately
67 +ruby_add_bdepend "
68 + dev-ruby/hoe
69 + dev-ruby/rake-compiler
70 + dev-ruby/rexical
71 + dev-ruby/rdoc
72 + dev-ruby/racc
73 + test? ( dev-ruby/minitest )"
74 +
75 +all_ruby_prepare() {
76 + sed -i \
77 + -e '/tasks\/cross_compile/s:^:#:' \
78 + -e '/:test.*prerequisites/s:^:#:' \
79 + -e '/license/ s:^:#:' \
80 + Rakefile || die
81 + # Remove the cross compilation options since they interfere with
82 + # native building.
83 + sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die
84 + sed -i -e '/cross_config_options/d' Rakefile || die
85 +}
86 +
87 +each_ruby_configure() {
88 + NOKOGIRI_USE_SYSTEM_LIBRARIES=true \
89 + ${RUBY} -Cext/${PN} extconf.rb \
90 + --with-zlib-include="${EPREFIX}"/usr/include \
91 + --with-zlib-lib="${EPREFIX}"/$(get_libdir) \
92 + --with-iconv-include="${EPREFIX}"/usr/include \
93 + --with-iconv-lib="${EPREFIX}"/$(get_libdir) \
94 + --with-xml2-include="${EPREFIX}"/usr/include/libxml2 \
95 + --with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \
96 + --with-xslt-dir="${EPREFIX}"/usr \
97 + --with-iconvlib=iconv \
98 + || die "extconf.rb failed"
99 +}
100 +
101 +each_ruby_compile() {
102 + if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then
103 + ${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed"
104 + fi
105 +
106 + if ! [[ -f lib/nokogiri/css/parser.rb ]]; then
107 + ${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed"
108 + fi
109 +
110 + emake -Cext/${PN} \
111 + V=1 \
112 + CFLAGS="${CFLAGS} -fPIC" \
113 + archflag="${LDFLAGS}" || die "make extension failed"
114 + cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die
115 +}
116 +
117 +each_ruby_install() {
118 + # Clean up "ext" directory before installing it. nokogumbo expects
119 + # the header files and shared object to be in ext.
120 + rm -rf ext/java ext/nokogiri/*.o ext/nokogiri/{mkmf.log,Makefile} || die
121 +
122 + each_fakegem_install
123 +}