| 1 |
# Copyright 1999-2010 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-auth/libnss-cache/libnss-cache-0.1.ebuild,v 1.3 2009/10/23 16:07:48 vostorga Exp $ |
| 4 |
|
| 5 |
EAPI=2 |
| 6 |
|
| 7 |
inherit eutils multilib toolchain-funcs |
| 8 |
|
| 9 |
DESCRIPTION="libnss-cache is a library that serves nss lookups." |
| 10 |
HOMEPAGE="http://code.google.com/p/nsscache/" |
| 11 |
SRC_URI="http://nsscache.googlecode.com/files/${P}.tar.gz" |
| 12 |
|
| 13 |
LICENSE="GPL-3" |
| 14 |
SLOT="0" |
| 15 |
KEYWORDS="~amd64 ~x86" |
| 16 |
IUSE="" |
| 17 |
|
| 18 |
S=${WORKDIR}/${PN} |
| 19 |
|
| 20 |
src_prepare() { |
| 21 |
epatch "${FILESDIR}"/${PF}-make-install.patch |
| 22 |
} |
| 23 |
|
| 24 |
src_compile() { |
| 25 |
emake CC="$(tc-getCC)" || die |
| 26 |
} |
| 27 |
|
| 28 |
src_install() { |
| 29 |
emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install || die |
| 30 |
} |