diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-10-28 17:49:57 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-10-28 17:49:57 +0100 |
commit | 483486699ed323abb462a7db1853e8534d3163fe (patch) | |
tree | bf8a48423a0f791d06c8b6bb13fdaf135b158ecf /app-arch/zstd/zstd-1.3.6.ebuild | |
parent | app-admin/vault: Version bump to 0.11.4 (diff) | |
download | gentoo-483486699ed323abb462a7db1853e8534d3163fe.tar.gz gentoo-483486699ed323abb462a7db1853e8534d3163fe.tar.bz2 gentoo-483486699ed323abb462a7db1853e8534d3163fe.zip |
app-arch/zstd: Version bump to 1.3.6
Closes: https://bugs.gentoo.org/659552
Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'app-arch/zstd/zstd-1.3.6.ebuild')
-rw-r--r-- | app-arch/zstd/zstd-1.3.6.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-arch/zstd/zstd-1.3.6.ebuild b/app-arch/zstd/zstd-1.3.6.ebuild new file mode 100644 index 000000000000..1b444a99f6d2 --- /dev/null +++ b/app-arch/zstd/zstd-1.3.6.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +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 GPL-2 )" +SLOT="0/1" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="lz4 static-libs" + +RDEPEND="app-arch/xz-utils + lz4? ( app-arch/lz4 )" +DEPEND="${RDEPEND}" + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + HAVE_LZ4=$(usex lz4 1 0) \ + 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 + + emake -C contrib/pzstd \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + AR="$(tc-getAR)" \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" + +} + +src_install() { + emake \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" install + + emake -C contrib/pzstd \ + 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 +} |