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 (-20 / +15 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.29 2013/12/01 20:36:20 zerochaos Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-6.25.ebuild,v 1.29 2013/12/01 20:36:20 zerochaos 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-48 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
	dev-lang/python:2.6[sqlite]
32
	dev-lang/python:2.5[sqlite]
33
)
34
"
35
RDEPEND="
34
RDEPEND="
36
	dev-libs/apr
37
	dev-libs/libpcre
35
	dev-libs/libpcre
38
	net-libs/libpcap[ipv6?]
36
	net-libs/libpcap[ipv6?]
39
	gtk? (
37
	gtk? (
40
		>=x11-libs/gtk+-2.6:2
38
		>=x11-libs/gtk+-2.6:2
41
		>=dev-python/pygtk-2.6
39
		>=dev-python/pygtk-2.6:2[${PYTHON_USEDEP}]
42
		${NMAP_PYTHON_DEPEND}
40
		${PYTHON_DEPS}
43
	)
41
	)
44
	lua? ( >=dev-lang/lua-5.1.4-r1[deprecated] )
42
	lua? ( >=dev-lang/lua-5.1.4-r1[deprecated] )
45
	ndiff? ( ${NMAP_PYTHON_DEPEND} )
43
	ndiff? ( ${PYTHON_DEPS} )
46
	nls? ( virtual/libintl )
44
	nls? ( virtual/libintl )
47
	nmap-update? ( dev-libs/apr dev-vcs/subversion )
45
	nmap-update? ( dev-libs/apr dev-vcs/subversion )
48
	ssl? ( dev-libs/openssl )
46
	ssl? ( dev-libs/openssl )
Lines 54-65 Link Here
54
52
55
S="${WORKDIR}/${MY_P}"
53
S="${WORKDIR}/${MY_P}"
56
54
57
pkg_setup() {
58
	if use gtk || use ndiff; then
59
		python_set_active_version 2
60
	fi
61
}
62
63
src_unpack() {
55
src_unpack() {
64
	unpack ${MY_P}.tar.bz2
56
	unpack ${MY_P}.tar.bz2
65
}
57
}
Lines 146-150 Link Here
146
138
147
	dodoc CHANGELOG HACKING docs/README docs/*.txt
139
	dodoc CHANGELOG HACKING docs/README docs/*.txt
148
140
149
	use gtk && doicon "${DISTDIR}/nmap-logo-64.png"
141
	if use gtk; then
142
		python_optimize "${ED}"/$(python_get_sitedir)
143
		doicon "${DISTDIR}/nmap-logo-64.png"
144
	fi
150
}
145
}

Return to bug 498726