summaryrefslogtreecommitdiff
blob: 324231b4ef740b09b50d2f36e3c6bf32a8c3f8f3 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/gwhere/gwhere-0.2.1-r1.ebuild,v 1.1 2005/10/01 15:14:25 nelchael Exp $

inherit eutils

DESCRIPTION="Removable media cataloger made with GTK+"
HOMEPAGE="http://www.gwhere.org/"
SRC_URI="http://www.gwhere.org/download/source/${P}.tar.gz"

KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
LICENSE="GPL-2"
SLOT="0"

IUSE="nls"

DEPEND="=x11-libs/gtk+-2*
		nls? ( sys-devel/gettext )"

src_unpack() {
	unpack ${A}
	if [ "${ARCH}" = "amd64" ]; then
		epatch ${FILESDIR}/${P}-amd64.patch
	fi
}

src_compile() {
	econf $(use_enable nls) --enable-gtk20 || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	# einstall is needed here
	einstall || die "einstall failed"
	dodoc AUTHORS BUGS ChangeLog NEWS README TODO || die "dodoc failed"
}