Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/nokogiri: nokogiri-1.5.2.ebuild ChangeLog
Date: Fri, 11 May 2012 18:48:01
Message-Id: 20120511184741.C21FF2004B@flycatcher.gentoo.org
1 flameeyes 12/05/11 18:47:41
2
3 Modified: ChangeLog
4 Added: nokogiri-1.5.2.ebuild
5 Log:
6 Version bump; tests are partially restricted but this solves JRuby issues among others.
7
8 (Portage version: 2.2.0_alpha103/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.71 dev-ruby/nokogiri/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?rev=1.71&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?rev=1.71&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?r1=1.70&r2=1.71
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v
20 retrieving revision 1.70
21 retrieving revision 1.71
22 diff -u -r1.70 -r1.71
23 --- ChangeLog 6 May 2012 15:13:04 -0000 1.70
24 +++ ChangeLog 11 May 2012 18:47:41 -0000 1.71
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-ruby/nokogiri
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v 1.70 2012/05/06 15:13:04 xarthisius Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v 1.71 2012/05/11 18:47:41 flameeyes Exp $
30 +
31 +*nokogiri-1.5.2 (11 May 2012)
32 +
33 + 11 May 2012; Diego E. Pettenò <flameeyes@g.o> +nokogiri-1.5.2.ebuild:
34 + Version bump; tests are partially restricted but this solves JRuby issues
35 + among others.
36
37 06 May 2012; Kacper Kowalik <xarthisius@g.o> nokogiri-1.4.4-r1.ebuild:
38 ppc64 stable wrt #369573
39
40
41
42 1.1 dev-ruby/nokogiri/nokogiri-1.5.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.5.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.5.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: nokogiri-1.5.2.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.5.2.ebuild,v 1.1 2012/05/11 18:47:41 flameeyes Exp $
52
53 EAPI=4
54
55 USE_RUBY="ruby18 ruby19 ree18 jruby"
56
57 RUBY_FAKEGEM_TASK_DOC="docs"
58 RUBY_FAKEGEM_DOCDIR="doc"
59 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc CHANGELOG.ja.rdoc README.rdoc README.ja.rdoc"
60
61 inherit ruby-fakegem eutils multilib
62
63 DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser."
64 HOMEPAGE="http://nokogiri.rubyforge.org/"
65 LICENSE="MIT"
66 SRC_URI="https://github.com/tenderlove/nokogiri/tarball/v${PV} -> ${P}.tgz"
67 RUBY_S="tenderlove-nokogiri-*"
68
69 KEYWORDS="~amd64 ~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"
70 SLOT="0"
71 IUSE=""
72
73 RDEPEND="${RDEPEND}
74 dev-libs/libxml2
75 dev-libs/libxslt"
76 DEPEND="${DEPEND}
77 dev-libs/libxml2
78 dev-libs/libxslt"
79
80 # The tests require _minitest_, not the virtual; what is shipped with
81 # Ruby 1.9 is *not* enough, unfortunately
82 ruby_add_bdepend "
83 dev-ruby/rake-compiler
84 dev-ruby/rexical
85 dev-ruby/hoe
86 dev-ruby/rdoc
87 dev-ruby/racc
88 test? ( dev-ruby/minitest )"
89
90 # tests currently work only with Ruby 1.9; there is a small issue with
91 # JRuby, but it's insignificant, while 1.8 and EE 1.8 are failing due to
92 # the hashing order changes.
93 RESTRICT="ruby_targets_ruby18? ( test )
94 ruby_targets_ree18? ( test )
95 ruby_targets_jruby? ( test )"
96
97 all_ruby_prepare() {
98 sed -i \
99 -e '/tasks\/cross_compile/s:^:#:' \
100 -e '/:test.*prerequisites/s:^:#:' \
101 Rakefile || die
102 # Remove the cross compilation options since they interfere with
103 # native building.
104 sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die
105 sed -i -e '/cross_config_options/d' Rakefile || die
106 }
107
108 each_ruby_configure() {
109 case ${RUBY} in
110 *jruby)
111 ;;
112 *)
113 ${RUBY} -Cext/${PN} extconf.rb \
114 --with-zlib-include="${EPREFIX}"/usr/include \
115 --with-zlib-lib="${EPREFIX}"/$(get_libdir) \
116 --with-iconv-include="${EPREFIX}"/usr/include \
117 --with-iconv-lib="${EPREFIX}"/$(get_libdir) \
118 --with-xml2-include="${EPREFIX}"/usr/include/libxml2 \
119 --with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \
120 --with-xslt-dir="${EPREFIX}"/usr \
121 --with-iconvlib=iconv \
122 || die "extconf.rb failed"
123 ;;
124 esac
125 }
126
127 each_ruby_compile() {
128 case ${RUBY} in
129 *jruby)
130 ${RUBY} -S rake compile || die
131 ;;
132 *)
133 if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then
134 ${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed"
135 fi
136
137 if ! [[ -f lib/nokogiri/css/parser.rb ]]; then
138 ${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed"
139 fi
140
141 emake -Cext/${PN} \
142 CFLAGS="${CFLAGS} -fPIC" \
143 archflag="${LDFLAGS}" || die "make extension failed"
144 cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die
145 ;;
146 esac
147 }