summaryrefslogtreecommitdiff
blob: 5173df130f3db5afdf07473101723c89156f37cb (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
37
38
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

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="~amd64 ~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
}