summaryrefslogtreecommitdiff
blob: 5c4ff169c479567c7b8df52c10811fa35eba8180 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-serialport/ruby-serialport-0.7.0.ebuild,v 1.1 2009/08/24 20:21:53 graaff Exp $

inherit ruby

DESCRIPTION="a library for serial port (rs232) access in ruby"
HOMEPAGE="http://rubyforge.org/projects/ruby-serialport/"
SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ia64 ~ppc ~x86"
IUSE=""
USE_RUBY="ruby18"
DEPEND="=dev-lang/ruby-1.8*"
RDEPEND="${DEPEND}"

src_compile() {
	cd ext
	ruby18 extconf.rb || die
	emake || die
}

src_install() {
	cd ext
	emake DESTDIR="${D}" install || die
	cd "${S}"
	dodoc ChangeLog README
}