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: Tue, 31 May 2016 12:22:49
Message-Id: 1464697356.64be55454886b6b693413b2669a095d35f435e85.mgorny@gentoo
1 commit: 64be55454886b6b693413b2669a095d35f435e85
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 12:20:07 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 12:22:36 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64be5545
7
8 app-arch/snappy: Clean up the ebuild, bump to EAPI=6
9
10 Replace partial use of deprecated autotools-multilib with correct
11 combination of autotools & multilib-minimal. Clean up the code a bit,
12 and bump it to EAPI=6.
13
14 app-arch/snappy/snappy-1.1.3-r1.ebuild | 42 ++++++++++++++++++++++++++++++++++
15 1 file changed, 42 insertions(+)
16
17 diff --git a/app-arch/snappy/snappy-1.1.3-r1.ebuild b/app-arch/snappy/snappy-1.1.3-r1.ebuild
18 new file mode 100644
19 index 0000000..2e7e891
20 --- /dev/null
21 +++ b/app-arch/snappy/snappy-1.1.3-r1.ebuild
22 @@ -0,0 +1,42 @@
23 +# Copyright 1999-2016 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Id$
26 +
27 +EAPI=6
28 +inherit autotools multilib-minimal
29 +
30 +DESCRIPTION="A high-speed compression/decompression library by Google"
31 +HOMEPAGE="https://github.com/google/snappy"
32 +SRC_URI="https://github.com/google/${PN}/releases/download/${PV}/${P}.tar.gz"
33 +
34 +LICENSE="BSD"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86
37 + ~amd64-fbsd ~amd64-linux ~x86-linux"
38 +IUSE="static-libs"
39 +
40 +src_prepare() {
41 + # Avoid automagic lzo and gzip by not checking for it
42 + sed -i '/^CHECK_EXT_COMPRESSION_LIB/d' configure.ac || die
43 +
44 + # don't install unwanted files
45 + sed -i 's/COPYING INSTALL//' Makefile.am || die
46 +
47 + default
48 + eautoreconf
49 +}
50 +
51 +multilib_src_configure() {
52 + local myconf=(
53 + --without-gflags
54 + --disable-gtest
55 + $(use_enable static-libs static)
56 + )
57 +
58 + ECONF_SOURCE=${S} \
59 + econf "${myconf[@]}"
60 +}
61 +
62 +multilib_src_install_all() {
63 + find "${ED%/}"/usr/lib* -name '*.la' -delete || die
64 +}