# 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)
# 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
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
}
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