blob: 5e31fda92f035d2bedf7c5c63a40b912dc4b98a6 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/grpn/grpn-1.1.2-r1.ebuild,v 1.3 2008/05/10 21:50:38 drac Exp $
EAPI=1
inherit eutils toolchain-funcs
DESCRIPTION="a graphical reverse polish notatiton (RPN) calculator for GTK+-1.2"
HOMEPAGE="http://lashwhip.com/grpn.html"
SRC_URI="http://lashwhip.com/grpn/${P}.tar.gz"
RDEPEND="x11-libs/gtk+:1"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~hppa ppc ~sparc x86"
IUSE=""
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-implicit-declarations.patch
}
src_compile() {
emake CFLAGS="${CFLAGS} $(pkg-config --cflags gtk+) -DGTK_VER_1_1" \
CC=$(tc-getCC) || die "emake failed."
}
src_install() {
dobin grpn || die "dobin failed."
doman grpn.1
dodoc CHANGES README
make_desktop_entry grpn "RPN calculator" calc
}
|