summaryrefslogtreecommitdiff
blob: b6569daa3428f3ea23f1f77fe06e83a393b5f40b (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/lincvs/lincvs-0.9.90.ebuild,v 1.2 2002/07/23 13:28:37 seemant Exp $

S=${WORKDIR}/${P}
DESCRIPTION="A Graphical CVS Client"
SRC_URI="http://ppprs1.phy.tu-dresden.de/~trogisch/${PN}/download/LINCVS/${P}/${P}-0-generic-src.tgz"
HOMEPAGE="http://www.lincvs.org"

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

DEPEND="kde? ( =kde-base/kdelibs-2* )
	=x11-libs/qt-2*"

RDEPEND="${DEPEND}
	dev-util/cvs"

src_unpack() {

	unpack ${A}
	cd ${S}
	patch -p1 < ${FILESDIR}/nodefaults.diff

}

src_compile() {

	if [ "`use kde`" ] ; then
		myconf="${myconf} --with-kde2-support=yes"
	else
		myconf="${myconf} --with-kde2-support=no"
	fi

	libtoolize --copy --force

	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--host=${CHOST} \
		--with-qt-dir=/usr/qt/2 \
		${myconf} || die "configure failed"

	cd ${S}/src
	cp Makefile Makefile.orig
        sed -e "s:-O2:${CFLAGS}:" Makefile.orig > Makefile
	cd ${S}

	make || die "make failed"

}

src_install () {

	into /usr
	dobin src/lincvs tools/*.sh
	insinto /usr/share/doc/${P}
	insopts -m 644
	doins AUTHORS COPYING ChangeLog INSTALL \
		README SSH.txt VERSION THANKS
	dosym /usr/share/doc/${P} /usr/share/${PN}
	
}