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, 30 Apr 2017 05:33:32
Message-Id: 1493530139.b664985165b8160d719d264d32263193fca486c6.graaff@gentoo
1 commit: b664985165b8160d719d264d32263193fca486c6
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 30 05:28:59 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 30 05:28:59 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6649851
7
8 dev-ruby/hpricot: cleanup
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-ruby/hpricot/hpricot-0.8.6-r3.ebuild | 60 --------------------------------
13 1 file changed, 60 deletions(-)
14
15 diff --git a/dev-ruby/hpricot/hpricot-0.8.6-r3.ebuild b/dev-ruby/hpricot/hpricot-0.8.6-r3.ebuild
16 deleted file mode 100644
17 index 7c61e24b7f8..00000000000
18 --- a/dev-ruby/hpricot/hpricot-0.8.6-r3.ebuild
19 +++ /dev/null
20 @@ -1,60 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -
26 -USE_RUBY="ruby20 ruby21 ruby22 ruby23"
27 -
28 -RUBY_FAKEGEM_DOCDIR="doc"
29 -RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
30 -
31 -inherit ruby-fakegem eutils
32 -
33 -DESCRIPTION="A fast and liberal HTML parser for Ruby"
34 -HOMEPAGE="https://wiki.github.com/hpricot/hpricot"
35 -
36 -LICENSE="MIT"
37 -SLOT="0"
38 -KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
39 -IUSE=""
40 -
41 -ruby_add_bdepend "dev-ruby/rake
42 - dev-ruby/rake-compiler"
43 -
44 -ruby_add_rdepend "dev-ruby/fast_xs"
45 -
46 -# Probably needs the same jdk as JRuby but I'm not sure how to express
47 -# that just yet.
48 -DEPEND+=" dev-util/ragel"
49 -
50 -all_ruby_prepare() {
51 - sed -i -e '/[Bb]undler/ s:^:#:' Rakefile || die
52 -
53 - # Fix encoding assumption of environment for Ruby 1.9.
54 - # https://github.com/hpricot/hpricot/issues/52
55 - # sed -i -e '1 iEncoding.default_external=Encoding::UTF_8 if RUBY_VERSION =~ /1.9/' test/load_files.rb || die
56 -
57 - # Avoid unneeded dependency on git.
58 - sed -i -e '/^REV/ s/.*/REV = "6"/' Rakefile || die
59 -
60 - # Fix int size warning
61 - sed -i -e 's/te - ts/(int)(te - ts)/' ext/hpricot_scan/hpricot_css.rl || die
62 -}
63 -
64 -each_ruby_prepare() {
65 - pushd .. &>/dev/null
66 - epatch "${FILESDIR}"/${P}-fast_xs.patch
67 - popd .. &>/dev/null
68 -}
69 -
70 -each_ruby_configure() {
71 - ${RUBY} -Cext/hpricot_scan extconf.rb || die "hpricot_scan/extconf.rb failed"
72 -}
73 -
74 -each_ruby_compile() {
75 - local modname=$(get_modname)
76 -
77 - ${RUBY} -S rake ragel || die
78 - emake V=1 -Cext/hpricot_scan CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "make hpricot_scan failed"
79 - cp ext/hpricot_scan/hpricot_scan${modname} lib/ || die
80 -}