summaryrefslogtreecommitdiff
blob: 38ad4630f7f367a2af5f144d1462d039264479be (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/khacc/khacc-3.2.1.ebuild,v 1.6 2006/10/14 11:12:36 flameeyes Exp $

inherit kde eutils

DESCRIPTION="KDE personal accounting system based on QHacc."
HOMEPAGE="http://qhacc.sourceforge.net"
SRC_URI="mirror://sourceforge/qhacc/${P}.tar.gz
	mirror://gentoo/kde-admindir-3.5.3.tar.bz2"

SLOT="0"
KEYWORDS="x86 sparc ppc"
LICENSE="GPL-2"
IUSE=""


DEPEND="~app-office/qhacc-${PV}"
RDEPEND="~app-office/qhacc-${PV}"
need-kde 3

src_unpack() {
	kde_src_unpack
	epatch ${FILESDIR}/${P}.diff
}

src_compile() {
	local myconf="--with-qhacc-config=/usr/bin"
	kde_src_compile
}

pkg_postinst() {
	echo
	einfo "A sample configuration is provided in /usr/share/qhacc/easysetup."
	einfo "copy files: \`mkdir ~/.qhacc ; cp /usr/share/qhacc/easysetup/* ~/.qhacc\`"
	einfo "run program: \`khacc -f ~/.qhacc/\`"
	einfo "set alias: \`echo -e \\\n \"alias khacc=\\\"khacc -f ~/.qhacc\\\"\" >> ~/.bashrc\`"
	echo
}