public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/hpricot/
Date: Wed, 30 Jun 2021 06:56:45 +0000 (UTC)	[thread overview]
Message-ID: <1625036188.6af21437ec5607e3ebc61f7a7d9c473973f6b6dd.graaff@gentoo> (raw)

commit:     6af21437ec5607e3ebc61f7a7d9c473973f6b6dd
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 27 08:18:26 2021 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Wed Jun 30 06:56:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6af21437

dev-ruby/hpricot: fix extension install; ruby30

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/hpricot/hpricot-0.8.6-r6.ebuild | 57 ++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/dev-ruby/hpricot/hpricot-0.8.6-r6.ebuild b/dev-ruby/hpricot/hpricot-0.8.6-r6.ebuild
new file mode 100644
index 00000000000..4af8d4a90b3
--- /dev/null
+++ b/dev-ruby/hpricot/hpricot-0.8.6-r6.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/hpricot_scan/extconf.rb)
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fast and liberal HTML parser for Ruby"
+HOMEPAGE="https://wiki.github.com/hpricot/hpricot"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+ruby_add_bdepend "dev-ruby/rake
+	dev-ruby/rdoc
+	dev-ruby/rake-compiler"
+
+ruby_add_rdepend "dev-ruby/fast_xs"
+
+# Probably needs the same jdk as JRuby but I'm not sure how to express
+# that just yet.
+DEPEND+=" dev-util/ragel"
+
+all_ruby_prepare() {
+	sed -i -e '/[Bb]undler/ s:^:#:' Rakefile || die
+
+	# Fix encoding assumption of environment for Ruby 1.9.
+	# https://github.com/hpricot/hpricot/issues/52
+	# sed -i -e '1 iEncoding.default_external=Encoding::UTF_8 if RUBY_VERSION =~ /1.9/' test/load_files.rb || die
+
+	# Avoid unneeded dependency on git.
+	sed -i -e '/^REV/ s/.*/REV = "6"/' Rakefile || die
+
+	# Fix int size warning
+	sed -i -e 's/te - ts/(int)(te - ts)/' ext/hpricot_scan/hpricot_css.rl || die
+}
+
+each_ruby_prepare() {
+	pushd .. &>/dev/null
+	eapply "${FILESDIR}"/${P}-fast_xs.patch
+	popd .. &>/dev/null
+}
+
+each_ruby_compile() {
+	${RUBY} -S rake ragel || die
+
+	each_fakegem_compile
+}


             reply	other threads:[~2021-06-30  6:56 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-30  6:56 Hans de Graaff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-24 16:47 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/hpricot/ Sam James
2022-03-07  3:47 Sam James
2022-02-28  7:06 Yixun Lan
2021-10-31  8:11 Hans de Graaff
2021-10-21  5:42 Hans de Graaff
2020-02-15  6:44 Hans de Graaff
2019-04-27 16:51 Sergei Trofimovich
2019-02-01  8:41 Hans de Graaff
2018-05-21  6:20 Hans de Graaff
2017-12-29 17:41 Sergei Trofimovich
2017-11-26 12:23 Hans de Graaff
2017-07-07 18:15 Alexis Ballier
2017-06-06 22:12 Sergei Trofimovich
2017-04-30  5:33 Hans de Graaff
2017-04-29 20:54 Jeroen Roovers
2017-03-02 12:57 Fabian Groffen
2017-02-24  0:34 Michael Weber
2017-02-21 18:59 Hans de Graaff
2017-02-21 11:54 Tobias Klausmann
2016-11-27 10:39 Hans de Graaff
2016-11-27 10:34 Hans de Graaff
2016-08-05  8:16 Hans de Graaff
2016-08-05  8:16 Hans de Graaff
2016-05-28  9:23 Tobias Klausmann
2016-05-27 12:07 Hans de Graaff
2016-05-27  9:39 Hans de Graaff
2016-05-21  5:36 Hans de Graaff
2016-05-14 17:50 Fabian Groffen
2016-03-29 20:37 Markus Meier
2016-03-17 11:29 Agostino Sarubbo
2016-03-16 14:09 Agostino Sarubbo
2016-03-15 18:15 Agostino Sarubbo
2016-03-15 13:11 Agostino Sarubbo
2016-03-14 17:56 Richard Farina
2016-03-07  3:51 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1625036188.6af21437ec5607e3ebc61f7a7d9c473973f6b6dd.graaff@gentoo \
    --to=graaff@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox