1 |
commit: 18b2501d2e4cabe6e4c57c2d3edd231f1b83815c |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 27 10:35:48 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 27 10:39:04 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18b2501d |
7 |
|
8 |
dev-ruby/hpricot: cleanup |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-ruby/hpricot/hpricot-0.8.6-r2.ebuild | 69 -------------------------------- |
13 |
1 file changed, 69 deletions(-) |
14 |
|
15 |
diff --git a/dev-ruby/hpricot/hpricot-0.8.6-r2.ebuild b/dev-ruby/hpricot/hpricot-0.8.6-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 2490dff..00000000 |
18 |
--- a/dev-ruby/hpricot/hpricot-0.8.6-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,69 +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 |
-USE_RUBY="ruby20" |
28 |
- |
29 |
-RUBY_FAKEGEM_DOCDIR="doc" |
30 |
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md" |
31 |
- |
32 |
-inherit ruby-fakegem eutils |
33 |
- |
34 |
-DESCRIPTION="A fast and liberal HTML parser for Ruby" |
35 |
-HOMEPAGE="https://wiki.github.com/hpricot/hpricot" |
36 |
- |
37 |
-LICENSE="MIT" |
38 |
-SLOT="0" |
39 |
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
40 |
-IUSE="" |
41 |
- |
42 |
-ruby_add_bdepend "dev-ruby/rake |
43 |
- dev-ruby/rake-compiler" |
44 |
- |
45 |
-# dev-ruby/fast_xs does not cover JRuby so still bundle it here for now |
46 |
-USE_RUBY="${USE_RUBY/jruby/}" \ |
47 |
- ruby_add_rdepend "dev-ruby/fast_xs" |
48 |
- |
49 |
-# Probably needs the same jdk as JRuby but I'm not sure how to express |
50 |
-# that just yet. |
51 |
-DEPEND+=" |
52 |
- dev-util/ragel" |
53 |
- |
54 |
-all_ruby_prepare() { |
55 |
- sed -i -e '/[Bb]undler/ s:^:#:' Rakefile || die |
56 |
- |
57 |
- # Fix encoding assumption of environment for Ruby 1.9. |
58 |
- # https://github.com/hpricot/hpricot/issues/52 |
59 |
- # sed -i -e '1 iEncoding.default_external=Encoding::UTF_8 if RUBY_VERSION =~ /1.9/' test/load_files.rb || die |
60 |
-} |
61 |
- |
62 |
-each_ruby_prepare() { |
63 |
- # dev-ruby/fast_xs does not cover JRuby so still bundle it here for now |
64 |
- [[ ${RUBY} == */jruby ]] && return |
65 |
- |
66 |
- pushd .. &>/dev/null |
67 |
- epatch "${FILESDIR}"/${P}-fast_xs.patch |
68 |
- popd .. &>/dev/null |
69 |
-} |
70 |
- |
71 |
-each_ruby_configure() { |
72 |
- # dev-ruby/fast_xs does not cover JRuby so still bundle it here for now |
73 |
- [[ ${RUBY} == */jruby ]] && return |
74 |
- |
75 |
- ${RUBY} -Cext/hpricot_scan extconf.rb || die "hpricot_scan/extconf.rb failed" |
76 |
-} |
77 |
- |
78 |
-each_ruby_compile() { |
79 |
- local modname=$(get_modname) |
80 |
- |
81 |
- # dev-ruby/fast_xs does not cover JRuby so still bundle it here for now |
82 |
- if [[ ${RUBY} == */jruby ]]; then |
83 |
- ${RUBY} -S rake compile_java || die "rake compile_java failed" |
84 |
- return |
85 |
- fi |
86 |
- |
87 |
- emake V=1 -Cext/hpricot_scan CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "make hpricot_scan failed" |
88 |
- cp ext/hpricot_scan/hpricot_scan${modname} lib/ || die |
89 |
-} |