| # Copyright 1999-2016 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Id$ |
| |
| EAPI="4" |
| |
| inherit flag-o-matic toolchain-funcs eutils |
| |
| DESCRIPTION="small and fast portage helper tools written in C" |
| HOMEPAGE="https://wiki.gentoo.org/wiki/Portage-utils" |
| SRC_URI="mirror://gentoo/${P}.tar.xz |
| https://dev.gentoo.org/~vapier/dist/${P}.tar.xz" |
| |
| LICENSE="GPL-2" |
| SLOT="0" |
| KEYWORDS="*" |
| IUSE="nls static" |
| |
| RDEPEND="dev-libs/iniparser:0" |
| DEPEND="${RDEPEND} |
| app-arch/xz-utils |
| static? ( dev-libs/iniparser:0[static-libs] )" |
| |
| src_prepare() { |
| epatch_user |
| } |
| |
| src_configure() { |
| use static && append-ldflags -static |
| |
| # Avoid slow configure+gnulib+make if on an up-to-date Linux system |
| if use prefix || ! use kernel_linux || \ |
| has_version '<sys-libs/glibc-2.10' |
| then |
| econf --with-eprefix="${EPREFIX}" |
| else |
| tc-export CC |
| fi |
| } |
| |
| src_compile() { |
| emake NLS=$(usex nls) |
| } |