| 1 |
jdhore |
1.3 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
flameeyes |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
jdhore |
1.3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/redcloth/redcloth-4.2.9.ebuild,v 1.2 2011/12/31 20:33:23 grobian Exp $
|
| 4 |
flameeyes |
1.1 |
|
| 5 |
|
|
EAPI=4
|
| 6 |
|
|
|
| 7 |
|
|
# jruby → tests still fail with UTF-8 characters
|
| 8 |
|
|
# http://jgarber.lighthouseapp.com/projects/13054/tickets/149-redcloth-4-doesnt-support-multi-bytes-content
|
| 9 |
|
|
USE_RUBY="ruby18 ree18 ruby19"
|
| 10 |
|
|
|
| 11 |
|
|
RUBY_FAKEGEM_NAME="RedCloth"
|
| 12 |
|
|
|
| 13 |
|
|
RUBY_FAKEGEM_TASK_TEST="spec"
|
| 14 |
|
|
RUBY_FAKEGEM_TASK_DOC=""
|
| 15 |
|
|
|
| 16 |
|
|
RUBY_FAKEGEM_DOCDIR="doc"
|
| 17 |
|
|
|
| 18 |
|
|
RUBY_FAKEGEM_EXTRADOC="README.rdoc CHANGELOG"
|
| 19 |
|
|
|
| 20 |
|
|
RUBY_FAKEGEM_REQUIRE_PATHS="lib/case_sensitive_require"
|
| 21 |
|
|
|
| 22 |
|
|
inherit ruby-fakegem versionator
|
| 23 |
|
|
|
| 24 |
|
|
DESCRIPTION="A module for using Textile in Ruby"
|
| 25 |
|
|
HOMEPAGE="http://redcloth.org/"
|
| 26 |
|
|
|
| 27 |
|
|
GITHUB_USER=jgarber
|
| 28 |
|
|
SRC_URI="https://github.com/${GITHUB_USER}/redcloth/tarball/v${PV} -> ${RUBY_FAKEGEM_NAME}-git-${PV}.tgz"
|
| 29 |
|
|
RUBY_S="${GITHUB_USER}-${PN}-*"
|
| 30 |
|
|
|
| 31 |
|
|
LICENSE="MIT"
|
| 32 |
|
|
SLOT="0"
|
| 33 |
jdhore |
1.3 |
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
| 34 |
flameeyes |
1.1 |
IUSE=""
|
| 35 |
|
|
|
| 36 |
|
|
DEPEND="$DEPEND
|
| 37 |
|
|
dev-util/ragel"
|
| 38 |
|
|
RDEPEND="$RDEPEND"
|
| 39 |
|
|
|
| 40 |
|
|
ruby_add_bdepend "
|
| 41 |
|
|
>=dev-ruby/rake-0.8.7
|
| 42 |
|
|
>=dev-ruby/rake-compiler-0.7.1
|
| 43 |
|
|
test? (
|
| 44 |
|
|
>=dev-ruby/rspec-2.4
|
| 45 |
|
|
>=dev-ruby/diff-lcs-1.1.2
|
| 46 |
|
|
)"
|
| 47 |
|
|
|
| 48 |
|
|
pkg_setup() {
|
| 49 |
|
|
ruby-ng_pkg_setup
|
| 50 |
|
|
|
| 51 |
|
|
# Export the VERBOSE variable to avoid remapping of stdout and
|
| 52 |
|
|
# stderr, and that breaks because of bad interactions between
|
| 53 |
|
|
# echoe, Ruby and Gentoo.
|
| 54 |
|
|
export VERBOSE=1
|
| 55 |
|
|
}
|
| 56 |
|
|
|
| 57 |
|
|
all_ruby_prepare() {
|
| 58 |
|
|
sed -i -e '/[Bb]undler/d' Rakefile ${PN}.gemspec || die
|
| 59 |
|
|
rm tasks/{release,gems,rspec}.rake || die
|
| 60 |
|
|
}
|
| 61 |
|
|
|
| 62 |
|
|
each_ruby_compile() {
|
| 63 |
|
|
# We cannot run this manually easily, because Ragel re-generation
|
| 64 |
|
|
# is a mess
|
| 65 |
|
|
${RUBY} -S rake compile || die "rake compile failed"
|
| 66 |
|
|
}
|
| 67 |
|
|
|
| 68 |
|
|
each_ruby_test() {
|
| 69 |
|
|
${RUBY} -I lib -S rspec spec || die
|
| 70 |
|
|
}
|