2020-01-05 20:54:22 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2016-02-14 21:48:31 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2018-11-13 16:46:20 +03:00
|
|
|
EAPI=7
|
2020-12-04 21:40:16 +03:00
|
|
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
2016-02-14 21:48:31 +03:00
|
|
|
|
2018-11-13 16:46:20 +03:00
|
|
|
inherit autotools python-single-r1
|
2016-02-14 21:48:31 +03:00
|
|
|
|
|
|
|
MY_PN=AFFLIBv3
|
2018-11-13 16:46:20 +03:00
|
|
|
MY_P="${MY_PN}-${PV}"
|
2016-02-14 21:48:31 +03:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2019-03-01 08:18:11 +03:00
|
|
|
KEYWORDS="amd64 ~arm hppa ppc x86 ~x64-macos"
|
2018-11-13 16:46:20 +03:00
|
|
|
IUSE="fuse libressl ncurses python qemu readline s3 static-libs threads"
|
2016-02-14 21:48:31 +03:00
|
|
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
|
|
|
2019-02-19 09:24:47 +03:00
|
|
|
RDEPEND="
|
|
|
|
dev-libs/expat
|
|
|
|
sys-libs/zlib:0=
|
2018-11-13 16:46:20 +03:00
|
|
|
fuse? ( sys-fs/fuse:= )
|
|
|
|
!libressl? ( dev-libs/openssl:0= )
|
|
|
|
libressl? ( dev-libs/libressl:= )
|
2017-12-10 19:53:44 +03:00
|
|
|
ncurses? ( sys-libs/ncurses:0= )
|
2016-02-14 21:48:31 +03:00
|
|
|
python? ( ${PYTHON_DEPS} )
|
2018-11-13 16:46:20 +03:00
|
|
|
readline? ( sys-libs/readline:0= )
|
2019-02-19 09:24:47 +03:00
|
|
|
s3? ( net-misc/curl )
|
|
|
|
"
|
2016-02-14 21:48:31 +03:00
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
2018-11-13 16:46:20 +03:00
|
|
|
S="${WORKDIR}/${MY_P}"
|
2016-02-14 21:48:31 +03:00
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
use python && python-single-r1_pkg_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
sed -i '/FLAGS/s: -g::' configure.ac || die
|
|
|
|
|
2018-11-13 16:46:20 +03:00
|
|
|
default
|
|
|
|
eautoreconf
|
2016-02-14 21:48:31 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
2018-11-13 16:46:20 +03:00
|
|
|
$(use_enable static-libs static)
|
2016-02-14 21:48:31 +03:00
|
|
|
$(use_enable threads threading)
|
|
|
|
)
|
2018-11-13 16:46:20 +03:00
|
|
|
econf "${myeconfargs[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
find "${ED}" -name "*.la" -delete || die
|
2016-02-14 21:48:31 +03:00
|
|
|
}
|