summaryrefslogtreecommitdiff
blob: 3f2ead6b346eedaf7d66f59f5ef7e213567e862e (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/pgcalc2/pgcalc2-2.2.10.ebuild,v 1.1 2008/08/30 17:06:15 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"

need-kde 3

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)"
}