From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sys-auth/libnss-cache/libnss-cache-0.10.2.ebuild | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sys-auth/libnss-cache/libnss-cache-0.10.2.ebuild (limited to 'sys-auth/libnss-cache/libnss-cache-0.10.2.ebuild') diff --git a/sys-auth/libnss-cache/libnss-cache-0.10.2.ebuild b/sys-auth/libnss-cache/libnss-cache-0.10.2.ebuild new file mode 100644 index 000000000000..0c1a0b837148 --- /dev/null +++ b/sys-auth/libnss-cache/libnss-cache-0.10.2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=3 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="libnss-cache is a library that serves nss lookups" +HOMEPAGE="https://github.com/google/nsscache" +SRC_URI="https://nsscache.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="multilib" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.10.1-make.patch + epatch "${FILESDIR}"/${PN}-0.10-fix-shadow-test.patch +} + +src_compile() { + emake CC="$(tc-getCC)" nss_cache || die + if use multilib && has_multilib_profile; then + emake CC="$(tc-getCC)" nss_cache32 || die + fi +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die + if use multilib && has_multilib_profile; then + emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install32 || die + fi +} -- cgit v1.2.3