Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/nokogiri: ChangeLog nokogiri-1.6.5.ebuild
Date: Wed, 03 Dec 2014 07:06:20
Message-Id: 20141203070614.D2EA6B6C1@oystercatcher.gentoo.org
1 graaff 14/12/03 07:06:14
2
3 Modified: ChangeLog
4 Added: nokogiri-1.6.5.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.113 dev-ruby/nokogiri/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?rev=1.113&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?rev=1.113&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?r1=1.112&r2=1.113
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v
20 retrieving revision 1.112
21 retrieving revision 1.113
22 diff -u -r1.112 -r1.113
23 --- ChangeLog 25 Nov 2014 13:10:25 -0000 1.112
24 +++ ChangeLog 3 Dec 2014 07:06:14 -0000 1.113
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/nokogiri
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v 1.112 2014/11/25 13:10:25 mrueg Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v 1.113 2014/12/03 07:06:14 graaff Exp $
30 +
31 +*nokogiri-1.6.5 (03 Dec 2014)
32 +
33 + 03 Dec 2014; Hans de Graaff <graaff@g.o> +nokogiri-1.6.5.ebuild:
34 + Version bump.
35
36 25 Nov 2014; Manuel RĂ¼ger <mrueg@g.o> nokogiri-1.5.10.ebuild,
37 nokogiri-1.6.0.ebuild, nokogiri-1.6.3.1.ebuild:
38
39
40
41 1.1 dev-ruby/nokogiri/nokogiri-1.6.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.6.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.6.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nokogiri-1.6.5.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.6.5.ebuild,v 1.1 2014/12/03 07:06:14 graaff Exp $
51
52 EAPI=5
53
54 USE_RUBY="ruby19 ruby20 ruby21"
55
56 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
57 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc CHANGELOG.ja.rdoc README.rdoc README.ja.rdoc ROADMAP.md STANDARD_RESPONSES.md"
58
59 inherit ruby-fakegem eutils multilib
60
61 DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser"
62 HOMEPAGE="http://nokogiri.org/"
63 LICENSE="MIT"
64 SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
65
66 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"
67 SLOT="0"
68 IUSE=""
69
70 RDEPEND="${RDEPEND}
71 >=dev-libs/libxml2-2.9.2:=
72 dev-libs/libxslt
73 virtual/libiconv"
74 DEPEND="${DEPEND}
75 >=dev-libs/libxml2-2.9.2
76 dev-libs/libxslt
77 virtual/libiconv"
78
79 # The tests require _minitest_, not the virtual; what is shipped with
80 # Ruby 1.9 is *not* enough, unfortunately
81 ruby_add_bdepend "
82 dev-ruby/hoe
83 dev-ruby/rake-compiler
84 dev-ruby/rexical
85 dev-ruby/rdoc
86 dev-ruby/racc
87 test? ( dev-ruby/minitest )"
88
89 all_ruby_prepare() {
90 sed -i \
91 -e '/tasks\/cross_compile/s:^:#:' \
92 -e '/:test.*prerequisites/s:^:#:' \
93 Rakefile || die
94 # Remove the cross compilation options since they interfere with
95 # native building.
96 sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die
97 sed -i -e '/cross_config_options/d' Rakefile || die
98 }
99
100 each_ruby_configure() {
101 NOKOGIRI_USE_SYSTEM_LIBRARIES=true \
102 ${RUBY} -Cext/${PN} extconf.rb \
103 --with-zlib-include="${EPREFIX}"/usr/include \
104 --with-zlib-lib="${EPREFIX}"/$(get_libdir) \
105 --with-iconv-include="${EPREFIX}"/usr/include \
106 --with-iconv-lib="${EPREFIX}"/$(get_libdir) \
107 --with-xml2-include="${EPREFIX}"/usr/include/libxml2 \
108 --with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \
109 --with-xslt-dir="${EPREFIX}"/usr \
110 --with-iconvlib=iconv \
111 || die "extconf.rb failed"
112 }
113
114 each_ruby_compile() {
115 if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then
116 ${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed"
117 fi
118
119 if ! [[ -f lib/nokogiri/css/parser.rb ]]; then
120 ${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed"
121 fi
122
123 emake -Cext/${PN} \
124 V=1 \
125 CFLAGS="${CFLAGS} -fPIC" \
126 archflag="${LDFLAGS}" || die "make extension failed"
127 cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die
128 }