summaryrefslogtreecommitdiff
blob: d9016abfc2d9d6fbe02057f087174483dcc185f9 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/crossvc/crossvc-1.5.2.ebuild,v 1.5 2008/02/29 17:59:22 carlo Exp $

inherit kde-functions

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

DESCRIPTION="A graphical version-control program for cvs"
HOMEPAGE="http://www.crossvc.com/"
SRC_URI="http://www.crossvc.com/download/${MY_P}.tgz"

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

DEPEND="kde? ( >=kde-base/kdelibs-3 )
	( $(qt_min_version 3.3.0) <x11-libs/qt-4 )"
RDEPEND="${DEPEND}
	dev-util/cvs"

S="${WORKDIR}/CrossVC"

src_compile() {
	eqmake3 lincvs.pro
	sed -i -e "s/^\t-strip/#\tstrip/" \
		-e "s/CFLAGS   = -pipe -Wall -W -march=prescott -O2 -pipe -D_REENTRANT  -DUSE_TM_GMTOFF -DNANOSLEEP -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT/CFLAGS   = ${CFLAGS} -Wall -W/" \
		-e "s/CXXFLAGS = -pipe -Wall -W -march=prescott -O2 -pipe -D_REENTRANT  -DUSE_TM_GMTOFF -DNANOSLEEP -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT/CXXFLAGS = ${CXXFLAGS} -Wall -W/" Makefile \
	|| die "sed failed"
	emake || die "make failed"
}

src_install() {
	einstall || die "make install failed"

	echo "#!/bin/sh" > "${S}"/CrossVC/crossvc
	echo "exec /usr/share/CrossVC/AppRun" >> "${S}"/CrossVC/crossvc
	dobin CrossVC/crossvc
	rm "${S}"/CrossVC/crossvc

	dodir /usr/share
	cp -pr "${S}"/CrossVC "${D}"/usr/share
	cp -pr "${S}"/tools "${D}"/usr/share/CrossVC

	dodir /usr/share/pixmaps
	cp "${S}"/images/lincvs-16.xpm "${D}"/usr/share/pixmaps/crossvc-16.xpm
	make_desktop_entry crossvc "CrossVC" crossvc-16

	for i in /usr/share/CrossVC/{AppI*,Messages} ; do
		fperms 644 "${i}"
	done

	for i in /usr/share/CrossVC/{AppRun,tools} ; do
		fperms 755 "${i}"
	done

	dodoc doc/{DNOTIFY-HOWTO.txt,EXPORT-CHANGE-IMPORT.txt,FAM-HOWTO.txt,FAQ.txt,INFO.txt,INSTALL,INSTALL.html,PROXY-HOWTO.txt,README,README.html,SSH-HOWTO.txt}
	dodoc doc/translations/{de,it,ru}/*
}