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/pygments_rb/
Date: Thu, 20 Jul 2017 06:25:25
Message-Id: 1500531913.d859c0ef03d7d9bc5f68bec9550af4dfeb174059.graaff@gentoo
1 commit: d859c0ef03d7d9bc5f68bec9550af4dfeb174059
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 20 06:18:11 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 20 06:25:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d859c0ef
7
8 dev-ruby/pygments_rb: add 1.1.2, bug 620462
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-ruby/pygments_rb/Manifest | 1 +
13 dev-ruby/pygments_rb/pygments_rb-1.1.2.ebuild | 62 +++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-ruby/pygments_rb/Manifest b/dev-ruby/pygments_rb/Manifest
17 index 8397c6865c8..2d46e3359ef 100644
18 --- a/dev-ruby/pygments_rb/Manifest
19 +++ b/dev-ruby/pygments_rb/Manifest
20 @@ -1 +1,2 @@
21 DIST pygments.rb-0.6.3.gem 1892352 SHA256 d19824fe964cf10388e2852ce3ee888f3e1446c9c2cdc89a55137d8183391198 SHA512 faa9d04b0571e34d5b01cf8ac8b70a68aa3e2555d222199c0090c0b71ae4046e74fc6e64fe8fd0c327fbe9c4a4efb34a91a02dec962086e8d9f8d881bff1eff0 WHIRLPOOL 6663226ee996827dd480a326a5c55c8603d5ab159c78969a2c774a45ff302c7d0b2eb4ee12601de59fb43bac207faf9b4222f1eb017ded313721906c02709db9
22 +DIST pygments.rb-1.1.2.gem 1169920 SHA256 55a5deed9ecba6037ac22bf27191e0073bd460f87291b2f384922e4b0d59511c SHA512 dee41bf20142b6a63396504b734c183049f84629e7a943bfb361458f6f8d55e9f84ac6c28bac069d839c519eaf562bd73c74e422ebaf750a7430690a8fad043c WHIRLPOOL 9adfa15f5cb9a2d643c860fc52a2250dfdc51c862a031d85908b81af88d5dae1622daecfaf9a9b66c829a542a53a171e806665a0dbec266f5dc5ffbb58008650
23
24 diff --git a/dev-ruby/pygments_rb/pygments_rb-1.1.2.ebuild b/dev-ruby/pygments_rb/pygments_rb-1.1.2.ebuild
25 new file mode 100644
26 index 00000000000..13870c620f0
27 --- /dev/null
28 +++ b/dev-ruby/pygments_rb/pygments_rb-1.1.2.ebuild
29 @@ -0,0 +1,62 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +USE_RUBY="ruby21 ruby22 ruby23 ruby24"
36 +PYTHON_COMPAT=( python2_7 )
37 +
38 +RUBY_FAKEGEM_NAME="pygments.rb"
39 +MY_P="${RUBY_FAKEGEM_NAME}-${PV}"
40 +
41 +RUBY_FAKEGEM_RECIPE_TEST="rake"
42 +RUBY_FAKEGEM_RECIPE_DOC="none"
43 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
44 +
45 +RUBY_FAKEGEM_GEMSPEC="${RUBY_FAKEGEM_NAME}.gemspec"
46 +
47 +inherit ruby-fakegem python-single-r1
48 +
49 +DESCRIPTION="Pygments syntax highlighting in ruby"
50 +HOMEPAGE="https://github.com/tmm1/pygments.rb"
51 +
52 +LICENSE="MIT"
53 +SLOT="0"
54 +KEYWORDS="~amd64"
55 +IUSE=""
56 +REQUIRED_USE+=" ${PYTHON_REQUIRED_USE}"
57 +
58 +RUBY_S="${MY_P}"
59 +
60 +RDEPEND+="
61 + ${PYTHON_DEPS}
62 + >=dev-python/pygments-2.2.0[${PYTHON_USEDEP}]
63 + dev-python/simplejson[${PYTHON_USEDEP}]"
64 +DEPEND+=" test? ( ${RDEPEND} )"
65 +
66 +ruby_add_rdepend ">=dev-ruby/multi_json-1.0.0"
67 +ruby_add_bdepend "dev-ruby/rake-compiler"
68 +
69 +pkg_setup() {
70 + ruby-ng_pkg_setup
71 + python-single-r1_pkg_setup
72 +}
73 +
74 +all_ruby_prepare() {
75 + sed -i -e '/[Bb]undler/d' Rakefile || die
76 + sed -i -e '/s.files/d' pygments.rb.gemspec || die
77 + python_fix_shebang lib/pygments/mentos.py
78 + # we are loosing a "custom github lexer here", no idea what it is,
79 + # but if we need it, it should go into dev-python/pygments
80 + rm -r vendor lexers || die "removing bundled libs failed"
81 +}
82 +
83 +each_ruby_compile() {
84 + # regenerate the lexer cache, based on the system pygments pkg
85 + ${RUBY} cache-lexers.rb || die "regenerating lexer cache failed"
86 +}
87 +
88 +each_ruby_install() {
89 + each_fakegem_install
90 + ruby_fakegem_doins lexers
91 +}