2013-01-15 12:54:42 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-09-05 18:05:14 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby_parser/ruby_parser-3.2.2.ebuild,v 1.1 2013/09/04 13:01:33 graaff Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2013-09-05 18:05:14 +04:00
|
|
|
EAPI=5
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2013-09-05 18:05:14 +04:00
|
|
|
USE_RUBY="ruby18 ruby19 jruby"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
RUBY_FAKEGEM_TASK_DOC="docs"
|
|
|
|
RUBY_FAKEGEM_DOCDIR="doc"
|
|
|
|
RUBY_FAKEGEM_EXTRADOC="README.txt History.txt"
|
|
|
|
|
|
|
|
inherit ruby-fakegem
|
|
|
|
|
|
|
|
DESCRIPTION="A ruby parser written in pure ruby."
|
2013-09-05 18:05:14 +04:00
|
|
|
HOMEPAGE="https://github.com/seattlerb/ruby_parser"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
LICENSE="MIT"
|
2013-09-05 18:05:14 +04:00
|
|
|
SLOT="3"
|
2013-01-15 12:54:42 +04:00
|
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
2012-02-06 16:39:49 +04:00
|
|
|
IUSE=""
|
|
|
|
|
2013-09-05 18:05:14 +04:00
|
|
|
ruby_add_rdepend ">=dev-ruby/sexp_processor-4.1:4
|
|
|
|
!<dev-ruby/ruby_parser-2.3.1-r1"
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
ruby_add_bdepend "doc? ( >=dev-ruby/hoe-2.9.1 )"
|
2013-09-05 18:05:14 +04:00
|
|
|
ruby_add_bdepend "test? ( >=dev-ruby/minitest-4.3 )"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
all_ruby_prepare() {
|
|
|
|
# Remove reference to perforce method that is not in a released
|
|
|
|
# version of hoe-seattlerb.
|
2013-09-05 18:05:14 +04:00
|
|
|
#sed -i -e '/perforce/d' Rakefile || die
|
2012-02-08 10:16:21 +04:00
|
|
|
|
|
|
|
sed -i -e '/Hoe.plugin :isolate/ s:^:#:' Rakefile || die
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
2013-09-05 18:05:14 +04:00
|
|
|
|
|
|
|
each_ruby_prepare() {
|
|
|
|
case ${RUBY} in
|
|
|
|
*jruby)
|
|
|
|
# Disable tests failing on jruby related to //n regexp
|
|
|
|
# https://github.com/seattlerb/ruby_parser/issues/117
|
|
|
|
rm test/test_ruby_parser.rb || die
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|