summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2016-10-03 18:21:13 -0500
committerMatthias Maier <tamiko@gentoo.org>2016-10-03 18:44:49 -0500
commit08a6e00d545bb140b543c51ab1bf182f2e7fdf15 (patch)
treea04c929dcc03675ec1b5c9773a225def3158d8ed /app-arch/zstd/zstd-1.1.0.ebuild
parentapp-crypt/bcrypt: remove from tree (diff)
downloadgentoo-08a6e00d545bb140b543c51ab1bf182f2e7fdf15.tar.gz
gentoo-08a6e00d545bb140b543c51ab1bf182f2e7fdf15.tar.bz2
gentoo-08a6e00d545bb140b543c51ab1bf182f2e7fdf15.zip
app-arch/zstd: version bump to 1.1.0, fix a a number of bugs:
- respect "$(get_libdir)" - introduce USE=static-libs, bug #593634 - do not compile library a second time, bug #594514 - respect CC, bug #593630 - prefix support - keyword for x86 Package-Manager: portage-2.3.0
Diffstat (limited to 'app-arch/zstd/zstd-1.1.0.ebuild')
-rw-r--r--app-arch/zstd/zstd-1.1.0.ebuild30
1 files changed, 30 insertions, 0 deletions
diff --git a/app-arch/zstd/zstd-1.1.0.ebuild b/app-arch/zstd/zstd-1.1.0.ebuild
new file mode 100644
index 000000000000..bcfe360e065a
--- /dev/null
+++ b/app-arch/zstd/zstd-1.1.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+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"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+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
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ PREFIX="${EROOT}usr" LIBDIR="${EROOT}usr/$(get_libdir)" install
+
+ ! use static-libs &&
+ rm -f $ "${ED}usr/$(get_libdir)/libzstd.a"
+}