forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snappy-1.1.3.ebuild
39 lines (31 loc) · 973 Bytes
/
snappy-1.1.3.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
AUTOTOOLS_AUTO_DEPEND="yes"
inherit eutils autotools-multilib
DESCRIPTION="A high-speed compression/decompression library by Google"
HOMEPAGE="https://github.com/google/snappy"
SRC_URI="https://github.com/google/${PN}/releases/download/${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha ~amd64 ~arm ~arm64 hppa ppc ~ppc64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
IUSE="static-libs"
src_prepare() {
# Avoid automagic lzo and gzip by not checking for it
sed -i '/^CHECK_EXT_COMPRESSION_LIB/d' configure.ac || die
# don't install unwanted files
sed -i 's/COPYING INSTALL//' Makefile.am || die
eautoreconf
}
multilib_src_configure() {
ECONF_SOURCE=${S} \
econf \
--docdir='$(datarootdir)'/doc/${PF} \
--without-gflags \
--disable-gtest \
$(use_enable static-libs static)
}
multilib_src_install_all() {
prune_libtool_files
}