summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno <hanno@gentoo.org>2017-02-21 11:01:01 +0100
committerHanno <hanno@gentoo.org>2017-02-21 11:01:01 +0100
commit66488410d35fe0f3af65157d8ef339d2c45acdda (patch)
tree6789de2af21313d881fdb1d4b9cc05c9ad5dce35 /app-arch/zstd/zstd-1.1.3.ebuild
parentapp-misc/ca-certificates: Bump to version 20161130.3.29.1 (diff)
downloadgentoo-66488410d35fe0f3af65157d8ef339d2c45acdda.tar.gz
gentoo-66488410d35fe0f3af65157d8ef339d2c45acdda.tar.bz2
gentoo-66488410d35fe0f3af65157d8ef339d2c45acdda.zip
app-arch/zstd: Version bump
Remove patch with unclear purpose, see #598788. Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-arch/zstd/zstd-1.1.3.ebuild')
-rw-r--r--app-arch/zstd/zstd-1.1.3.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/app-arch/zstd/zstd-1.1.3.ebuild b/app-arch/zstd/zstd-1.1.3.ebuild
new file mode 100644
index 000000000000..730eeaeaf1ff
--- /dev/null
+++ b/app-arch/zstd/zstd-1.1.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="https://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"
+
+src_compile() {
+ 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="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
+ einstalldocs
+
+ if ! use static-libs; then
+ rm "${ED%/}"/usr/$(get_libdir)/libzstd.a || die
+ fi
+}