diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2017-08-03 12:42:46 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2017-08-03 12:42:46 +0200 |
commit | 2442f1609739ed48a352d619d1c1b959b3f0b463 (patch) | |
tree | a428a26a2a873eba9fb0c2ad541d8980993fce57 /app-arch/zstd | |
parent | dev-scheme/termite: fix rev (diff) | |
download | gentoo-2442f1609739ed48a352d619d1c1b959b3f0b463.tar.gz gentoo-2442f1609739ed48a352d619d1c1b959b3f0b463.tar.bz2 gentoo-2442f1609739ed48a352d619d1c1b959b3f0b463.zip |
app-arch/zstd: Version bump to 1.3.0, add pzstd
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'app-arch/zstd')
-rw-r--r-- | app-arch/zstd/Manifest | 1 | ||||
-rw-r--r-- | app-arch/zstd/zstd-1.3.0.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest index c308d1fcf421..4d3f07bd72e5 100644 --- a/app-arch/zstd/Manifest +++ b/app-arch/zstd/Manifest @@ -1,3 +1,4 @@ DIST zstd-1.1.0.tar.gz 716327 SHA256 61cbbd28ff78f658f0564c2ccc206ac1ac6abe7f2c65c9afdca74584a104ea51 SHA512 9fe72081d333b58d5c8f27f13bd01ab0d729984215b75690282770aa769aab6879b88177aa2b45d8ce2869bf1b360f3a828ca00aa3646a7cc57285a4e167d71f WHIRLPOOL f7e4eab8e7dada2dd0d3ab8eeba4f2b3f165476c4cacf1a609269cb8ed9bccd12c498f50e2aaf365d6c0167c0f2db2b6b6902a786ba98f169e4f0ea0b7ceacfe DIST zstd-1.1.3.tar.gz 845902 SHA256 106c532ae840a6ee4aee5258f04f3acab7b3e09b9e9584ebe94e4fbfd899af0a SHA512 6c025ca3899d0487bf2b4a9b333b47c6e2bb525ae3fc7328cc040f50d6f3c53a1bb9bd17e104352ddbc7b96b240c250c60d5be99e0a980332dbd3c518b2a81e1 WHIRLPOOL 1ff898dce54bd13a45a27ee6e395aa38adc88f1767321e5393148d76e443b539eddee65ccbc00ccf691ab51019a7f1ec6e19f1d7dc734b5982a29d47a432c1e2 DIST zstd-1.2.0.tar.gz 1300584 SHA256 4a7e4593a3638276ca7f2a09dc4f38e674d8317bbea51626393ca73fc047cbfb SHA512 b21910c6bdcfad3199c07b9f70f7c049062ebd1cce9249dd33c36153e29f24dd9e796ddbc2f37846b9f508c14b0d0f67651fd8d2bdce558128f20bdfff50a7df WHIRLPOOL dc52eee5d075d952e870c1e12c73120a664337585f6d81456c98341f4bd3f5ecfccb51fbc22063e64cb4287e429d4e12c4395007d78df74a2f1787e01cc29007 +DIST zstd-1.3.0.tar.gz 1469911 SHA256 0fdba643b438b7cbce700dcc0e7b3e3da6d829088c63757a5984930e2f70b348 SHA512 5eb9e001e14d3342e76eb57b672c636fd56839ba8fc0ba9a751484ea93389c72c494ad2125dc2f9be1f72481f3af34568477123f7e9d3c7504e061e4c083cb30 WHIRLPOOL 61d20ecb675d95ef972b73e5cec144dde6f8a784423b136f4520f51ff8429aa3a59600a371b9b8eea7b2a1949d85508346f620c3cb1852162b27827ba99a7c73 diff --git a/app-arch/zstd/zstd-1.3.0.ebuild b/app-arch/zstd/zstd-1.3.0.ebuild new file mode 100644 index 000000000000..b96874e7c9a1 --- /dev/null +++ b/app-arch/zstd/zstd-1.3.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# 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" +SLOT="0/1" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86" +IUSE="static-libs" + +RDEPEND="app-arch/xz-utils" +DEPEND="${RDEPEND}" + +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 + + 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 +} |