blob: 3a69ebf1a7924094c1acc08b9bfcc197ecbbbe59 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/xxdiff/xxdiff-2.9.2-r1.ebuild,v 1.6 2004/02/11 18:15:47 mholzer Exp $
DESCRIPTION="A graphical file and directories comparator and merge tool."
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
RESTRICT="nomirror"
HOMEPAGE="http://xxdiff.sourceforge.net/"
DEPEND=">=x11-libs/qt-3.0.0
=dev-util/tmake-1.8*
kde? ( >=kde-base/kdelibs-3.1.0 )"
RDEPEND="${DEPEND}
sys-apps/diffutils"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~sparc"
IUSE="kde"
src_unpack()
{
unpack ${A}
if [ `use kde` ]; then
cd ${S}/src
epatch ${FILESDIR}/kdesupport.patch
fi
}
src_compile() {
cd src
tmake -o Makefile xxdiff.pro
REALHOME="$HOME"
mkdir -p $T/fakehome/.kde
mkdir -p $T/fakehome/.qt
export HOME="$T/fakehome"
addwrite "${QTDIR}/etc/settings"
# things that should access the real homedir
[ -d "$REALHOME/.ccache" ] && ln -sf "$REALHOME/.ccache" "$HOME/"
emake || die
}
src_install () {
dobin src/xxdiff
doman src/xxdiff.1
dodoc README COPYING CHANGES TODO
dodoc copyright.txt
}
|