diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-10-06 17:54:21 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-10-07 00:18:57 +0200 |
commit | c69828f4ac6ec0a42112a9fe6e812ec0501a11a9 (patch) | |
tree | e5543cf89cdfc4ad39e6b1d7ee8be0ed80513688 /app-arch/zstd | |
parent | net-dns/ldns-utils: added RESTRICT=test (diff) | |
download | gentoo-c69828f4ac6ec0a42112a9fe6e812ec0501a11a9.tar.gz gentoo-c69828f4ac6ec0a42112a9fe6e812ec0501a11a9.tar.bz2 gentoo-c69828f4ac6ec0a42112a9fe6e812ec0501a11a9.zip |
app-arch/zstd: Bump to 1.4.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-arch/zstd')
-rw-r--r-- | app-arch/zstd/Manifest | 1 | ||||
-rw-r--r-- | app-arch/zstd/zstd-1.4.3.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest index f41beed8b5fb..c0ae2cf3b886 100644 --- a/app-arch/zstd/Manifest +++ b/app-arch/zstd/Manifest @@ -5,3 +5,4 @@ DIST zstd-1.3.8.tar.gz 1875233 BLAKE2B c9775b0e33e61d2c064df60a266246f6b9b65b70b DIST zstd-1.4.0.tar.gz 1898741 BLAKE2B 1b92a055712bb47c3d56c51f3ddddeaba00f9b746f7e47a2fa1a0afdf9798ff90f0ec734880a5d03644d47deb0e55f75c2cd3cbdab1a146dba5f49d4efeb2ae0 SHA512 8614934e25eb1e82b554c483bc9d2d055f51344697295e83b22a8d726321b12068cfa7f7d2a9fe28a2de7c9edda59733826277efc7046e13674d6f7f02af5671 DIST zstd-1.4.1.tar.gz 1908835 BLAKE2B 564ae54a96804954c25987eb0a744b7197c17555286187f615ce8c1b0a52a0522dc8a9e0c1e4e8b7ddd2ffbf302646b7c119d2b5be4d0867e58d2ee4ff70efa4 SHA512 5bfac959dbbcfaa16fc0b5d3d5028c606e0c56d385581644a7376d6c61f2efc081efa65e7cc3d3e7b4c107646e0b67b3a75f9b3ff392624025d3a0816c45a9f2 DIST zstd-1.4.2.tar.gz 1909790 BLAKE2B 7b420caf91bd2e9739a26e5ea61c0c5b7d9d6d8e6630612fd66fec24203bc38ae7ab527587318c09997e1e577210b748576d8cb40a0d8dd366fafc306b28c0fa SHA512 5473502093332401c83b02e4ac66b2e05f32f710121d371daf164d8b002be9c06c51578bf9fed0ffb70bb67a0c64457b0e7a02f0d1ba5d36b1f3b6dde93ff907 +DIST zstd-1.4.3.tar.gz 1911868 BLAKE2B da4c4b4f6afc36a23a13a9582874891ad206b01dc805f9e79879cb833b47c0bb18ec1b3bb5c0b99f4e8707d21659ca0b7446a84d15f513a3fcab206bc7f49539 SHA512 ccda90c7437635f92d0db39dfba3604e256f1f08284c35c042763a54b0ead45dca8e7fa3e5cf8032292d1dd9eefc1369e23f78a80d9335d69170563090677d5f diff --git a/app-arch/zstd/zstd-1.4.3.ebuild b/app-arch/zstd/zstd-1.4.3.ebuild new file mode 100644 index 000000000000..2704ae6a18f3 --- /dev/null +++ b/app-arch/zstd/zstd-1.4.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal 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 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="lz4 static-libs" + +RDEPEND="app-arch/xz-utils + lz4? ( app-arch/lz4 )" +DEPEND="${RDEPEND}" + +src_prepare() { + default + multilib_copy_sources +} + +mymake() { + emake \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + AR="$(tc-getAR)" \ + PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + "${@}" +} + +multilib_src_compile() { + mymake -C lib libzstd libzstd.a libzstd.pc + + if multilib_is_native_abi ; then + mymake zstd + + mymake -C contrib/pzstd + fi +} + +multilib_src_install() { + mymake -C lib DESTDIR="${D}" install + + if multilib_is_native_abi ; then + mymake -C programs DESTDIR="${D}" install + + mymake -C contrib/pzstd DESTDIR="${D}" install + fi +} + +multilib_src_install_all() { + einstalldocs + + if ! use static-libs; then + find "${ED}" -name "*.a" -delete || die + fi +} |