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

EAPI=8

inherit autotools

DESCRIPTION="Threading library used by dar archiver"
HOMEPAGE="https://sourceforge.net/projects/libthreadar/"
SRC_URI="https://downloads.sourceforge.net/libthreadar/${P}.tar.gz"

LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"

src_prepare() {
	default

	# this is an example binary that is not installed
	# the original Makefile tries to compile it statically,
	# no longer supported
	sed -i -e '/^test_barrier_LDFLAGS/d' doc/examples/Makefile.am || die
	eautoreconf
}

src_install() {
	emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install

	einstalldocs

	find "${ED}" -name '*.la' -delete || die
}