summaryrefslogtreecommitdiff
blob: e381c74e4b6e22862ed5734648ee55974381b865 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/qgit/qgit-1.1_rc1.ebuild,v 1.1 2006/01/09 08:16:53 ferdy Exp $

MY_PV=${PV//_/}
MY_P=${PN}-${MY_PV}

DESCRIPTION="GUI interface for git/cogito SCM"
HOMEPAGE="http://digilander.libero.it/mcostalba/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=">=x11-libs/qt-3.3
	dev-util/scons"
RDEPEND=">=x11-libs/qt-3.3
	>=dev-util/git-0.99.9"

S=${WORKDIR}/${MY_P}

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

	# If scons sucked less this would be easier
	MY_CXXFLAGS=${CXXFLAGS// /\',\'}
	sed -i -e "s~-O2~${MY_CXXFLAGS}~" SConstruct || die "sed failed"
}

src_compile() {
	scons || die "scons failed"
}

src_install() {
	dobin bin/qgit
	dodoc README ChangeLog
}