2017-01-22 11:14:26 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2015-08-24 09:43:57 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=5
|
2017-01-22 11:14:26 +03:00
|
|
|
USE_RUBY="ruby21 ruby22 ruby23"
|
2015-08-24 09:43:57 +03:00
|
|
|
|
|
|
|
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
|
|
|
RUBY_FAKEGEM_EXTRADOC="README README.textile"
|
|
|
|
|
|
|
|
inherit ruby-fakegem
|
|
|
|
|
|
|
|
DESCRIPTION="A mediawiki parser"
|
|
|
|
HOMEPAGE="https://github.com/nricciar/wikicloth"
|
|
|
|
SRC_URI="https://github.com/nricciar/wikicloth/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE=""
|
|
|
|
|
2017-01-22 11:14:26 +03:00
|
|
|
RUBY_PATCHES=( "${FILESDIR}"/${P}-fix-tests.patch )
|
|
|
|
|
2015-08-24 09:43:57 +03:00
|
|
|
ruby_add_rdepend "dev-ruby/builder:*
|
|
|
|
dev-ruby/expression_parser
|
|
|
|
dev-ruby/htmlentities
|
|
|
|
dev-ruby/nokogiri
|
|
|
|
dev-ruby/rinku
|
|
|
|
dev-ruby/twitter-text"
|
|
|
|
ruby_add_bdepend "test? (
|
|
|
|
dev-ruby/activesupport
|
|
|
|
dev-ruby/test-unit
|
|
|
|
dev-ruby/i18n )"
|
|
|
|
|
|
|
|
all_ruby_prepare() {
|
|
|
|
sed -i \
|
|
|
|
-e '/[Bb]undler/d' \
|
|
|
|
-e "/require 'simplecov'/d" \
|
|
|
|
Rakefile || die "sed failed"
|
|
|
|
sed -i -e '1igem "test-unit"' test/test_helper.rb
|
|
|
|
}
|
|
|
|
|
|
|
|
each_ruby_test() {
|
|
|
|
${RUBY} -Ilib:test test/wiki_cloth_test.rb || die
|
|
|
|
}
|