summaryrefslogtreecommitdiff
blob: 286cfb2dd9ceb6116ee967adc0e7f2bf3abf8ec9 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="GTK image viewer"
HOMEPAGE="http://shallowsky.com/software/pho/"
SRC_URI="http://shallowsky.com/software/${PN}/${P}.tar.gz"

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

DEPEND="dev-util/pkgconfig
	x11-libs/gtk+"
RDEPEND="x11-libs/gtk+"

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i -e "s:-g -O -Wall:${CFLAGS}:" Makefile\
		|| die "sed fix of cflags failed"
	sed -i -e "s:-Wall -g -O2:${CFLAGS}:" exif/Makefile\
		|| die "sed fix of cflags2 failed"
}

src_install() {
	dobin pho || die "installation failed"
	doman pho.1
}