summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-10-25 02:08:14 +0200
committerDavid Seifert <soap@gentoo.org>2016-10-25 02:08:39 +0200
commit0aac30462244120dbebf37848ebe8c303cf6aad2 (patch)
tree651d06c79a1135a260046f4a70f10605393fa326 /app-arch
parentdev-libs/c-blosc: Version bump to 1.11.1 (diff)
downloadgentoo-0aac30462244120dbebf37848ebe8c303cf6aad2.tar.gz
gentoo-0aac30462244120dbebf37848ebe8c303cf6aad2.tar.bz2
gentoo-0aac30462244120dbebf37848ebe8c303cf6aad2.zip
app-arch/zstd: Fix ebuild
* Replace EROOT in src_* functions * Call einstalldocs to install basic docs * Use proper || die's for removing static libraries * Pass CC and AR to make commands Package-Manager: portage-2.3.2
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/zstd/zstd-1.1.0.ebuild28
1 files changed, 21 insertions, 7 deletions
diff --git a/app-arch/zstd/zstd-1.1.0.ebuild b/app-arch/zstd/zstd-1.1.0.ebuild
index bcfe360e065a..4e42b4fdc9d6 100644
--- a/app-arch/zstd/zstd-1.1.0.ebuild
+++ b/app-arch/zstd/zstd-1.1.0.ebuild
@@ -4,6 +4,8 @@
EAPI=6
+inherit toolchain-funcs
+
DESCRIPTION="zstd fast compression library"
HOMEPAGE="http://facebook.github.io/zstd/"
SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -16,15 +18,27 @@ IUSE="static-libs"
PATCHES=( "${FILESDIR}/${P}-fix_build_system.patch" )
src_compile() {
- emake PREFIX="${EROOT}usr" LIBDIR="${EROOT}usr/$(get_libdir)" zstd
- cd lib &&
- emake PREFIX="${EROOT}usr" LIBDIR="${EROOT}usr/$(get_libdir)" libzstd
+ emake \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR)" \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" zstd
+
+ emake -C lib \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR)" \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" libzstd
}
src_install() {
- emake DESTDIR="${D}" \
- PREFIX="${EROOT}usr" LIBDIR="${EROOT}usr/$(get_libdir)" install
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
+ einstalldocs
- ! use static-libs &&
- rm -f $ "${ED}usr/$(get_libdir)/libzstd.a"
+ if ! use static-libs; then
+ rm "${ED%/}"/usr/$(get_libdir)/libzstd.a || die
+ fi
}