1 |
commit: a8ee3e2c4e7439baab11db9f6f7518da6390dc66 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 8 06:20:38 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 8 06:25:05 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8ee3e2c |
7 |
|
8 |
dev-ruby/pygments_rb: add 1.2.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
dev-ruby/pygments_rb/Manifest | 1 + |
13 |
dev-ruby/pygments_rb/pygments_rb-1.2.1.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 6083750717d..8083ec0777d 100644 |
18 |
--- a/dev-ruby/pygments_rb/Manifest |
19 |
+++ b/dev-ruby/pygments_rb/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pygments.rb-1.1.2.gem 1169920 BLAKE2B 3a864349dfb93f0a54cbe31c21afc1a8a4123f7e1e8e498f92ee19a6367d4dad318e07cd78d6e9aa74834c77e4e0bd6e9c8f12519e0ca2ef104099bc3960e0d5 SHA512 dee41bf20142b6a63396504b734c183049f84629e7a943bfb361458f6f8d55e9f84ac6c28bac069d839c519eaf562bd73c74e422ebaf750a7430690a8fad043c |
22 |
+DIST pygments.rb-1.2.1.gem 1176064 BLAKE2B 7a6651606a433a9f15853ee06c3fe9a02d266f9441a08cc92c0db4ba679a97a2a25aaa4e96a621fbda0553e9b0c995ce53c6f828793f4937de12b3089f12963c SHA512 f0fc63ec028169872e28e2181c6a10c8a3f5e7f07074ba9f43475a0b5aa403a03d7045abb03433b600ef3d74c460556355b4ee64be598d3b93ddb1e0bb306259 |
23 |
|
24 |
diff --git a/dev-ruby/pygments_rb/pygments_rb-1.2.1.ebuild b/dev-ruby/pygments_rb/pygments_rb-1.2.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..0f9ba513dcd |
27 |
--- /dev/null |
28 |
+++ b/dev-ruby/pygments_rb/pygments_rb-1.2.1.ebuild |
29 |
@@ -0,0 +1,62 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+USE_RUBY="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 |
+} |