summaryrefslogtreecommitdiff
blob: f8a20c0605ffd6a7528fb8f6e8669f529fa340f7 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

DESCRIPTION="Lightweight event loop library for Linux epoll() family APIs"
HOMEPAGE="https://github.com/troglobit/libuev"
SRC_URI="https://github.com/troglobit/${PN}/releases/download/v${PV}/${P}.tar.xz"

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

PATCHES=(
	"${FILESDIR}/${PN}"-fix-tests.patch
	"${FILESDIR}/${PN}"-large-files-fix.patch
)

src_prepare() {
	default

	# Needed for glibc/LFS patches
	eautoreconf
}

src_configure() {
	econf --enable-static=$(usex static-libs)
}

src_install() {
	default
	find "${D}" -name '*.la' -delete || die
	rm "${D}/usr/share/doc/${PF}/LICENSE" || die
}