1 |
# Copyright 1999-2009 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/eruby/eruby-1.0.5-r1.ebuild,v 1.11 2009/08/22 22:10:28 a3li Exp $ |
4 |
|
5 |
inherit ruby |
6 |
|
7 |
IUSE="vim-syntax examples" |
8 |
|
9 |
DESCRIPTION="eRuby interprets a Ruby code embedded text file" |
10 |
HOMEPAGE="http://www.modruby.net/" |
11 |
SRC_URI="http://www.modruby.net/archive/${P}.tar.gz" |
12 |
LICENSE="GPL-2 LGPL-2.1" |
13 |
SLOT="0" |
14 |
KEYWORDS="alpha ~amd64 hppa ia64 mips ppc ppc64 sparc x86 ~x86-fbsd" |
15 |
PDEPEND="vim-syntax? ( app-vim/eruby-syntax )" |
16 |
USE_RUBY="ruby18" # doesn't build on ruby19 |
17 |
|
18 |
src_unpack() { |
19 |
unpack ${A} |
20 |
|
21 |
cd "${S}" |
22 |
epatch "${FILESDIR}"/${P}-missing-xldflags.patch |
23 |
} |
24 |
|
25 |
src_compile() { |
26 |
ruby configure.rb || die |
27 |
make || die |
28 |
} |
29 |
|
30 |
src_install () { |
31 |
make DESTDIR="${D}" install || die |
32 |
dodoc ChangeLog README* |
33 |
} |