summaryrefslogtreecommitdiff
blob: d78506693c4480e7a001e658636efd2e5500508d (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 2011-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"
inherit qt4-r2

DESCRIPTION="cross-platform serial port class"
HOMEPAGE="http://code.google.com/p/qextserialport/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"

RDEPEND="x11-libs/qt-core:4"
DEPEND="${RDEPEND}"

PATCHES=(
	"${FILESDIR}/${P}-install.patch"
)

S=${WORKDIR}/${PN}

src_install() {
	qt4-r2_src_install
	dolib build/libqextserialport* || die
	if use doc ; then
		dohtml html/* || die
	fi
	if use examples ; then
		insinto /usr/share/doc/${PF}/examples
		doins -r examples/* || die
	fi
}