Gentoo Archives: gentoo-commits

From: "Manuel Rueger (mrueg)" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/pygments_rb: pygments_rb-0.6.0-r1.ebuild ChangeLog pygments_rb-0.5.4.ebuild pygments_rb-0.6.0.ebuild
Date: Tue, 02 Sep 2014 15:31:36
Message-Id: 20140902153131.355474885@oystercatcher.gentoo.org
1 mrueg 14/09/02 15:31:31
2
3 Modified: ChangeLog
4 Added: pygments_rb-0.6.0-r1.ebuild
5 Removed: pygments_rb-0.5.4.ebuild pygments_rb-0.6.0.ebuild
6 Log:
7 Add ruby21 target. Cleanup old.
8
9 (Portage version: 2.2.12-r1/cvs/Linux x86_64, signed Manifest commit with key )
10
11 Revision Changes Path
12 1.5 dev-ruby/pygments_rb/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/pygments_rb/ChangeLog?rev=1.5&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/pygments_rb/ChangeLog?rev=1.5&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/pygments_rb/ChangeLog?r1=1.4&r2=1.5
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/pygments_rb/ChangeLog,v
21 retrieving revision 1.4
22 retrieving revision 1.5
23 diff -u -r1.4 -r1.5
24 --- ChangeLog 15 Aug 2014 15:01:29 -0000 1.4
25 +++ ChangeLog 2 Sep 2014 15:31:31 -0000 1.5
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-ruby/pygments_rb
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pygments_rb/ChangeLog,v 1.4 2014/08/15 15:01:29 mrueg Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pygments_rb/ChangeLog,v 1.5 2014/09/02 15:31:31 mrueg Exp $
31 +
32 +*pygments_rb-0.6.0-r1 (02 Sep 2014)
33 +
34 + 02 Sep 2014; Manuel Rüger <mrueg@g.o> +pygments_rb-0.6.0-r1.ebuild,
35 + -pygments_rb-0.5.4.ebuild, -pygments_rb-0.6.0.ebuild:
36 + Add ruby21 target. Cleanup old.
37
38 15 Aug 2014; Manuel Rüger <mrueg@g.o> pygments_rb-0.6.0.ebuild:
39 Restrict yajl-ruby dependency to =1.1*.
40
41
42
43 1.1 dev-ruby/pygments_rb/pygments_rb-0.6.0-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/pygments_rb/pygments_rb-0.6.0-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/pygments_rb/pygments_rb-0.6.0-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pygments_rb-0.6.0-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/pygments_rb/pygments_rb-0.6.0-r1.ebuild,v 1.1 2014/09/02 15:31:31 mrueg Exp $
53
54 EAPI=5
55
56 USE_RUBY="ruby19 ruby20 ruby21"
57 PYTHON_COMPAT=( python2_7 )
58
59 RUBY_FAKEGEM_NAME="pygments.rb"
60 MY_P="${RUBY_FAKEGEM_NAME}-${PV}"
61
62 RUBY_FAKEGEM_RECIPE_TEST="rake"
63 RUBY_FAKEGEM_RECIPE_DOC="none"
64 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
65
66 inherit ruby-fakegem python-single-r1
67
68 DESCRIPTION="pygments syntax highlighting in ruby"
69 HOMEPAGE="https://github.com/tmm1/pygments.rb"
70
71 LICENSE="MIT"
72 SLOT="0"
73 KEYWORDS="~amd64"
74 IUSE=""
75 REQUIRED_USE+=" ${PYTHON_REQUIRED_USE}"
76
77 RUBY_S="${MY_P}"
78
79 RDEPEND+=" dev-python/pygments[${PYTHON_USEDEP}]
80 dev-python/simplejson[${PYTHON_USEDEP}]"
81 DEPEND+=" test? ( ${RDEPEND} )"
82
83 ruby_add_rdepend ">=dev-ruby/yajl-ruby-1.1
84 dev-ruby/posix-spawn"
85 ruby_add_bdepend "dev-ruby/rake-compiler"
86
87 pkg_setup() {
88 ruby-ng_pkg_setup
89 python-single-r1_pkg_setup
90 }
91
92 all_ruby_prepare() {
93 sed -i -e '/[Bb]undler/d' Rakefile || die
94 sed -i -e 's/~> 1.1.0/~> 1.1/' pygments.rb.gemspec || die
95 python_fix_shebang lib/pygments/mentos.py
96 # we are loosing a "custom github lexer here", no idea what it is,
97 # but if we need it, it should go into dev-python/pygments
98 rm -r vendor lexers || die "removing bundled libs failed"
99 }
100
101 each_ruby_compile() {
102 # regenerate the lexer cache, based on the system pygments pkg
103 ${RUBY} cache-lexers.rb || die "regenerating lexer cache failed"
104 }
105
106 each_ruby_install() {
107 each_fakegem_install
108 ruby_fakegem_doins lexers
109 }