summaryrefslogtreecommitdiff
blob: 572b589e7005892a2e4171a309c168a7ca322184 (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
47
48
49
50
51
52
53
54
55
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/qlcr/qlcr-0.4.1-r1.ebuild,v 1.3 2008/07/27 21:54:51 carlo Exp $

EAPI=1

inherit eutils kde-functions

DESCRIPTION="Qt based Least Cost Router for Germany"
HOMEPAGE="http://www.thepingofdeath.de/"
SRC_URI="mirror://sourceforge/qlcr/${P}-1.tar.bz2"

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

DEPEND="x11-libs/qt:3
	>=net-dialup/wvdial-1.54.0
	net-misc/ntp
	net-misc/wget"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}

	cd "${S}"
	# use a different provider file since the original one is no longer available
	epatch "${FILESDIR}/${P}-providerfileurl.patch"
	# reduce font size to 8 pts
	sed --in-place "s:<pointsize>9:<pointsize>8:" "${S}"/src/lcr.ui || die "sed failed"
}

src_compile() {
	cd src
	${QTDIR}/bin/qmake -o Makefile qlcr.pro || die "qmake failed"
	emake || die "emake failed"
}

src_install() {
	dobin src/qlcr

	domenu qlcr.desktop
	doicon qlcr.png

	dodoc README TODO FAQ CHANGELOG
	gunzip qlcr.1.gz
	doman qlcr.1
}

pkg_postinst() {
	elog
	elog "To use qlcr you should add the appropriate user to the dialout group."
	elog
}