1 |
graaff 11/11/19 12:56:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nokogiri-1.5.0-r2.ebuild |
5 |
Log: |
6 |
Build parser.rb now that we use the github tarball where this has not been done yet. Fixes bug 390477. |
7 |
|
8 |
(Portage version: 2.1.10.11/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.65 dev-ruby/nokogiri/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?rev=1.65&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?rev=1.65&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/ChangeLog?r1=1.64&r2=1.65 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v |
20 |
retrieving revision 1.64 |
21 |
retrieving revision 1.65 |
22 |
diff -u -r1.64 -r1.65 |
23 |
--- ChangeLog 6 Nov 2011 11:39:51 -0000 1.64 |
24 |
+++ ChangeLog 19 Nov 2011 12:56:29 -0000 1.65 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-ruby/nokogiri |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v 1.64 2011/11/06 11:39:51 graaff Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/nokogiri/ChangeLog,v 1.65 2011/11/19 12:56:29 graaff Exp $ |
30 |
+ |
31 |
+*nokogiri-1.5.0-r2 (19 Nov 2011) |
32 |
+ |
33 |
+ 19 Nov 2011; Hans de Graaff <graaff@g.o> +nokogiri-1.5.0-r2.ebuild: |
34 |
+ Build parser.rb now that we use the github tarball where this has not been |
35 |
+ done yet. Fixes bug 390477. |
36 |
|
37 |
*nokogiri-1.5.0-r1 (06 Nov 2011) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-ruby/nokogiri/nokogiri-1.5.0-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.5.0-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/nokogiri/nokogiri-1.5.0-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: nokogiri-1.5.0-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 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.0-r2.ebuild,v 1.1 2011/11/19 12:56:29 graaff 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 ~amd64-linux ~x64-macos ~x86-linux ~ppc-macos ~x86-macos ~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/racc |
87 |
doc? ( dev-ruby/rdoc ) |
88 |
test? ( dev-ruby/minitest )" |
89 |
|
90 |
all_ruby_prepare() { |
91 |
sed -i \ |
92 |
-e '/tasks\/cross_compile/s:^:#:' \ |
93 |
-e '/:test.*prerequisites/s:^:#:' \ |
94 |
Rakefile || die |
95 |
# Remove the cross compilation options since they interfere with |
96 |
# native building. |
97 |
sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die |
98 |
sed -i -e '/cross_config_options/d' Rakefile || die |
99 |
} |
100 |
|
101 |
each_ruby_prepare() { |
102 |
# These test exclusions should be limited to the specific tests, but |
103 |
# we are overdue with re-adding jruby so we use the big hammer for now. |
104 |
case ${RUBY} in |
105 |
*ruby19) |
106 |
# Remove test file with failing tests related to encodings. |
107 |
rm test/xml/test_node_encoding.rb || die |
108 |
;; |
109 |
*jruby) |
110 |
# Remove test files with broken tests, |
111 |
# https://github.com/tenderlove/nokogiri/issues/496 |
112 |
rm test/html/sax/test_parser.rb test/html/test_document_encoding.rb test/xml/sax/test_push_parser.rb test/xslt/test_exception_handling.rb || die |
113 |
;; |
114 |
*) |
115 |
;; |
116 |
esac |
117 |
} |
118 |
|
119 |
each_ruby_configure() { |
120 |
case ${RUBY} in |
121 |
*jruby) |
122 |
;; |
123 |
*) |
124 |
${RUBY} -Cext/${PN} extconf.rb \ |
125 |
--with-zlib-include="${EPREFIX}"/usr/include \ |
126 |
--with-zlib-lib="${EPREFIX}"/$(get_libdir) \ |
127 |
--with-iconv-include="${EPREFIX}"/usr/include \ |
128 |
--with-iconv-lib="${EPREFIX}"/$(get_libdir) \ |
129 |
--with-xml2-include="${EPREFIX}"/usr/include/libxml2 \ |
130 |
--with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \ |
131 |
--with-xslt-dir="${EPREFIX}"/usr \ |
132 |
--with-iconvlib=iconv \ |
133 |
|| die "extconf.rb failed" |
134 |
;; |
135 |
esac |
136 |
} |
137 |
|
138 |
each_ruby_compile() { |
139 |
case ${RUBY} in |
140 |
*jruby) |
141 |
${RUBY} -S rake compile || die |
142 |
;; |
143 |
*) |
144 |
if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then |
145 |
${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed" |
146 |
fi |
147 |
|
148 |
if ! [[ -f lib/nokogiri/css/parser.rb ]]; then |
149 |
${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed" |
150 |
fi |
151 |
|
152 |
emake -Cext/${PN} \ |
153 |
CFLAGS="${CFLAGS} -fPIC" \ |
154 |
archflag="${LDFLAGS}" || die "make extension failed" |
155 |
cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die |
156 |
;; |
157 |
esac |
158 |
} |