blob: 75fe48ea78922b46a4cbb9f2836be7acda7f4dfc (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/lincvs/lincvs-1.3.2.ebuild,v 1.6 2005/04/21 19:10:06 hansmi Exp $
inherit kde-functions eutils gcc
IUSE="kde"
DESCRIPTION="A graphical CVS client."
SRC_URI="http://ppprs1.phy.tu-dresden.de/~trogisch/${PN}/download/20_LinCVS/hl_${P}/${P}-0-generic-src.tgz"
HOMEPAGE="http://www.lincvs.org"
SLOT="0"
KEYWORDS="x86 ~sparc ppc ~amd64"
LICENSE="GPL-2"
DEPEND="kde? ( >=kde-base/kdelibs-3 )
>=dev-util/cvs-1.11.16"
RDEPEND="${DEPEND}
dev-util/cvs"
need-qt 3
src_unpack() {
unpack ${A}
cd ${S}
#apply both patches to compile with gcc-3.4.0 closing bug #63957
if [ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "4" ]
then
epatch ${FILESDIR}/lincvs-${PV}-gcc34.patch
fi
}
src_compile() {
qmake -o Makefile lincvs.pro
sed -e "s/^\tstrip/#\tstrip/" -i Makefile
sed -i -e "s/CFLAGS = -pipe -Wall -W -O2/CFLAGS = ${CFLAGS} -Wall -W/" Makefile
sed -i -e "s/CXXFLAGS = -pipe -Wall -W -O2/CXXFLAGS = ${CXXFLAGS} -Wall -W/" Makefile
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
}
|