diff options
Diffstat (limited to 'net-misc/kvpnc/kvpnc-0.9.3.ebuild')
-rw-r--r-- | net-misc/kvpnc/kvpnc-0.9.3.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/net-misc/kvpnc/kvpnc-0.9.3.ebuild b/net-misc/kvpnc/kvpnc-0.9.3.ebuild new file mode 100644 index 000000000000..ecd5a57f65b3 --- /dev/null +++ b/net-misc/kvpnc/kvpnc-0.9.3.ebuild @@ -0,0 +1,49 @@ +# 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.3.ebuild,v 1.1 2009/10/08 20:59:36 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="4" +KEYWORDS="~amd64 ~x86" +IUSE="+crypt" + +DEPEND=" + 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 + # and they are doing it with each release + sed -i \ + -e "s:0.9.2-svn:0.9.3:g" \ + CMakeLists.txt || die "failed to fix PV" +} + +src_configure() { + mycmakeargs="$(cmake-utils_use_with crypt libgcrypt)" + kde4-base_src_configure +} |