forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
afflib-3.7.20-r1.ebuild
81 lines (65 loc) · 1.66 KB
/
afflib-3.7.20-r1.ebuild
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit autotools python-single-r1
MY_PN=AFFLIBv3
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Library that implements the AFF image standard"
HOMEPAGE="https://github.com/sshock/AFFLIBv3/"
SRC_URI="https://github.com/sshock/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ~hppa ppc x86 ~x64-macos"
IUSE="fuse ncurses python qemu readline s3 static-libs threads"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
# Tests don't play well with sandbox
RESTRICT="test"
RDEPEND="
dev-libs/expat
sys-libs/zlib:=
fuse? ( sys-fs/fuse:0 )
dev-libs/openssl:=
ncurses? ( sys-libs/ncurses:= )
python? (
${PYTHON_DEPS}
$(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]')
)
readline? ( sys-libs/readline:= )
s3? ( net-misc/curl )
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-3.7.19-search-path.patch"
"${FILESDIR}/${PN}-3.7.20-c99.patch"
)
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
default
sed -i \
-e '/FLAGS/s: -g::' \
-e 's:-D_FORTIFY_SOURCE=2::' \
configure.ac || die
eautoreconf
}
src_configure() {
# Hacks for automagic dependencies
use ncurses || export ac_cv_lib_ncurses_initscr=no
use readline || export ac_cv_lib_readline_readline=no
local myeconfargs=(
$(use_enable fuse)
$(use_enable python)
$(use_enable qemu)
$(use_enable s3)
$(use_enable static-libs static)
$(use_enable threads threading)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
find "${ED}" -name "*.la" -delete || die
}