mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
dev-ruby/pygments_rb: cleanup
Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST pygments.rb-0.6.2.gem 1892352 SHA256 f4a1743be41a14f1f7ce63e03acefb9c6fabf7261c296b001191e0800f56e032 SHA512 8fd2da56d669882fa6b73073f02371ed7f9523ae115dd66bd77f2ed1d2e0abe5336e52d94fd92e85a55d813d163b0a6615233c2b27d16b5d089e0f97a2647d9c WHIRLPOOL 4caecb6182dcc712f2cdeded83bb734db7c5f988b70c0e87dd63c09ab0e75877cd780f4c5d1d64f751ca0fe3f0d8794e6f27d16a72fdfe4f1724312a705f6f12
|
||||
DIST pygments.rb-0.6.3.gem 1892352 SHA256 d19824fe964cf10388e2852ce3ee888f3e1446c9c2cdc89a55137d8183391198 SHA512 faa9d04b0571e34d5b01cf8ac8b70a68aa3e2555d222199c0090c0b71ae4046e74fc6e64fe8fd0c327fbe9c4a4efb34a91a02dec962086e8d9f8d881bff1eff0 WHIRLPOOL 6663226ee996827dd480a326a5c55c8603d5ab159c78969a2c774a45ff302c7d0b2eb4ee12601de59fb43bac207faf9b4222f1eb017ded313721906c02709db9
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby20 ruby21"
|
||||
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[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]"
|
||||
DEPEND+=" test? ( ${RDEPEND} )"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/yajl-ruby-1.2
|
||||
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 -i -e 's/~> 1.1.0/~> 1.1/' -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
|
||||
}
|
||||
Reference in New Issue
Block a user