blob: 5548ea15047be21277afb355fb5ee1eba64c512f (
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
|
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit multilib
DESCRIPTION="Heavily optimized DEFLATE/zlib/gzip (de)compression"
HOMEPAGE="https://github.com/ebiggers/libdeflate"
SRC_URI="https://github.com/ebiggers/libdeflate/archive/v1.2.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
PATCHES=( "${FILESDIR}"/libdeflate-1.2-respect_EPREFIX.patch )
src_install() {
if ! use static-libs; then
find "${ED}" -name '*.a' -delete || die
fi
emake install DESTDIR="${ED}" LIBDIR=/usr/"$(get_libdir)"
dodoc NEWS README.md
}
|