# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit versionator

DESCRIPTION="A collection of C++ classes which allow the serial port on POSIX systems to be accessed like an iostream object."
HOMEPAGE="http://sourceforge.net/projects/libserial/"

MY_PF=$(delete_version_separator "_" ${PF})
SRC_URI="http://downloads.sourceforge.net/libserial/${MY_PF}.tar.gz"

S="${WORKDIR}/${MY_PF}"

KEYWORDS="~x86"

IUSE=""

LICENSE="GPL2" 

SLOT="0"

RDEPEND="dev-python/sip"
DEPEND="${RDEPEND}"


src_compile(){
	econf || die "econf failed"
	emake || die "make failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"
}