blob: cdc4ac7705b5ade0ad1a62460fb3dfbf229ec7ae (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PLOCALES="ca cs de es fr it ru"
inherit cmake-utils l10n
MY_P=${PN}4-${PV}
DESCRIPTION="A Qt frontend to nmap"
HOMEPAGE="http://www.nmapsi4.org/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="kde"
DEPEND="
dev-qt/qtcore:4
dev-qt/qtdbus:4
dev-qt/qtgui:4
dev-qt/qtwebkit:4
kde? ( kde-base/kdelibs:4 )
"
RDEPEND="${DEPEND}
>=net-analyzer/nmap-6.00
net-dns/bind-tools
"
S=${WORKDIR}/${MY_P}
DOCS=( AUTHORS HACKING NEWS TODO Translation )
PATCHES=( "${FILESDIR}/${P}-kdelibs-4.14.11.patch" )
src_prepare() {
l10n_for_each_disabled_locale_do nmapsi_disable_locale
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_build kde KDELIBS)
)
cmake-utils_src_configure
}
nmapsi_disable_locale() {
sed -i -e "/ts\/${PN}4_${1}\.ts/d" src/CMakeLists.txt || die
}
|