summaryrefslogtreecommitdiff
blob: 632dadfec2ada76f838f85d224e80ae4bbb1c2b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="5"

USE_RUBY=( ruby19 )
inherit eutils ruby-ng

DESCRIPTION="Ruby bindings to ncurses"
HOMEPAGE="http://sourceforge.net/projects/ncurses-ruby.berlios/"
SRC_URI="mirror://sourceforge/project/${PN}.berlios/${P}.tar.bz2"

LICENSE="LGPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

S="${WORKDIR}"/all/${P}

src_prepare() {
	# https://bugzilla.redhat.com/show_bug.cgi?id=822814#c1
	epatch "${FILESDIR}"/${P}-ruby19.patch
}

src_compile() {
	local ruby=$(ruby_implementation_command ruby19)
	${ruby} extconf.rb

	emake
}

src_install() {
	emake DESTDIR="${D}" install
}