blob: 6e66373463448acccb60ae7b7b2be6a4b975e556 (
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
47
48
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# autotools has automagic test building
# cmake has half baked installation
inherit autotools
MY_PN="ADFlib"
DESCRIPTION="Extract files from Amiga adf disk images"
HOMEPAGE="https://github.com/adflib/ADFlib/"
SRC_URI="
https://github.com/adflib/ADFlib/archive/refs/tags/v${PV}.tar.gz
-> ${MY_PN}-${PV}.tar.gz
"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="|| ( GPL-2+ LGPL-2.1+ )"
SLOT="0/2" # see adflib_lt_version from configure.ac and util/bump_project_version for more details
KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~x86-linux ~ppc-macos"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="test? ( dev-libs/check )"
PATCHES=( "${FILESDIR}"/unadf-0.9.0-make-test-build-conditional.patch )
src_prepare() {
default
eautoreconf
}
src_configure() {
local detected_libtool_ver
detected_libtool_ver="$(sed -n -e 's/m4_define(\[adflib_lt_version\],\[\([0-9]*\):[0-9]*:[0-9]*\])/\1/p' configure.ac)"
if [[ "${SLOT}" != "0/${detected_libtool_ver}" ]]; then
die "SLOT ${SLOT} doesn't match upstream specified libtool version ${detected_libtool_ver}."
fi
econf $(use_enable test tests) $(use_enable test regtests)
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
|