summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-01 17:25:31 +0000
committerMike Frysinger <vapier@gentoo.org>2012-03-01 17:25:31 +0000
commit14bd2a61aa5867a7f3e6040ac5d36d4a7f7588a9 (patch)
treefdfec625e95a62b4781259b308fb15fa42a8e58a /net-analyzer/netcat
parentStable on alpha, bug #406037 (diff)
downloadgentoo-2-14bd2a61aa5867a7f3e6040ac5d36d4a7f7588a9.tar.gz
gentoo-2-14bd2a61aa5867a7f3e6040ac5d36d4a7f7588a9.tar.bz2
gentoo-2-14bd2a61aa5867a7f3e6040ac5d36d4a7f7588a9.zip
Update to EAPI=4 to handle libmix[static-libs] #406329 by venom00.
(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/netcat')
-rw-r--r--net-analyzer/netcat/ChangeLog7
-rw-r--r--net-analyzer/netcat/netcat-110-r9.ebuild18
2 files changed, 16 insertions, 9 deletions
diff --git a/net-analyzer/netcat/ChangeLog b/net-analyzer/netcat/ChangeLog
index 50ecdcd755b0..f63fe5caa923 100644
--- a/net-analyzer/netcat/ChangeLog
+++ b/net-analyzer/netcat/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-analyzer/netcat
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netcat/ChangeLog,v 1.41 2011/02/06 07:48:56 leio Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netcat/ChangeLog,v 1.42 2012/03/01 17:25:31 vapier Exp $
+
+ 01 Mar 2012; Mike Frysinger <vapier@gentoo.org> netcat-110-r9.ebuild:
+ Update to EAPI=4 to handle libmix[static-libs] #406329 by venom00.
06 Feb 2011; Mart Raudsepp <leio@gentoo.org> netcat-110-r8.ebuild:
Drop to ~mips
diff --git a/net-analyzer/netcat/netcat-110-r9.ebuild b/net-analyzer/netcat/netcat-110-r9.ebuild
index c8cb3d7026d5..08ddbc187add 100644
--- a/net-analyzer/netcat/netcat-110-r9.ebuild
+++ b/net-analyzer/netcat/netcat-110-r9.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netcat/netcat-110-r9.ebuild,v 1.1 2010/07/14 03:47:51 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netcat/netcat-110-r9.ebuild,v 1.2 2012/03/01 17:25:31 vapier Exp $
+
+EAPI="4"
inherit eutils toolchain-funcs flag-o-matic
@@ -17,12 +19,14 @@ SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc64-solaris ~x64-solaris"
IUSE="crypt ipv6 static"
-DEPEND="crypt? ( dev-libs/libmix )"
+LIB_DEPEND="crypt? ( dev-libs/libmix[static-libs(+)] )"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
+DEPEND="${RDEPEND}
+ static? ( ${LIB_DEPEND} )"
S=${WORKDIR}
-src_unpack() {
- unpack ${MY_P}.tgz ${P}-patches-${PATCH_VER}.tar.bz2
+src_prepare() {
epatch "${DISTDIR}"/nc-v6-20000918.patch.gz patch
sed -i 's:#define HAVE_BIND:#undef HAVE_BIND:' netcat.c
sed -i 's:#define FD_SETSIZE 16:#define FD_SETSIZE 1024:' netcat.c #34250
@@ -35,11 +39,11 @@ src_compile() {
use static && export STATIC="-static"
use crypt && XFLAGS="${XFLAGS} -DAESCRYPT" && XLIBS="${XLIBS} -lmix"
[[ ${CHOST} == *-solaris* ]] && XLIBS="${XLIBS} -lnsl -lsocket"
- make -e CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" nc || die
+ emake -e CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" nc
}
src_install() {
- dobin nc || die "dobin failed"
+ dobin nc
dodoc README* netcat.blurb debian-*
doman nc.1
docinto scripts