public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrick Lauer" <patrick@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/
Date: Sat,  7 Jul 2018 06:16:26 +0000 (UTC)	[thread overview]
Message-ID: <1530944178.bc57d3bf37f1a5f477c4c8711c34054ec3dd166f.patrick@gentoo> (raw)

commit:     bc57d3bf37f1a5f477c4c8711c34054ec3dd166f
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  7 06:06:56 2018 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Sat Jul  7 06:16:18 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc57d3bf

app-arch/zstd: Fix automagic lz4 dep #659552

Package-Manager: Portage-2.3.41, Repoman-2.3.9

 app-arch/zstd/metadata.xml         |  5 ++++
 app-arch/zstd/zstd-1.3.4-r1.ebuild | 60 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/app-arch/zstd/metadata.xml b/app-arch/zstd/metadata.xml
index b9782eebc30..82079cb18ae 100644
--- a/app-arch/zstd/metadata.xml
+++ b/app-arch/zstd/metadata.xml
@@ -5,6 +5,11 @@
     <email>patrick@gentoo.org</email>
     <name>Patrick Lauer</name>
   </maintainer>
+  <use>
+    <flag name="lz4">
+      Enable support for LZ4 compression using <pkg>app-arch/lz4</pkg>
+    </flag>
+  </use>
   <upstream>
     <remote-id type="github">facebook/zstd</remote-id>
   </upstream>

diff --git a/app-arch/zstd/zstd-1.3.4-r1.ebuild b/app-arch/zstd/zstd-1.3.4-r1.ebuild
new file mode 100644
index 00000000000..b5e953cdda7
--- /dev/null
+++ b/app-arch/zstd/zstd-1.3.4-r1.ebuild
@@ -0,0 +1,60 @@
+# 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="~alpha ~amd64 ~arm ~arm64 ~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
+}


             reply	other threads:[~2018-07-07  6:16 UTC|newest]

Thread overview: 184+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-07  6:16 Patrick Lauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-16  7:36 [gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/ Fabian Groffen
2024-06-01  3:46 Ionen Wolkens
2024-06-01  1:28 Sam James
2024-04-29  8:09 Arthur Zamarin
2024-04-29  8:05 Arthur Zamarin
2024-04-29  8:05 Arthur Zamarin
2024-04-29  8:05 Arthur Zamarin
2024-04-29  8:05 Arthur Zamarin
2024-03-27  5:59 Sam James
2024-03-04 20:59 Sam James
2024-03-03  4:05 Sam James
2024-03-02 22:14 Sam James
2024-03-01 18:41 Sam James
2024-02-27 23:21 Sam James
2024-02-27 23:21 Sam James
2024-02-27 23:04 Sam James
2024-02-27 23:04 Sam James
2024-02-06 22:49 Sam James
2023-04-29  9:02 Arthur Zamarin
2023-04-29  9:02 Arthur Zamarin
2023-04-29  9:02 Arthur Zamarin
2023-04-29  9:01 Arthur Zamarin
2023-04-29  9:01 Arthur Zamarin
2023-04-29  8:59 Sam James
2023-04-29  8:53 Arthur Zamarin
2023-04-29  8:53 Arthur Zamarin
2023-04-04 22:52 Sam James
2023-04-04 16:47 Arthur Zamarin
2023-03-24 14:01 Arthur Zamarin
2023-03-24 13:49 Arthur Zamarin
2023-03-22  9:21 Sam James
2023-03-22  5:44 Sam James
2023-03-10 12:24 Sam James
2023-02-10 21:58 Sam James
2023-02-10  6:06 Sam James
2023-02-10  6:06 Sam James
2023-02-10  5:55 Sam James
2023-02-10  3:46 Sam James
2022-11-27 18:43 James Le Cuirot
2022-11-03 19:13 Sam James
2022-09-25  1:21 Sam James
2022-09-23  0:42 Sam James
2022-09-16 18:07 Arthur Zamarin
2022-09-16 15:51 Arthur Zamarin
2022-09-15 17:14 Arthur Zamarin
2022-09-07  1:53 Sam James
2022-09-07  1:50 Sam James
2022-09-07  1:50 Sam James
2022-09-06 21:59 Jakov Smolić
2022-09-06 21:58 Jakov Smolić
2022-06-18 13:06 Sam James
2022-06-18 13:05 Sam James
2022-06-16 15:30 Sam James
2022-02-24 15:02 Sam James
2022-02-19  8:52 Arthur Zamarin
2022-02-19  8:43 Arthur Zamarin
2022-02-19  8:36 Arthur Zamarin
2022-02-19  7:19 Arthur Zamarin
2022-02-19  7:19 Arthur Zamarin
2022-02-19  2:38 Sam James
2022-02-19  2:36 Sam James
2022-02-19  2:36 Sam James
2022-02-19  2:28 Sam James
2022-02-19  2:24 Sam James
2022-01-21 23:58 Sam James
2021-12-31 23:55 Sam James
2021-12-31 22:49 Sam James
2021-12-22  3:57 Sam James
2021-10-07  6:28 Mike Frysinger
2021-08-29  2:02 Andreas K. Hüttel
2021-07-27  3:16 Sam James
2021-07-26 21:04 Sergei Trofimovich
2021-07-26 11:17 Sam James
2021-07-25 20:09 Sam James
2021-07-23 17:58 Sam James
2021-07-23 17:58 Sam James
2021-07-23 17:58 Sam James
2021-05-15  6:17 罗百科
2021-04-15  2:51 Mike Gilbert
2021-03-27 16:04 Sam James
2021-03-26 11:50 Agostino Sarubbo
2021-03-26 11:34 Sam James
2021-03-25 23:44 Sam James
2021-03-25 23:44 Sam James
2021-03-25 23:20 Sam James
2021-03-25 23:17 Sam James
2021-03-25 23:13 Sam James
2021-03-24 21:12 Sergei Trofimovich
2021-03-04  8:31 罗百科
2021-01-06 12:52 Fabian Groffen
2020-12-23 13:57 Sergei Trofimovich
2020-12-22 23:47 Sam James
2020-12-22  6:29 Sam James
2020-12-22  5:05 Sam James
2020-12-22  1:31 Sam James
2020-12-21 18:01 Sam James
2020-12-20 20:06 Sam James
2020-12-20 18:20 Sam James
2020-12-20 16:30 Thomas Deutschmann
2020-12-19 17:42 Sam James
2020-12-17 10:13 罗百科
2020-09-18 10:39 Lars Wendler
2020-06-20 17:56 罗百科
2020-05-10  9:10 Mikle Kolyada
2020-05-05 21:15 Sergei Trofimovich
2020-05-04 19:57 Mart Raudsepp
2020-05-04 15:29 Agostino Sarubbo
2020-05-04 15:15 Agostino Sarubbo
2020-05-04 13:33 Agostino Sarubbo
2020-05-04 13:32 Agostino Sarubbo
2020-05-04 13:31 Agostino Sarubbo
2020-05-04 13:30 Agostino Sarubbo
2020-05-04 13:29 Agostino Sarubbo
2020-03-22 15:34 Sergei Trofimovich
2020-03-20 18:33 Matt Turner
2019-11-20  9:07 Lars Wendler
2019-11-20  9:07 Lars Wendler
2019-11-19 12:31 Manuel Rüger
2019-10-07  8:42 Lars Wendler
2019-10-06 22:22 Michał Górny
2019-07-29  9:06 Manuel Rüger
2019-07-20  7:00 罗百科
2019-04-17 13:43 Mikle Kolyada
2019-04-17 13:21 Lars Wendler
2019-04-17 13:21 Lars Wendler
2019-04-17 12:30 Mikle Kolyada
2019-04-17 12:30 Mikle Kolyada
2019-04-17 12:30 Mikle Kolyada
2019-04-17  5:20 Patrick Lauer
2019-04-10 22:03 Sergei Trofimovich
2019-04-08 18:27 Markus Meier
2019-04-08  8:39 Mart Raudsepp
2019-04-07 20:52 Sergei Trofimovich
2019-03-29  4:41 Matt Turner
2019-03-29  4:41 Matt Turner
2019-03-27 23:44 Thomas Deutschmann
2019-03-27 20:04 Agostino Sarubbo
2019-01-05 17:19 Mikle Kolyada
2018-12-30 16:10 Manuel Rüger
2018-12-27 18:48 Fabian Groffen
2018-12-26 20:02 Sergei Trofimovich
2018-11-17 16:06 Mikle Kolyada
2018-11-11 22:30 Lars Wendler
2018-10-28 17:02 Manuel Rüger
2018-10-28 16:50 Manuel Rüger
2018-10-13  6:56 Tobias Klausmann
2018-10-08 10:12 Mikle Kolyada
2018-10-06 23:47 Matt Turner
2018-10-06 23:47 Matt Turner
2018-10-06 18:23 Sergei Trofimovich
2018-10-06 10:25 Jeroen Roovers
2018-10-05 12:25 Thomas Deutschmann
2018-06-10 18:14 Sergei Trofimovich
2018-05-17 21:18 Sergei Trofimovich
2018-04-18 20:41 Sergei Trofimovich
2018-03-27  8:51 Manuel Rüger
2018-03-15 15:00 Mikle Kolyada
2018-02-23  9:41 Tobias Klausmann
2018-01-12 12:23 Manuel Rüger
2017-11-25 14:21 Sergei Trofimovich
2017-11-13 22:28 Sergei Trofimovich
2017-11-13 22:28 Sergei Trofimovich
2017-11-13 22:28 Sergei Trofimovich
2017-11-13 22:28 Sergei Trofimovich
2017-10-28 22:53 Sergei Trofimovich
2017-10-28 22:40 Sergei Trofimovich
2017-10-26 18:54 Thomas Deutschmann
2017-10-24 12:38 Manuel Rüger
2017-10-17 19:04 Markus Meier
2017-10-11 15:19 Manuel Rüger
2017-08-03 10:43 Manuel Rüger
2017-07-31 10:44 Anthony G. Basile
2017-07-09 10:15 Alexis Ballier
2017-06-20 16:07 Patrick Lauer
2017-06-20  5:17 Agostino Sarubbo
2017-06-18 14:01 Agostino Sarubbo
2017-06-02  4:48 Markus Meier
2017-05-24 19:13 Anthony G. Basile
2017-02-21 10:01 Hanno Boeck
2016-10-25  0:08 David Seifert
2016-10-03 23:50 Matthias Maier
2016-09-26 12:52 Patrick Lauer
2016-09-05 10:10 Patrick Lauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1530944178.bc57d3bf37f1a5f477c4c8711c34054ec3dd166f.patrick@gentoo \
    --to=patrick@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox