blob: 8ab30007e49e29a379c6650235f04bb10e937d0c (
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
70
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/kdesvn/kdesvn-1.0.5.ebuild,v 1.4 2009/08/12 16:45:46 wired Exp $
EAPI="2"
inherit cmake-utils qt3 kde-functions versionator
set-kdedir 3.5
My_PV=$(get_version_component_range 1-2)
DESCRIPTION="KDESvn is a frontend to the subversion vcs."
HOMEPAGE="http://www.alwins-world.de/wiki/programs/kdesvn"
SRC_URI="http://kdesvn.alwins-world.de/downloads/${P}.tar.bz2"
SLOT="3.5"
LICENSE="GPL-2"
KEYWORDS="amd64 x86"
IUSE="debug"
RDEPEND="!<dev-util/kdesvn-1.0.5
>=dev-util/subversion-1.4
kde-base/kdesdk-kioslaves:3.5
dev-db/sqlite"
DEPEND="${RDEPEND}
>=dev-util/cmake-2.4"
need-kde 3.5
EXTRA_ECONF+="-DCMAKE_INSTALL_PREFIX=${KDEDIR}"
LANGS="ca cs de es fr gl it ja lt nl pa ru sv"
for X in ${LANGS} ; do
IUSE="${IUSE} linguas_${X}"
done
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.0.0-asneeded.patch
epatch "${FILESDIR}"/${PN}-1.0-subversion.patch
sed -i -e "s:\${APR_CPP_FLAGS}:\${APR_CPP_FLAGS} \"-DQT_THREAD_SUPPORT\":" \
"${S}"/CMakeLists.txt || die "QT_THREAD_SUPPORT sed failed"
#remove kiosvn from CMakeLists.txt as it is already compiled from kdesdk-kioslaves
sed -i '/kiosvn/d' "${S}"/src/CMakeLists.txt
for X in ${LANGS} ; do
use linguas_${X} || rm -f po/"${X}."*
done
}
src_compile() {
# fixing up lib paths
sed -i "/^KDE3/ s:/usr/lib:${KDEDIR}/lib:g" \
"${WORKDIR}"/"${P}"_build/CMakeCache.txt ||
die "lib path fix failed"
cmake-utils_src_compile
}
pkg_postinst() {
if ! has_version 'kde-base/kompare'; then
echo
elog "For nice graphical diffs, install kde-base/kompare."
echo
fi
}
|