1 |
commit: 8b92fb8fb421ee749986726143232f59e60c3537 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 05:25:10 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 05:26:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b92fb8f |
7 |
|
8 |
dev-ruby/libxml: cleanup |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-ruby/libxml/libxml-2.8.0.ebuild | 64 ------------------------------------- |
13 |
1 file changed, 64 deletions(-) |
14 |
|
15 |
diff --git a/dev-ruby/libxml/libxml-2.8.0.ebuild b/dev-ruby/libxml/libxml-2.8.0.ebuild |
16 |
deleted file mode 100644 |
17 |
index ea01e4e..0000000 |
18 |
--- a/dev-ruby/libxml/libxml-2.8.0.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,64 +0,0 @@ |
21 |
-# Copyright 1999-2016 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=5 |
26 |
- |
27 |
-# ruby22 → test suite hangs |
28 |
-USE_RUBY="ruby20" |
29 |
- |
30 |
-RUBY_FAKEGEM_NAME="libxml-ruby" |
31 |
- |
32 |
-RUBY_FAKEGEM_DOCDIR="doc" |
33 |
-RUBY_FAKEGEM_EXTRADOC="README.rdoc HISTORY" |
34 |
- |
35 |
-RUBY_FAKEGEM_TASK_TEST="none" |
36 |
- |
37 |
-inherit ruby-fakegem |
38 |
- |
39 |
-DESCRIPTION="Ruby libxml with a user friendly API, akin to REXML" |
40 |
-HOMEPAGE="https://github.com/xml4r/libxml-ruby" |
41 |
- |
42 |
-LICENSE="MIT" |
43 |
-SLOT="0" |
44 |
-KEYWORDS="~alpha amd64 ~arm hppa ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
45 |
-IUSE="" |
46 |
- |
47 |
-RDEPEND="${RDEPEND} dev-libs/libxml2" |
48 |
-DEPEND="${DEPEND} dev-libs/libxml2" |
49 |
- |
50 |
-ruby_add_bdepend "doc? ( dev-ruby/rdoc )" |
51 |
- |
52 |
-all_ruby_prepare() { |
53 |
- # Remove grancher tasks only needed for publishing the website |
54 |
- sed -i -e '/grancher/d' -e '/Grancher/,$d' Rakefile || die |
55 |
- |
56 |
- # We don't have the hanna template available. |
57 |
- sed -i -e 's/hanna/rake/' Rakefile || die |
58 |
- |
59 |
- # Remove rake-compiler bits since we don't use it |
60 |
- sed -i -e '/extensiontask/d' -e '/ExtensionTask/,/end/d' -e '/GemPackageTask/,/end/d' Rakefile || die |
61 |
- |
62 |
- # replace ulimit -n output as it does not work with Ruby 1.9 |
63 |
- sed -i -e 's:`ulimit -n`:"'`ulimit -n`'":' test/tc_parser.rb || die |
64 |
- |
65 |
- # Avoid test failures with libxml2-2.9.2 since that is the oldest |
66 |
- # secure version available: https://github.com/xml4r/libxml-ruby/issues/103 |
67 |
- sed -i -e '/tc_html_parser_context/d' test/test_suite.rb || die |
68 |
- sed -i -e '/test_bad_xml/,/^ end/ s:^:#:' test/tc_parser.rb || die |
69 |
-} |
70 |
- |
71 |
-each_ruby_configure() { |
72 |
- ${RUBY} -C ext/libxml extconf.rb || die |
73 |
-} |
74 |
- |
75 |
-each_ruby_compile() { |
76 |
- emake -C ext/libxml V=1 |
77 |
- cp ext/libxml/libxml_ruby.so lib/ || die |
78 |
-} |
79 |
- |
80 |
-each_ruby_test() { |
81 |
- # The test suite needs to load its files in alphabetical order but |
82 |
- # this is not guaranteed. See bug 370501. |
83 |
- ${RUBY} -Ilib -r ./test/test_helper.rb test/test_suite.rb || die |
84 |
-} |