aboutsummaryrefslogtreecommitdiff
blob: 666506943824e7c9a2275d5ca5c6d32b25be4a58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Heavily optimized DEFLATE/zlib/gzip (de)compression"
HOMEPAGE="https://github.com/ebiggers/libdeflate"
SRC_URI="https://github.com/ebiggers/libdeflate/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"

src_install() {
	if ! use static-libs; then
		find "${ED}" -name '*.a' -delete || die
	fi
	emake install DESTDIR="${ED}" PREFIX=/usr LIBDIR=/usr/"$(get_libdir)"
	dodoc NEWS README.md
}