| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/coderay/coderay-1.0.0.ebuild,v 1.2 2011/12/08 19:50:44 flameeyes Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
USE_RUBY="ruby18 ree18 ruby19 jruby"
|
| 8 |
|
| 9 |
# The test target also contains test:exe but that requires
|
| 10 |
# shoulda-context which we do not have packaged yet.
|
| 11 |
RUBY_FAKEGEM_TASK_TEST="test:functional test:units"
|
| 12 |
|
| 13 |
RUBY_FAKEGEM_TASK_DOC="doc"
|
| 14 |
RUBY_FAKEGEM_DOCDIR="doc"
|
| 15 |
|
| 16 |
RUBY_FAKEGEM_EXTRADOC="Changes-1.0.textile Changes.textile IDEA README.textile TODO"
|
| 17 |
|
| 18 |
inherit ruby-fakegem
|
| 19 |
|
| 20 |
DESCRIPTION="A Ruby library for syntax highlighting."
|
| 21 |
HOMEPAGE="http://coderay.rubychan.de/"
|
| 22 |
SRC_URI="https://github.com/rubychan/coderay/tarball/v${PV} -> ${P}.tgz"
|
| 23 |
|
| 24 |
RUBY_S="rubychan-coderay-*"
|
| 25 |
|
| 26 |
LICENSE="LGPL-2.1"
|
| 27 |
SLOT="0"
|
| 28 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
|
| 29 |
IUSE=""
|
| 30 |
|
| 31 |
# Redcloth is optional but automagically tested, so we add this
|
| 32 |
# dependency to ensure that we get at least a version that works: bug
|
| 33 |
# 330621. We use this convoluted way because redcloth isn't available
|
| 34 |
# yet for jruby.
|
| 35 |
USE_RUBY="${USE_RUBY/jruby/}" ruby_add_bdepend "test? ( >=dev-ruby/redcloth-4.2.2 )"
|
| 36 |
|
| 37 |
all_ruby_prepare() {
|
| 38 |
# Don't run two tests that are known to break on jruby 1.5. We
|
| 39 |
# should depend on jruby 1.6 to fix this, but only the tests are
|
| 40 |
# broken. https://github.com/rubychan/coderay/issues/4
|
| 41 |
sed -i -e '22,35d' test/unit/file_type.rb || die
|
| 42 |
sed -i -e '48,61d' test/unit/plugin.rb || die
|
| 43 |
}
|