blob: 438414f3064d46e81fd8f8fb7c0adfecee571a16 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/kvpnc/kvpnc-0.9.1.ebuild,v 1.1 2009/03/09 19:30:55 scarabeus Exp $
EAPI=2
KDE_LINGUAS="bg ca da de es fr hu it ja nl pl pt_BR ru sk sv tr zh_CN"
inherit kde4-base
DESCRIPTION="kvpnc - a KDE-VPN connection utility"
HOMEPAGE="http://home.gna.org/kvpnc/"
SRC_URI="http://download.gna.org/kvpnc/${P}-kde4.tar.bz2
http://download.gna.org/kvpnc/${P}-kde4-locale.tar.bz2"
LICENSE="GPL-2"
SLOT="1" # kde4
KEYWORDS="~amd64 ~x86"
IUSE="+crypt"
DEPEND="!net-misc/kvpnc:0
sys-devel/gettext
crypt? ( dev-libs/libgcrypt )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}-kde4"
src_unpack() {
unpack ${A}
mv "${P}-kde4-locale/po" "${S}/"
# doing this per line for better readability
echo "find_package ( Msgfmt REQUIRED )" >> "${S}"/CMakeLists.txt
echo "find_package ( Gettext REQUIRED )" >> "${S}"/CMakeLists.txt
echo "add_subdirectory ( po )" >> "${S}"/CMakeLists.txt
}
src_prepare() {
kde4-base_src_prepare
# fix package version; how they can release such mess
sed -i \
-e "s:0.9.0-svn:0.9.1:g" \
CMakeLists.txt || die "failed to fix PV"
}
src_configure() {
mycmakeargs="$(cmake-utils_use_with crypt libgcrypt)"
kde4-base_src_configure
}
|