1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_{6,7}} )
7 inherit autotools python-single-r1
12 DESCRIPTION="Library that implements the AFF image standard"
13 HOMEPAGE="https://github.com/sshock/AFFLIBv3/"
14 SRC_URI="https://github.com/sshock/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
18 KEYWORDS="amd64 ~arm hppa ppc x86 ~x64-macos"
19 IUSE="fuse libressl ncurses python qemu readline s3 static-libs threads"
20 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
25 fuse? ( sys-fs/fuse:= )
26 !libressl? ( dev-libs/openssl:0= )
27 libressl? ( dev-libs/libressl:= )
28 ncurses? ( sys-libs/ncurses:0= )
29 python? ( ${PYTHON_DEPS} )
30 readline? ( sys-libs/readline:0= )
35 S="${WORKDIR}/${MY_P}"
38 use python && python-single-r1_pkg_setup
42 sed -i '/FLAGS/s: -g::' configure.ac || die
49 # Hacks for automagic dependencies
50 use ncurses || export ac_cv_lib_ncurses_initscr=no
51 use readline || export ac_cv_lib_readline_readline=no
58 $(use_enable static-libs static)
59 $(use_enable threads threading)
61 econf "${myeconfargs[@]}"
66 find "${ED}" -name "*.la" -delete || die