summaryrefslogtreecommitdiff
blob: 0f85ca435b675142eb53491e31dc56cb50e7632d (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/pgcalc2/pgcalc2-2.2.6.ebuild,v 1.1 2007/09/15 11:20:59 bicatali Exp $

inherit versionator kde

MY_PV=$(get_major_version).$(get_version_component_range 2)-$(get_version_component_range 3)
MY_P=${PN}-${MY_PV}

DESCRIPTION="Powerful scientific calculator for KDE"
SRC_URI="mirror://sourceforge/${PN/2/}/${MY_P}.tar.gz"
HOMEPAGE="http://www.pgcalc.net"

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

S=${WORKDIR}/${MY_P}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS
	if use doc; then
		dohtml -r "${S}"/htmldoc/* || die "dohtml failed"
	fi
}

pkg_postinst() {
	einfo "To use another skin, start ${PN} with:"
	einfo "\t ${MY_PN} --skinname=<skin>"
	einfo "<skin> is one of $(ls /usr/share/apps/pgcalc2/skins)"
}