-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
KEYWORDS="~amd64 ~x86"
IUSE="examples threads"
-DEPEND=""
+DEPEND="app-arch/cpio"
RDEPEND="${DEPEND}"
-S=${WORKDIR}/${MY_P}
+S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}"/${P}-asneeded.patch
use threads && append-flags "-pthread"
emake PREFIX="/usr" CXX="$(tc-getCXX)" \
- CXXFLAGS="${CXXFLAGS}" LDFLAGS="$LDFLAGS" || die "emake failed"
+ CXXFLAGS="${CXXFLAGS}" LDFLAGS="$LDFLAGS"
}
src_install() {
- emake PREFIX="/usr" DESTDIR="${D}" install || die "Install failed"
+ emake PREFIX="/usr" DESTDIR="${D}" install
if use examples; then
insinto /usr/share/doc/${PF}/examples
- doins example/* || die "Failed to install examples"
+ doins example/*
fi
}