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/pygments_rb/
Date: Thu, 20 Jul 2017 06:25:21 +0000 (UTC)	[thread overview]
Message-ID: <1500531913.d859c0ef03d7d9bc5f68bec9550af4dfeb174059.graaff@gentoo> (raw)

commit:     d859c0ef03d7d9bc5f68bec9550af4dfeb174059
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 20 06:18:11 2017 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu Jul 20 06:25:13 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d859c0ef

dev-ruby/pygments_rb: add 1.1.2, bug 620462

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-ruby/pygments_rb/Manifest                 |  1 +
 dev-ruby/pygments_rb/pygments_rb-1.1.2.ebuild | 62 +++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/dev-ruby/pygments_rb/Manifest b/dev-ruby/pygments_rb/Manifest
index 8397c6865c8..2d46e3359ef 100644
--- a/dev-ruby/pygments_rb/Manifest
+++ b/dev-ruby/pygments_rb/Manifest
@@ -1 +1,2 @@
 DIST pygments.rb-0.6.3.gem 1892352 SHA256 d19824fe964cf10388e2852ce3ee888f3e1446c9c2cdc89a55137d8183391198 SHA512 faa9d04b0571e34d5b01cf8ac8b70a68aa3e2555d222199c0090c0b71ae4046e74fc6e64fe8fd0c327fbe9c4a4efb34a91a02dec962086e8d9f8d881bff1eff0 WHIRLPOOL 6663226ee996827dd480a326a5c55c8603d5ab159c78969a2c774a45ff302c7d0b2eb4ee12601de59fb43bac207faf9b4222f1eb017ded313721906c02709db9
+DIST pygments.rb-1.1.2.gem 1169920 SHA256 55a5deed9ecba6037ac22bf27191e0073bd460f87291b2f384922e4b0d59511c SHA512 dee41bf20142b6a63396504b734c183049f84629e7a943bfb361458f6f8d55e9f84ac6c28bac069d839c519eaf562bd73c74e422ebaf750a7430690a8fad043c WHIRLPOOL 9adfa15f5cb9a2d643c860fc52a2250dfdc51c862a031d85908b81af88d5dae1622daecfaf9a9b66c829a542a53a171e806665a0dbec266f5dc5ffbb58008650

diff --git a/dev-ruby/pygments_rb/pygments_rb-1.1.2.ebuild b/dev-ruby/pygments_rb/pygments_rb-1.1.2.ebuild
new file mode 100644
index 00000000000..13870c620f0
--- /dev/null
+++ b/dev-ruby/pygments_rb/pygments_rb-1.1.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+PYTHON_COMPAT=( python2_7 )
+
+RUBY_FAKEGEM_NAME="pygments.rb"
+MY_P="${RUBY_FAKEGEM_NAME}-${PV}"
+
+RUBY_FAKEGEM_RECIPE_TEST="rake"
+RUBY_FAKEGEM_RECIPE_DOC="none"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${RUBY_FAKEGEM_NAME}.gemspec"
+
+inherit ruby-fakegem python-single-r1
+
+DESCRIPTION="Pygments syntax highlighting in ruby"
+HOMEPAGE="https://github.com/tmm1/pygments.rb"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+REQUIRED_USE+=" ${PYTHON_REQUIRED_USE}"
+
+RUBY_S="${MY_P}"
+
+RDEPEND+="
+	${PYTHON_DEPS}
+	>=dev-python/pygments-2.2.0[${PYTHON_USEDEP}]
+	dev-python/simplejson[${PYTHON_USEDEP}]"
+DEPEND+=" test? ( ${RDEPEND} )"
+
+ruby_add_rdepend ">=dev-ruby/multi_json-1.0.0"
+ruby_add_bdepend "dev-ruby/rake-compiler"
+
+pkg_setup() {
+	ruby-ng_pkg_setup
+	python-single-r1_pkg_setup
+}
+
+all_ruby_prepare() {
+	sed -i -e '/[Bb]undler/d' Rakefile || die
+	sed -i -e '/s.files/d' pygments.rb.gemspec || die
+	python_fix_shebang lib/pygments/mentos.py
+	# we are loosing a "custom github lexer here", no idea what it is,
+	# but if we need it, it should go into dev-python/pygments
+	rm -r vendor lexers || die "removing bundled libs failed"
+}
+
+each_ruby_compile() {
+	# regenerate the lexer cache, based on the system pygments pkg
+	${RUBY} cache-lexers.rb || die "regenerating lexer cache failed"
+}
+
+each_ruby_install() {
+	each_fakegem_install
+	ruby_fakegem_doins lexers
+}


             reply	other threads:[~2017-07-20  6:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20  6:25 Hans de Graaff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-07-27  2:09 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/pygments_rb/ Sam James
2020-02-09 16:18 Michał Górny
2019-05-22 17:20 Hans de Graaff
2018-12-21  6:38 Hans de Graaff
2018-09-09 14:32 Hans de Graaff
2018-02-08  6:25 Hans de Graaff
2017-08-25  6:09 Hans de Graaff
2017-04-21  5:07 Hans de Graaff
2017-04-20 20:48 David Seifert
2016-04-19 21:51 Manuel Rüger

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=1500531913.d859c0ef03d7d9bc5f68bec9550af4dfeb174059.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