Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 498726 | Differences between
and this patch

Collapse All | Expand All

(-)/var/package-manager/portage/net-analyzer/nmap/nmap-6.25.ebuild (-13 / +16 lines)
Lines 2-10 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-6.25.ebuild,v 1.30 2014/08/28 10:07:45 jer Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-6.25.ebuild,v 1.30 2014/08/28 10:07:45 jer Exp $
4
4
5
EAPI="4"
5
EAPI=5
6
6
7
inherit eutils flag-o-matic python toolchain-funcs
7
PYTHON_COMPAT=( python2_{6,7} )
8
PYTHON_REQ_USE="sqlite"
9
inherit eutils flag-o-matic python-single-r1 toolchain-funcs
8
10
9
MY_P=${P/_beta/BETA}
11
MY_P=${P/_beta/BETA}
10
12
Lines 20-46 Link Here
20
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
22
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
21
23
22
IUSE="gtk ipv6 +lua ncat ndiff nls nmap-update nping ssl"
24
IUSE="gtk ipv6 +lua ncat ndiff nls nmap-update nping ssl"
25
REQUIRED_USE="
26
	gtk? ( ${PYTHON_REQUIRED_USE} )
27
	ndiff? ( ${PYTHON_REQUIRED_USE} )
28
"
23
NMAP_LINGUAS="de es fr hr hu id it ja pl pt_BR pt_PT ro ru sk zh"
29
NMAP_LINGUAS="de es fr hr hu id it ja pl pt_BR pt_PT ro ru sk zh"
24
for lingua in ${NMAP_LINGUAS}; do
30
for lingua in ${NMAP_LINGUAS}; do
25
	IUSE+=" linguas_${lingua}"
31
	IUSE+=" linguas_${lingua}"
26
done
32
done
27
33
28
NMAP_PYTHON_DEPEND="
29
|| (
30
	dev-lang/python:2.7[sqlite]
31
)
32
"
33
RDEPEND="
34
RDEPEND="
34
	dev-libs/apr
35
	dev-libs/libpcre
35
	dev-libs/libpcre
36
	net-libs/libpcap[ipv6?]
36
	net-libs/libpcap[ipv6?]
37
	gtk? (
37
	gtk? (
38
		>=x11-libs/gtk+-2.6:2
38
		>=x11-libs/gtk+-2.6:2
39
		>=dev-python/pygtk-2.6
39
		>=dev-python/pygtk-2.6:2[${PYTHON_USEDEP}]
40
		${NMAP_PYTHON_DEPEND}
40
		${PYTHON_DEPS}
41
	)
41
	)
42
	lua? ( >=dev-lang/lua-5.1.4-r1[deprecated] )
42
	lua? ( >=dev-lang/lua-5.1.4-r1[deprecated] )
43
	ndiff? ( ${NMAP_PYTHON_DEPEND} )
43
	ndiff? ( ${PYTHON_DEPS} )
44
	nls? ( virtual/libintl )
44
	nls? ( virtual/libintl )
45
	nmap-update? ( dev-libs/apr dev-vcs/subversion )
45
	nmap-update? ( dev-libs/apr dev-vcs/subversion )
46
	ssl? ( dev-libs/openssl )
46
	ssl? ( dev-libs/openssl )
Lines 54-60 Link Here
54
54
55
pkg_setup() {
55
pkg_setup() {
56
	if use gtk || use ndiff; then
56
	if use gtk || use ndiff; then
57
		python_set_active_version 2
57
		python-single-r1_pkg_setup
58
	fi
58
	fi
59
}
59
}
60
60
Lines 144-148 Link Here
144
144
145
	dodoc CHANGELOG HACKING docs/README docs/*.txt
145
	dodoc CHANGELOG HACKING docs/README docs/*.txt
146
146
147
	use gtk && doicon "${DISTDIR}/nmap-logo-64.png"
147
	if use gtk; then
148
		python_optimize "${ED}"/$(python_get_sitedir)
149
		doicon "${DISTDIR}/nmap-logo-64.png"
150
	fi
148
}
151
}

Return to bug 498726