Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/hpricot/
Date: Sun, 31 Oct 2021 08:11:34
Message-Id: 1635667887.82a0a32320083d86d1862672aaaff2dfdb19c94c.graaff@gentoo
1 commit: 82a0a32320083d86d1862672aaaff2dfdb19c94c
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 31 08:10:10 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 08:11:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82a0a323
7
8 dev-ruby/hpricot: cleanup
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/hpricot/hpricot-0.8.6-r5.ebuild | 61 --------------------------------
14 1 file changed, 61 deletions(-)
15
16 diff --git a/dev-ruby/hpricot/hpricot-0.8.6-r5.ebuild b/dev-ruby/hpricot/hpricot-0.8.6-r5.ebuild
17 deleted file mode 100644
18 index 4fe2280623e..00000000000
19 --- a/dev-ruby/hpricot/hpricot-0.8.6-r5.ebuild
20 +++ /dev/null
21 @@ -1,61 +0,0 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=5
26 -
27 -USE_RUBY="ruby24 ruby25 ruby26 ruby27"
28 -
29 -RUBY_FAKEGEM_DOCDIR="doc"
30 -RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
31 -
32 -inherit ruby-fakegem epatch
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="amd64 arm ~arm64 ~hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
40 -IUSE=""
41 -
42 -ruby_add_bdepend "dev-ruby/rake
43 - dev-ruby/rdoc
44 - dev-ruby/rake-compiler"
45 -
46 -ruby_add_rdepend "dev-ruby/fast_xs"
47 -
48 -# Probably needs the same jdk as JRuby but I'm not sure how to express
49 -# that just yet.
50 -DEPEND+=" dev-util/ragel"
51 -
52 -all_ruby_prepare() {
53 - sed -i -e '/[Bb]undler/ s:^:#:' Rakefile || die
54 -
55 - # Fix encoding assumption of environment for Ruby 1.9.
56 - # https://github.com/hpricot/hpricot/issues/52
57 - # sed -i -e '1 iEncoding.default_external=Encoding::UTF_8 if RUBY_VERSION =~ /1.9/' test/load_files.rb || die
58 -
59 - # Avoid unneeded dependency on git.
60 - sed -i -e '/^REV/ s/.*/REV = "6"/' Rakefile || die
61 -
62 - # Fix int size warning
63 - sed -i -e 's/te - ts/(int)(te - ts)/' ext/hpricot_scan/hpricot_css.rl || die
64 -}
65 -
66 -each_ruby_prepare() {
67 - pushd .. &>/dev/null
68 - epatch "${FILESDIR}"/${P}-fast_xs.patch
69 - popd .. &>/dev/null
70 -}
71 -
72 -each_ruby_configure() {
73 - ${RUBY} -Cext/hpricot_scan extconf.rb || die "hpricot_scan/extconf.rb failed"
74 -}
75 -
76 -each_ruby_compile() {
77 - local modname=$(get_modname)
78 -
79 - ${RUBY} -S rake ragel || die
80 - emake V=1 -Cext/hpricot_scan CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}"
81 - cp ext/hpricot_scan/hpricot_scan${modname} lib/ || die
82 -}