/[gentoo-x86]/dev-ruby/maruku/maruku-0.6.0-r2.ebuild
Gentoo

Contents of /dev-ruby/maruku/maruku-0.6.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Jul 25 06:25:49 2012 UTC (2 years, 4 months ago) by graaff
Branch: MAIN
Changes since 1.5: +11 -1 lines
Fix USE=doc with ruby19 as main interpreter, bug 427856. Add tests but restrict them due to failures for now.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

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/maruku/maruku-0.6.0-r2.ebuild,v 1.5 2012/05/01 18:24:09 armin76 Exp $
4
5 EAPI=2
6
7 USE_RUBY="ruby18 ruby19 ree18 jruby"
8
9 RUBY_FAKEGEM_TASK_TEST=""
10
11 RUBY_FAKEGEM_TASK_DOC="-I. rdoc"
12 RUBY_FAKEGEM_DOCDIR="doc"
13 RUBY_FAKEGEM_EXTRADOC="docs/changelog.md docs/div_syntax.md docs/entity_test.md
14 docs/markdown_syntax.md docs/maruku.md docs/math.md docs/other_stuff.md
15 docs/proposal.md"
16
17 inherit ruby-fakegem
18
19 DESCRIPTION="A Markdown-superset interpreter written in Ruby."
20 HOMEPAGE="http://maruku.rubyforge.org/"
21
22 LICENSE="GPL-2"
23 SLOT="0"
24 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25 IUSE=""
26
27 # Tests fail in various ways, possibly due to missing
28 # dependencies. Since we shipped this without any tests for over a year
29 # just restrict them for now and revisit for the next version.
30 RESTRICT=test
31
32 ruby_add_rdepend dev-ruby/syntax
33
34 all_ruby_prepare() {
35 sed -i \
36 -e '/Gem::manage_gems/s:^:#:' \
37 -e '/jamis\.rb/s:^:#:' \
38 Rakefile
39 }
40
41 each_ruby_test() {
42 ${RUBY} -Ilib bin/marutest $(find tests/unittest -name '*.md') || die
43 }
44
45 pkg_postinst() {
46 elog
47 elog "You need to emerge app-text/texlive and dev-tex/latex-unicode if"
48 elog "you want to use --pdf with Maruku. You may also want to emerge"
49 elog "dev-tex/listings to enable LaTeX syntax highlighting."
50 elog
51 }

  ViewVC Help
Powered by ViewVC 1.1.20