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.4.3.1.ebuild ChangeLog
Date: Fri, 30 Jul 2010 16:02:51
Message-Id: 20100730154850.9781F2CE15@corvid.gentoo.org
1 flameeyes 10/07/30 15:48:50
2
3 Modified: ChangeLog
4 Added: nokogiri-1.4.3.1.ebuild
5 Log:
6 Version bump (upstream fixed 1.9.2 in a different way).
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.34 dev-ruby/nokogiri/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?rev=1.34&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?rev=1.34&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?r1=1.33&r2=1.34
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v
19 retrieving revision 1.33
20 retrieving revision 1.34
21 diff -u -r1.33 -r1.34
22 --- ChangeLog 30 Jul 2010 15:20:50 -0000 1.33
23 +++ ChangeLog 30 Jul 2010 15:48:49 -0000 1.34
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-ruby/nokogiri
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v 1.33 2010/07/30 15:20:50 darkside Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v 1.34 2010/07/30 15:48:49 flameeyes Exp $
29 +
30 +*nokogiri-1.4.3.1 (30 Jul 2010)
31 +
32 + 30 Jul 2010; Diego E. Pettenò <flameeyes@g.o>
33 + +nokogiri-1.4.3.1.ebuild:
34 + Version bump (upstream fixed 1.9.2 in a different way).
35
36 30 Jul 2010; Jeremy Olexa <darkside@g.o> nokogiri-1.4.2.ebuild:
37 Add prefix keywords, bug 330283
38
39
40
41 1.1 dev-ruby/nokogiri/nokogiri-1.4.3.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.4.3.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.4.3.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nokogiri-1.4.3.1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 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.4.3.1.ebuild,v 1.1 2010/07/30 15:48:49 flameeyes Exp $
51
52 EAPI=2
53
54 # jruby → needs weakling for testing , will add back in a bit
55 USE_RUBY="ruby18 ruby19"
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
62
63 DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser."
64 HOMEPAGE="http://nokogiri.rubyforge.org/"
65 LICENSE="MIT"
66
67 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
68 SLOT="0"
69 IUSE="ffi"
70
71 RDEPEND="${RDEPEND}
72 dev-libs/libxml2
73 dev-libs/libxslt"
74 DEPEND="${DEPEND}
75 dev-libs/libxml2
76 dev-libs/libxslt"
77
78 # The tests require _minitest_, not the virtual; what is shipped with
79 # Ruby 1.9 is *not* enough, unfortunately
80 ruby_add_bdepend "
81 dev-ruby/rake-compiler
82 dev-ruby/rexical
83 dev-ruby/hoe
84 test? ( dev-ruby/minitest )"
85
86 ruby_add_rdepend "ffi? ( virtual/ruby-ffi )"
87
88 # USE_RUBY=jruby \
89 # ruby_add_bdepend "test? ( dev-ruby/weakling )"
90
91 all_ruby_prepare() {
92 sed -i \
93 -e '/tasks\/cross_compile/s:^:#:' \
94 -e '/:test.*prerequisites/s:^:#:' \
95 Rakefile || die
96 }
97
98 nokogiri_ffi() {
99 [[ $(basename ${RUBY}) == "jruby" ]] || use ffi
100 }
101
102 each_ruby_configure() {
103 nokogiri_ffi && return
104 ${RUBY} -Cext/${PN} extconf.rb || die "extconf.rb failed"
105 }
106
107 each_ruby_compile() {
108 if ! [[ -f lib/nokogiri/css/generated_tokenizer.rb ]]; then
109 ${RUBY} -S rake lib/nokogiri/css/generated_tokenizer.rb || die "rexical failed"
110 fi
111
112 nokogiri_ffi && return
113 emake -Cext/${PN} \
114 CFLAGS="${CFLAGS} -fPIC" \
115 archflag="${LDFLAGS}" || die "make extension failed"
116 cp -l ext/${PN}/${PN}.so lib/${PN}/ || die
117 }
118
119 each_ruby_test() {
120 nokogiri_ffi && export NOKOGIRI_FFI=yes
121 each_fakegem_test
122 }