blob: 94b3ee5156daddb77eab2ec63c5f51adaf96e9fa (
plain)
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
40
41
42
43
44
45
46
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/snappy/snappy-1.0.3.ebuild,v 1.1 2011/06/14 00:37:13 nirbheek Exp $
EAPI="4"
DESCRIPTION="A high-speed compression/decompression library by Google"
HOMEPAGE="https://code.google.com/p/snappy/"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
RDEPEND=""
DEPEND="${RDEPEND}"
DOCS="AUTHORS ChangeLog README NEWS format_description.txt"
src_prepare() {
default
# Avoid automagic lzop and gzip by not checking for it
#sed -i -e '/^CHECK_EXT_COMPRESSION_LIB/d' "${S}/configure.ac" || die
# Avoid eautoreconf due to the above sed by just removing the expanded lines
sed -i -e '15126,15385d' "${S}/configure" || die
}
src_configure() {
econf \
--without-gflags \
--disable-gtest \
$(use_enable static-libs static)
}
src_install() {
default
# Remove docs installed by snappy itself
rm -rf "${ED}/usr/share/doc/snappy" || die
# Remove la files if we're not installing static libraries
if ! use static-libs; then
find "${ED}" -iname '*.la' -exec rm -f {} + || die
fi
}
|