blob: 5dcb2c42a32b2a696b3e8ffbda1cc5a2602aa5a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pygments_rb/pygments_rb-0.6.0.ebuild,v 1.2 2014/07/16 13:35:19 mrueg Exp $
EAPI=5
USE_RUBY="ruby19 ruby20"
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"
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+=" dev-python/pygments[${PYTHON_USEDEP}]
dev-python/simplejson[${PYTHON_USEDEP}]"
DEPEND+=" test? ( ${RDEPEND} )"
ruby_add_rdepend ">=dev-ruby/yajl-ruby-1.1
dev-ruby/posix-spawn"
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 failed"
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
}
|