summaryrefslogtreecommitdiff
blob: a7236822ece7ad0f5495da4064ae2ea756048255 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/jaffm/jaffm-1.3.ebuild,v 1.3 2007/08/02 14:30:25 uberlord Exp $

inherit toolchain-funcs wxwidgets

DESCRIPTION="Very lightweight file manager"
HOMEPAGE="http://jaffm.binary.is/"

SRC_URI="http://www.binary.is/download/${P}.tar.bz2"

LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~ppc ~x86 ~x86-fbsd"
IUSE=""

DEPEND="=x11-libs/wxGTK-2.6*"

src_unpack() {
	unpack ${A}
	cd "${S}"

	WX_GTK_VER="2.6"
	need-wxwidgets gtk2
	sed -i \
		-e "/^CPP=/ s:g++:$(tc-getCXX):" \
		-e "/^PREFIX=/ s:/local::" \
		-e "s:wx-config:${WX_CONFIG}:g" \
		-e "/^FLAGS=/ s:^.*$:FLAGS=${CXXFLAGS}:" \
		Makefile
}

src_install() {
	dobin jaffm
	dodoc README
}