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