diff options
Diffstat (limited to 'app-arch/zstd')
-rw-r--r-- | app-arch/zstd/Manifest | 2 | ||||
-rw-r--r-- | app-arch/zstd/zstd-1.3.3.ebuild | 58 |
2 files changed, 60 insertions, 0 deletions
diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest index 3addf3306eb8..14d1cc0432ca 100644 --- a/app-arch/zstd/Manifest +++ b/app-arch/zstd/Manifest @@ -4,9 +4,11 @@ DIST zstd-1.1.3.tar.gz 845902 BLAKE2B f8896d467c255dd0dfd348aee0d8b8a13b1551ee0e DIST zstd-1.2.0.tar.gz 1300584 BLAKE2B 3bde619cde6a6cf6ea83c86ba8ad2c7aa0cfecbf606aec0695ae809f438712fc0114d8a245deaf153faf130564d31522a15d1fef96357c5a90728b963399e4de SHA512 b21910c6bdcfad3199c07b9f70f7c049062ebd1cce9249dd33c36153e29f24dd9e796ddbc2f37846b9f508c14b0d0f67651fd8d2bdce558128f20bdfff50a7df DIST zstd-1.3.0.tar.gz 1469911 BLAKE2B c62e467c1ba2b6a13aca79f939bf0c63e25eb1168ba3b8908720cad245f2f61e39c214edecaafa6201af4f9c8d1875d24f08b8aa6df6f42ba083dce7cc2e94c0 SHA512 5eb9e001e14d3342e76eb57b672c636fd56839ba8fc0ba9a751484ea93389c72c494ad2125dc2f9be1f72481f3af34568477123f7e9d3c7504e061e4c083cb30 DIST zstd-1.3.2.tar.gz 1618939 BLAKE2B 1bb8c9ac0a521230e1507380afd5346e9cbd5b850c9a6516ef2fcf3e339e90ad1dc6adda13b7eb2d75630a788903ed12732a41fde065601ad879cca36c677125 SHA512 e2848d08b38d2fe98cd327611044bdac2f948547124321c8d63d5bdc2e6694d623c40c7bcc7d499fa83531f9cb92ddcb8be67614a49f855a9103f0ee6af0985c +DIST zstd-1.3.3.tar.gz 1857232 BLAKE2B 45b737b8798fa6982b22163553e38fbe77143d5562032a8f5f5593225ea07fee277b27c06c00670196b59030a4919d819d562bf9e1e185aadc755d0563b251bb SHA512 72b63f96f65ca987cdc82c24354f7665c7dc3b2563cb0646f355c34bf8f090d8a0759729f8beaba8317272bdab34749f934055707b25cfd69c98a9fdcfbc59ae EBUILD zstd-1.1.0.ebuild 928 BLAKE2B 7ede914553f0b418dbaebcca524d85215edd2a9786f22915493561f0a75b2c170539c8f9217276cc32b8e855622e37eb0809aede8e8ab75a2b34df8e6271c7c9 SHA512 46c64fe1cbdbb0d4cc6233517253e7ea9d098b7ae355aa93fd972f9b10fb07fb7ad19b6dd7bb1bcba36c24c3be4fc3ed14d06f96ab547f428d60f5115bc0d971 EBUILD zstd-1.1.3.ebuild 899 BLAKE2B 52b755114cb16adc89afd50fa1fdca48829170815b1ecdb1b26d2adb5e519d4af6e906b29dd282d67e7066792d4addf544a13c23f5c2effbd6d4aafcd08f41a1 SHA512 25065f6b5901c110b149b11b74d9b2249d241d74dd779ec7aff392db4163cf8276ced3c31d9c09afbac08588e5a560f467905b24f7ed1b418d8431938daf80dd EBUILD zstd-1.2.0.ebuild 911 BLAKE2B 1d05c3c40bd2508433ff818a7b53bdce10bbc2567660ca5a45228a661836b0a5662610a50afc33803d75d070bb0ad0871a26e6b586d73db9b438c7fbee22d73f SHA512 1df5717823ff075a56edc7ddd0d5c43087226560720cf48fdcd6084f4ba5ac2ae215865a9cb69549b61785ef78f689b9b7c15f934d4d29b9dce40f20ed8f3ae0 EBUILD zstd-1.3.0.ebuild 1246 BLAKE2B 79cbdd3c8eeb485eebeabe7864f2a7815e1f7587ba656bc63c2679b4a4d4671f62696484dce5eba875f40974fa232bac3a37ce95e01b04048e0caa2bcd68154f SHA512 ae39d6c828fd7a3f1a9473a9028f5656bc5914aa0b1a149305ba13718e0482c12fe2f710bca4cbe73a746d9cab5cef2afcab327fe95cadeacbd699bbb32d6027 EBUILD zstd-1.3.2.ebuild 1263 BLAKE2B 3b16a1041f9885888ed72705f1b60980cb7c1cda8f602d4766c15c21d73e647b4c71c800755ffca72bc67766e82cbcd316fb53cdb9a07aebc1481d2f212c2830 SHA512 ebd70dc0ca1b6448c0eab4946ff07d4db3913142fe25c3f9b1d3d3066860e272a355bbb540910b0fa71a2141ba96cc8540dbcce070ffc212294d3824c6257fc0 +EBUILD zstd-1.3.3.ebuild 1265 BLAKE2B e9da8358390dd7b4adca3b888a41df1b9fac29921808d95c9c48e39573f442061099f85ae7afd4a690bb4ca9f9f26bcd6e8616239433b8843cd56ca0e58cd2d7 SHA512 7ebaf93981548ea4dae08d69b316cb47a44a8580ecfb5c01dc6b23987cfb9c929e2b30a72e69033bfaa7c10b8e0ad96f59b01cb2c2756b2e8f60c5e687f8bb24 MISC metadata.xml 335 BLAKE2B b5522206853292786178f23747d3f8145cd21a9e1d9d545aea8ff424910d9f9ab6d35c66c098edac809baa4e87239d36d4d987308481b265fe30460d54f415b9 SHA512 9269829ff4dcad03a604ea00c7f9a3bcd937195b711ab52f813d39b8ebb921585293cb3cb97fbea75921df9a673d49c8a8b39dc13b54f9b171c08d6ac0c31bc6 diff --git a/app-arch/zstd/zstd-1.3.3.ebuild b/app-arch/zstd/zstd-1.3.3.ebuild new file mode 100644 index 000000000000..6ecde2a7ad62 --- /dev/null +++ b/app-arch/zstd/zstd-1.3.3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2018 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 GPL-2 )" +SLOT="0/1" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~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 +} |