summaryrefslogtreecommitdiff
blob: 6b7e5d19c9d3ae797be854556110b6967e3b84da (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
39
40
41
42
43
44
45
46
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/plptools/plptools-0.13.ebuild,v 1.3 2007/04/28 11:47:36 tove Exp $

inherit kde-functions eutils

DESCRIPTION="Libraries and utilities to communicate with a Psion palmtop via serial."
HOMEPAGE="http://plptools.sourceforge.net"
SRC_URI="mirror://sourceforge/plptools/${P}.tar.gz"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="x86"
DEPEND="kde? ( >=kde-base/kdelibs-3.1 )
	readline? ( sys-libs/readline )"

IUSE="kde nls readline"

src_unpack() {
	unpack ${A}

	# Applied in next versions.
	epatch "${FILESDIR}/${P}-gcc.patch"
}

src_compile() {
	set-kdedir 3

	local myconf="$(use_enable kde)
	              $(use_enable nls)
	              $(use_enable readline)
	              $(use_enable readline history)
	              --disable-newt"

	econf ${myconf} || die
	emake || die
}

src_install () {
	make DESTDIR="${D}" install || die

	dodoc CHANGES ChangeLog README TODO

	newconfd "${FILESDIR}"/psion.conf psion
	doinitd "${FILESDIR}"/psion
}