view net-misc/ike/ike-2.2.1-r3.ebuild @ 496:246f2344f32f

updated vscodium ebuild
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 20 Dec 2019 04:32:24 +0100
parents 0b4e563c0b7e
children
line wrap: on
line source

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=6

CMAKE_IN_SOURCE_BUILD="1"
inherit cmake-utils linux-info versionator

MY_PV=$(replace_version_separator 3 '-' ${PV/rc})
MY_P=${PN}-${PV}-release

DESCRIPTION="Shrew soft VPN Client"
HOMEPAGE="http://www.shrew.net/"
SRC_URI="https://www.shrew.net/download/${PN}/${MY_P}.tgz"

LICENSE="shrew"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ldap nat qt4"

COMMON_DEPEND="dev-libs/libedit
	dev-libs/openssl
	qt4? ( dev-qt/qtcore )
	ldap? ( net-nds/openldap )"
DEPEND="${COMMON_DEPEND}
	dev-util/cmake
	>=sys-devel/bison-2.3
	sys-devel/flex"
RDEPEND="${COMMON_DEPEND}"

DOCS="CONTRIB.TXT README.TXT TODO.TXT"

CONFIG_CHECK="INET_XFRM_MODE_TRANSPORT INET_XFRM_MODE_TUNNEL"

S="${WORKDIR}/${PN}"

src_configure(){
	mycmakeargs+=( -DLDAP=$(usex ldap)
		-DNATT=$(usex nat)
		-DQTGUI=$(usex qt4)
		"-DMANDIR=/usr/share/man")

	cmake-utils_src_configure
}

src_install(){
	cmake-utils_src_install
	# multilib strict fix
	mv "${ED}/usr/lib" "${ED}/usr/$(get_libdir)" || die "mv failed"
	doinitd ${FILESDIR}/iked || die
}