summaryrefslogtreecommitdiff
blob: 58eb2f575a3f2770d1f95155299afa03c0eec09c (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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/galculator/galculator-1.3.1.ebuild,v 1.3 2007/11/13 07:54:12 opfer Exp $

DESCRIPTION="GTK+ based algebraic and RPN calculator."
HOMEPAGE="http://galculator.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"

KEYWORDS="~alpha amd64 ~ppc x86 ~x86-fbsd"
IUSE="gnome"

RDEPEND=">=x11-libs/gtk+-2.6
	>=gnome-base/libglade-2
	gnome? ( gnome-base/gnome-desktop )"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

src_unpack() {
	unpack ${A}
	use gnome || sed -i -e 's:gnome-calc2.png:calc:' "${S}"/galculator.desktop.in
	# Fix tests
	echo "about.glade" >> "${S}/po/POTFILES.skip"
	echo "basic_buttons.glade" >> "${S}/po/POTFILES.skip"
	echo "classic_view.glade" >> "${S}/po/POTFILES.skip"
	echo "dispctrl_bottom.glade" >> "${S}/po/POTFILES.skip"
	echo "dispctrl_right.glade" >> "${S}/po/POTFILES.skip"
	echo "dispctrl_right_vertical.glade" >> "${S}/po/POTFILES.skip"
	echo "main_frame.glade" >> "${S}/po/POTFILES.skip"
	echo "paper_view.glade" >> "${S}/po/POTFILES.skip"
	echo "prefs.glade" >> "${S}/po/POTFILES.skip"
	echo "scientific_buttons.glade" >> "${S}/po/POTFILES.skip"
	echo "ui/dispctrl_right_vertical.glade" >> "${S}/po/POTFILES.skip"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed."
	dodoc AUTHORS ChangeLog NEWS README THANKS TODO
}