1 |
commit: 824fbbbbf4567bea1e7c14ead098354f23defd11 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 3 07:06:03 2019 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 3 07:06:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=824fbbbb |
7 |
|
8 |
dev-ruby/json: cleanup |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.16 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/json/json-2.1.0-r1.ebuild | 79 -------------------------------------- |
14 |
1 file changed, 79 deletions(-) |
15 |
|
16 |
diff --git a/dev-ruby/json/json-2.1.0-r1.ebuild b/dev-ruby/json/json-2.1.0-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index cfac1024c4d..00000000000 |
19 |
--- a/dev-ruby/json/json-2.1.0-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,79 +0,0 @@ |
22 |
-# Copyright 1999-2018 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
-USE_RUBY="ruby23 ruby24 ruby25 ruby26" |
27 |
- |
28 |
-RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
29 |
-RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" |
30 |
-RUBY_FAKEGEM_DOCDIR="doc" |
31 |
- |
32 |
-RUBY_FAKEGEM_GEMSPEC="json.gemspec" |
33 |
- |
34 |
-inherit multilib ruby-fakegem |
35 |
- |
36 |
-DESCRIPTION="A JSON implementation as a Ruby extension" |
37 |
-HOMEPAGE="https://github.com/flori/json" |
38 |
-LICENSE="Ruby" |
39 |
- |
40 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
41 |
-SLOT="2" |
42 |
-IUSE="" |
43 |
- |
44 |
-RDEPEND="${RDEPEND}" |
45 |
-DEPEND="${DEPEND} |
46 |
- dev-util/ragel" |
47 |
- |
48 |
-PATCHES=( |
49 |
- "${FILESDIR}/${P}-ruby26-1.patch" |
50 |
- "${FILESDIR}/${P}-ruby26-2.patch" |
51 |
- "${FILESDIR}/${P}-ruby26-3.patch" |
52 |
-) |
53 |
- |
54 |
-ruby_add_bdepend "dev-ruby/rake |
55 |
- doc? ( dev-ruby/rdoc )" |
56 |
- |
57 |
-all_ruby_prepare() { |
58 |
- # Avoid building the extension twice! |
59 |
- # And use rdoc instead of sdoc which we don't have packaged |
60 |
- # And don't call git to list files. We're using the pregenerated spec anyway. |
61 |
- sed -i \ |
62 |
- -e '/task :test/ s|:compile,||' \ |
63 |
- -e 's| => :clean||' \ |
64 |
- -e 's|sdoc|rdoc|' \ |
65 |
- -e 's|`git ls-files`|""|' \ |
66 |
- Rakefile || die "rakefile fix failed" |
67 |
- |
68 |
- # Remove hardcoded and broken -O setting. |
69 |
- sed -i -e '/^ \(if\|unless\)/,/^ end/ s:^:#:' \ |
70 |
- -e '/^unless/,/^end/ s:^:#:' ext/json/ext/*/extconf.rb || die |
71 |
- |
72 |
- # Avoid setting gem since it will not be available yet when installing |
73 |
- sed -i -e '/gem/ s:^:#:' tests/test_helper.rb || die |
74 |
-} |
75 |
- |
76 |
-each_ruby_configure() { |
77 |
- for ext in parser generator ; do |
78 |
- ${RUBY} -Cext/json/ext/${ext} extconf.rb || die |
79 |
- done |
80 |
-} |
81 |
- |
82 |
-each_ruby_compile() { |
83 |
- for ext in parser generator ; do |
84 |
- emake V=1 -Cext/json/ext/${ext} |
85 |
- cp ext/json/ext/${ext}/${ext}$(get_modname) ext/json/ext/ || die |
86 |
- done |
87 |
-} |
88 |
- |
89 |
-each_ruby_test() { |
90 |
- for t in pure ext ; do |
91 |
- JSON=${T} ${RUBY} -S rake do_test_${t} || die |
92 |
- done |
93 |
-} |
94 |
- |
95 |
-each_ruby_install() { |
96 |
- each_fakegem_install |
97 |
- |
98 |
- ruby_fakegem_newins ext/json/ext/generator$(get_modname) lib/json/ext/generator$(get_modname) |
99 |
- ruby_fakegem_newins ext/json/ext/parser$(get_modname) lib/json/ext/parser$(get_modname) |
100 |
-} |