summaryrefslogtreecommitdiff
blob: 0d836eb88ab3ac6aa1ec466c605b935760c7ea81 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/lincvs/lincvs-1.4.4.ebuild,v 1.6 2006/07/27 05:15:11 tsunam Exp $

inherit kde-functions eutils

MY_P="${P/_/-}-0-generic-src"
S="${WORKDIR}/${P/_/-}"

DESCRIPTION="A graphical CVS client."
HOMEPAGE="http://www.lincvs.com"
SRC_URI="http://www.lincvs.com/download/${MY_P}.tgz"

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

DEPEND="kde? ( >=kde-base/kdelibs-3 )"
RDEPEND="${DEPEND}
	dev-util/cvs"
need-qt 3

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/lincvs-1.4.4-gcc-4.1.diff
}

src_compile() {
	${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake -o Makefile lincvs.pro
	sed -i -e "s/^\tstrip/#\tstrip/" \
		-e "s/CFLAGS   = -pipe -Wall -W -O2/CFLAGS   = ${CFLAGS} -Wall -W/" \
		-e "s/CXXFLAGS = -pipe -Wall -W -O2/CXXFLAGS = ${CXXFLAGS} -Wall -W/" Makefile \
	|| die "sed failed"
	emake || die "make failed"
}

src_install() {
	emake install || die "make install failed"
	echo "#!/bin/sh" > ${S}/LinCVS/lincvs
	echo "exec /usr/share/LinCVS/AppRun" >> ${S}/LinCVS/lincvs
	dobin LinCVS/lincvs
	rm ${S}/LinCVS/lincvs
	dodir /usr/share
	cp -pr ${S}/LinCVS ${D}/usr/share
	fperms 644 /usr/share/LinCVS/AppI* /usr/share/LinCVS/Messages/* \
		/usr/share/LinCVS/Help/* /usr/share/LinCVS/Help/Translations/*/*
	fperms 755 /usr/share/LinCVS/AppRun /usr/share/LinCVS/Tools/*
	dodoc AUTHORS BUGS.txt ChangeLog COPYING LICENSE NEWS THANKS VERSION
}