summaryrefslogtreecommitdiff
path: root/app-arch/zstd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-arch/zstd
reinit the tree, so we can have metadata
Diffstat (limited to 'app-arch/zstd')
-rw-r--r--app-arch/zstd/Manifest11
-rw-r--r--app-arch/zstd/files/zstd-1.1.0-fix_build_system.patch79
-rw-r--r--app-arch/zstd/metadata.xml11
-rw-r--r--app-arch/zstd/zstd-1.1.0.ebuild43
-rw-r--r--app-arch/zstd/zstd-1.1.3.ebuild41
-rw-r--r--app-arch/zstd/zstd-1.2.0.ebuild41
-rw-r--r--app-arch/zstd/zstd-1.3.0.ebuild58
7 files changed, 284 insertions, 0 deletions
diff --git a/app-arch/zstd/Manifest b/app-arch/zstd/Manifest
new file mode 100644
index 000000000000..a0f7802ceed6
--- /dev/null
+++ b/app-arch/zstd/Manifest
@@ -0,0 +1,11 @@
+AUX zstd-1.1.0-fix_build_system.patch 3103 SHA256 60ffe3a5f9a5195ad14a1647de3cc3023abd3bab45ca1aff11cb0da74d934fa7 SHA512 0ea1a9381a5766f1b7558f57a4082a919f02ead3f5ef6400c991f8f70390349bb8f96af1e36599c2c985285acd339a673e51cfbeb5839a790fe1aa672f93aaad WHIRLPOOL 8c1772dd01c496cfab6e7874df718a25c3f19d64156bed2c2e02e7e91ac56f72084a06d4e5d412251ceecd6ddd740af56a46677036724998f194f68b051ee143
+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
+EBUILD zstd-1.1.0.ebuild 928 SHA256 2b56b5bdb902b1357e37489cce468b36c80c854ba0e0d1016ecba8b8f8f0427c SHA512 46c64fe1cbdbb0d4cc6233517253e7ea9d098b7ae355aa93fd972f9b10fb07fb7ad19b6dd7bb1bcba36c24c3be4fc3ed14d06f96ab547f428d60f5115bc0d971 WHIRLPOOL a48f61f75081c876009fc62e24e572693b66225432b4d26ff1edf71c9948fe69bf31162f626221d2b55f2cd8ed53ae8802b7b776bc5035c879e05918858397ac
+EBUILD zstd-1.1.3.ebuild 895 SHA256 b1817039ab1be2095ba28c88312041df9e881b139da9097cde5029117ac34d66 SHA512 aaae58ce1141b04f8c90daec424f5b2a52ef49b12a4073c4687ebb73013785e0fe39d617693c25c3e180dfafbf2c6c953f9029174f8749b9470cda028759c6a3 WHIRLPOOL f526e6b3bd85ec27c32fa6c499b7c4ad41e5f05f8da5eaf00198207d10e9a97de40f21d6eea5f89d47255084464b96044162f4484a0c2e4d6b1b2e21f50f5a93
+EBUILD zstd-1.2.0.ebuild 904 SHA256 bf8d6a21977ac1b1083602cf02719cbe2feba9b08a3f6200fc5fed9e2720814b SHA512 f74706f6936df707e5e6999f3c642e7f833a611faed7db59c0c7b85ea553ec886d52365160967f10e4b8be35bdf0afbb8193156d4b11a3f49deca53ce95796e0 WHIRLPOOL 2bc2b7ffaec806e2aab878a172b04070d06ab3d23c9242bd4bc54dec297f62da2d6554529864b499874d3d83b8a6e765dc81ce0ce8231b8633ccb8dca61b6ad6
+EBUILD zstd-1.3.0.ebuild 1239 SHA256 6ea8e8de8ae955ec563aadf78b1ca60c1d8463b64704d6b6858a37ac1be55602 SHA512 07c505650dfd7e475337e2d9b503256b0709f794f9822dbf1947c257493b4c6ea44e9eea1b2abd9b8fd3dad7a569102b823e08167686b8d80eb00222113768d5 WHIRLPOOL 88e235da82e810440fbd560589c1d391d401c06b15102394f73d989c108b09cb304ab369e851ee07f75f1ffb82980d173d5d417b0aed9a7c79af7ad5972f73e7
+MISC ChangeLog 1336 SHA256 0458cf9031095580000f282f751531d4401321a2e71d4ada520f934fa077f150 SHA512 405e90f9065dd8b727d40ccca61b387b046d2d3560bdc07ca56a94001414c7903d63da5540dc44fb460d2dfb8fcadea695bfe64a7354c5eb47a08c529f880b0d WHIRLPOOL a1b7181df2c485254c980cf2f08f38bd2e257b75d2e7e3b266f10ae28fdddcdcbc18222b353d50e19824c6ffa1c9a866044f5ddce6a6fe680d4f0db9c811cffb
+MISC metadata.xml 335 SHA256 f037a36869488c95518aa3577c4ab1c644df5b682bd569ce8fc95433397dcf85 SHA512 9269829ff4dcad03a604ea00c7f9a3bcd937195b711ab52f813d39b8ebb921585293cb3cb97fbea75921df9a673d49c8a8b39dc13b54f9b171c08d6ac0c31bc6 WHIRLPOOL 18f946ccabf43f944251cb5f73eae533221f4a19af5195bbdd11170cb82ea438d9a48ee3ca070c8bf9abc365e7bdcb038e0997261139be0deb062ee635e4e44d
diff --git a/app-arch/zstd/files/zstd-1.1.0-fix_build_system.patch b/app-arch/zstd/files/zstd-1.1.0-fix_build_system.patch
new file mode 100644
index 000000000000..75531c409974
--- /dev/null
+++ b/app-arch/zstd/files/zstd-1.1.0-fix_build_system.patch
@@ -0,0 +1,79 @@
+diff --git a/lib/Makefile b/lib/Makefile
+index 4fb8ed9..ec5436d 100644
+--- a/lib/Makefile
++++ b/lib/Makefile
+@@ -63,17 +63,17 @@ all: clean libzstd
+
+ libzstd: $(ZSTD_FILES)
+ @echo compiling static library
+- @$(CC) $(FLAGS) -c $^
+- @$(AR) rcs $@.a *.o
++ $(CC) $(FLAGS) -c $^
++ $(AR) rcs $@.a *.o
+ @echo compiling dynamic library $(LIBVER)
+- @$(CC) $(FLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@.$(SHARED_EXT_VER)
++ $(CC) $(FLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@.$(SHARED_EXT_VER)
+ @echo creating versioned links
+- @ln -sf $@.$(SHARED_EXT_VER) $@.$(SHARED_EXT_MAJOR)
+- @ln -sf $@.$(SHARED_EXT_VER) $@.$(SHARED_EXT)
++ ln -sf $@.$(SHARED_EXT_VER) $@.$(SHARED_EXT_MAJOR)
++ ln -sf $@.$(SHARED_EXT_VER) $@.$(SHARED_EXT)
+
+ clean:
+- @rm -f core *.o *.a *.gcda *.$(SHARED_EXT) *.$(SHARED_EXT).* libzstd.pc
+- @rm -f decompress/*.o
++ rm -f core *.o *.a *.gcda *.$(SHARED_EXT) *.$(SHARED_EXT).* libzstd.pc
++ rm -f decompress/*.o
+ @echo Cleaning library completed
+
+ #------------------------------------------------------------------------
+@@ -83,22 +83,22 @@ ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly
+ libzstd.pc:
+ libzstd.pc: libzstd.pc.in
+ @echo creating pkgconfig
+- @sed -e 's|@PREFIX@|$(PREFIX)|' \
++ sed -e 's|@PREFIX@|$(PREFIX)|' \
+ -e 's|@LIBDIR@|$(LIBDIR)|' \
+ -e 's|@INCLUDEDIR@|$(INCLUDEDIR)|' \
+ -e 's|@VERSION@|$(VERSION)|' \
+ $< >$@
+
+-install: libzstd libzstd.pc
+- @install -d -m 755 $(DESTDIR)$(LIBDIR)/pkgconfig/ $(DESTDIR)$(INCLUDEDIR)/
+- @install -m 755 libzstd.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_VER)
+- @cp -a libzstd.$(SHARED_EXT_MAJOR) $(DESTDIR)$(LIBDIR)
+- @cp -a libzstd.$(SHARED_EXT) $(DESTDIR)$(LIBDIR)
+- @cp -a libzstd.pc $(DESTDIR)$(LIBDIR)/pkgconfig/
+- @install -m 644 libzstd.a $(DESTDIR)$(LIBDIR)/libzstd.a
+- @install -m 644 zstd.h $(DESTDIR)$(INCLUDEDIR)/zstd.h
+- @install -m 644 common/zbuff.h $(DESTDIR)$(INCLUDEDIR)/zbuff.h
+- @install -m 644 dictBuilder/zdict.h $(DESTDIR)$(INCLUDEDIR)/zdict.h
++install: libzstd.pc
++ install -d -m 755 $(DESTDIR)$(LIBDIR)/pkgconfig/ $(DESTDIR)$(INCLUDEDIR)/
++ install -m 755 libzstd.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_VER)
++ cp -a libzstd.$(SHARED_EXT_MAJOR) $(DESTDIR)$(LIBDIR)
++ cp -a libzstd.$(SHARED_EXT) $(DESTDIR)$(LIBDIR)
++ cp -a libzstd.pc $(DESTDIR)$(LIBDIR)/pkgconfig/
++ install -m 644 libzstd.a $(DESTDIR)$(LIBDIR)/libzstd.a
++ install -m 644 zstd.h $(DESTDIR)$(INCLUDEDIR)/zstd.h
++ install -m 644 common/zbuff.h $(DESTDIR)$(INCLUDEDIR)/zbuff.h
++ install -m 644 dictBuilder/zdict.h $(DESTDIR)$(INCLUDEDIR)/zdict.h
+ @echo zstd static and shared library installed
+
+ uninstall:
+diff --git a/programs/Makefile b/programs/Makefile
+index 6e78d0e..993d138 100644
+--- a/programs/Makefile
++++ b/programs/Makefile
+@@ -21,11 +21,7 @@ MANDIR = $(PREFIX)/share/man/man1
+
+ ZSTDDIR = ../lib
+
+-ifeq ($(shell $(CC) -v 2>&1 | grep -c "gcc version "), 1)
+-ALIGN_LOOP = -falign-loops=32
+-else
+ ALIGN_LOOP =
+-endif
+
+ CPPFLAGS= -I$(ZSTDDIR) -I$(ZSTDDIR)/common -I$(ZSTDDIR)/dictBuilder
+ CFLAGS ?= -O3
diff --git a/app-arch/zstd/metadata.xml b/app-arch/zstd/metadata.xml
new file mode 100644
index 000000000000..b9782eebc304
--- /dev/null
+++ b/app-arch/zstd/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">facebook/zstd</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-arch/zstd/zstd-1.1.0.ebuild b/app-arch/zstd/zstd-1.1.0.ebuild
new file mode 100644
index 000000000000..c120d6aa6675
--- /dev/null
+++ b/app-arch/zstd/zstd-1.1.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="zstd fast compression library"
+HOMEPAGE="http://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"
+
+PATCHES=( "${FILESDIR}/${P}-fix_build_system.patch" )
+
+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
+}
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..997d094a7964
--- /dev/null
+++ b/app-arch/zstd/zstd-1.1.3.ebuild
@@ -0,0 +1,41 @@
+# 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"
+KEYWORDS="amd64 ~arm ~mips ~ppc ~ppc64 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
+}
diff --git a/app-arch/zstd/zstd-1.2.0.ebuild b/app-arch/zstd/zstd-1.2.0.ebuild
new file mode 100644
index 000000000000..f3a76665b7ae
--- /dev/null
+++ b/app-arch/zstd/zstd-1.2.0.ebuild
@@ -0,0 +1,41 @@
+# 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"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~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
+}
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
+}