summaryrefslogtreecommitdiff
blob: 17a49d2e234fa131b83a98a8ec830e06b29d8313 (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
36
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit versionator

MY_P=$(delete_version_separator "_" ${P})

DESCRIPTION="A collection of C++ classes which allow serial port access on POSIX systems like an iostream object"
HOMEPAGE="http://sourceforge.net/projects/libserial/"
SRC_URI="http://dev.gentooexperimental.org/~idl0r/distfiles/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc examples"

RDEPEND=""
DEPEND="dev-python/sip"

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

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

	doman doc/man/man3/*.3 || die "Install man pages failed!"

	if use doc; then
		dohtml -r doc/html/* || die "Install html pages failed!"
	fi

	if use examples; then
		docinto examples
		dodoc examples/{read,write}_port.cpp || die "dodoc failed";
	fi
}