Fix compilation on platforms not needing -lcrypt, bug #330235. Call emake correctly...
authorFabian Groffen <grobian@gentoo.org>
Thu, 15 Dec 2011 20:26:58 +0000 (20:26 +0000)
committerFabian Groffen <grobian@gentoo.org>
Thu, 15 Dec 2011 20:26:58 +0000 (20:26 +0000)
Package-Manager: portage-2.2.01.19941-prefix/cvs/Darwin i386

net-misc/whois/ChangeLog
net-misc/whois/whois-5.0.8.ebuild

index fdcab13b4805f27d54c9d59dc0542d8dd4210936..c59034ff9b6aa7fe81b14c7d5620d1b2c09f33cf 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for net-misc/whois
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/ChangeLog,v 1.164 2011/12/05 09:36:47 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/ChangeLog,v 1.165 2011/12/15 20:26:58 grobian Exp $
+
+  15 Dec 2011; Fabian Groffen <grobian@gentoo.org> whois-5.0.8.ebuild:
+  Fix compilation on platforms not needing -lcrypt, bug #330235.  Call emake
+  correctly for Prefix.
 
 *whois-5.0.13 (05 Dec 2011)
 
index 065a149338f3d15c4d409f4f28a9092578d86d66..ce0e70daf3d606e2febbd9667872403b64cd3b92 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-5.0.8.ebuild,v 1.7 2011/03/01 00:33:08 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-5.0.8.ebuild,v 1.8 2011/12/15 20:26:58 grobian Exp $
 
 EAPI=3
 inherit eutils toolchain-funcs
@@ -28,6 +28,9 @@ src_prepare() {
        else
                sed -i -e '/ENABLE_NLS/s:define:undef:' config.h
        fi
+
+       echo "int main() {}" | $(tc-getCC) ${CFLAGS} ${LDFLAGS} -xc -o /dev/null - -lcrypt >& /dev/null \
+               || sed -i -e 's/-lcrypt//' Makefile
 }
 
 src_configure() { :;} # expected no-op
@@ -41,7 +44,7 @@ src_compile() {
 }
 
 src_install() {
-       emake BASEDIR="${ED}" prefix=/usr install || die
+       emake BASEDIR="${D}" prefix="${EPREFIX}"/usr install || die
        insinto /etc
        doins whois.conf
        dodoc README debian/changelog