Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/snappy/
Date: Sun, 27 May 2018 12:34:58
Message-Id: 1527424487.6959ad89eb8358457ee751e36f1bff856a68fd9b.mgorny@gentoo
1 commit: 6959ad89eb8358457ee751e36f1bff856a68fd9b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 27 12:31:17 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 27 12:34:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6959ad89
7
8 app-arch/snappy: Revert "Drop old"
9
10 Revdeps need to be fixed to stop relying on static-libs first.
11
12 app-arch/snappy/Manifest | 1 +
13 app-arch/snappy/snappy-1.1.3-r1.ebuild | 40 ++++++++++++++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/app-arch/snappy/Manifest b/app-arch/snappy/Manifest
17 index 60e8583cc5d..8f0b00eb865 100644
18 --- a/app-arch/snappy/Manifest
19 +++ b/app-arch/snappy/Manifest
20 @@ -1 +1,2 @@
21 +DIST snappy-1.1.3.tar.gz 1509026 BLAKE2B d8dbb6e92d1788f7b13e6e36aa0297cfcb28d664fb625d0798831ccd00de818675c224821359cc66f38f274da248725737510a85b01a36efe07aa4c9a8bcfda4 SHA512 4c4f47c657a072989179be9df0e5e98d14f4a67c27ec7ae0e5a15d14289a75d4e266bc6c5c89723f3e9860408ffcc7138a815f8ad9299407c4a1946fc00ab5bf
22 DIST snappy-1.1.7.tar.gz 1090550 BLAKE2B e389c96e093de5db92b896a7fa17a90d3ad0be07972e279321f24875f0f0c8c704ff478f4902a6356d458f93c249e3e06424d5a4efc9753a23ab12b7ee83a088 SHA512 32046f532606ba545a4e4825c0c66a19be449f2ca2ff760a6fa170a3603731479a7deadb683546e5f8b5033414c50f4a9a29f6d23b7a41f047e566e69eca7caf
23
24 diff --git a/app-arch/snappy/snappy-1.1.3-r1.ebuild b/app-arch/snappy/snappy-1.1.3-r1.ebuild
25 new file mode 100644
26 index 00000000000..56a519b607b
27 --- /dev/null
28 +++ b/app-arch/snappy/snappy-1.1.3-r1.ebuild
29 @@ -0,0 +1,40 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +inherit autotools multilib-minimal
35 +
36 +DESCRIPTION="A high-speed compression/decompression library by Google"
37 +HOMEPAGE="https://github.com/google/snappy"
38 +SRC_URI="https://github.com/google/${PN}/releases/download/${PV}/${P}.tar.gz"
39 +
40 +LICENSE="BSD"
41 +SLOT="0"
42 +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
43 +IUSE="static-libs"
44 +
45 +src_prepare() {
46 + # Avoid automagic lzo and gzip by not checking for it
47 + sed -i '/^CHECK_EXT_COMPRESSION_LIB/d' configure.ac || die
48 +
49 + # don't install unwanted files
50 + sed -i 's/COPYING INSTALL//' Makefile.am || die
51 +
52 + default
53 + eautoreconf
54 +}
55 +
56 +multilib_src_configure() {
57 + local myconf=(
58 + --without-gflags
59 + --disable-gtest
60 + $(use_enable static-libs static)
61 + )
62 +
63 + ECONF_SOURCE=${S} \
64 + econf "${myconf[@]}"
65 +}
66 +
67 +multilib_src_install_all() {
68 + find "${ED%/}"/usr/lib* -name '*.la' -delete || die
69 +}