You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.5 KiB
68 lines
1.5 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=7
|
||
|
PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} )
|
||
8 years ago
|
|
||
6 years ago
|
inherit autotools python-single-r1
|
||
8 years ago
|
|
||
|
MY_PN=AFFLIBv3
|
||
6 years ago
|
MY_P="${MY_PN}-${PV}"
|
||
8 years ago
|
|
||
|
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"
|
||
|
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86 ~x64-macos"
|
||
6 years ago
|
IUSE="fuse libressl ncurses python qemu readline s3 static-libs threads"
|
||
8 years ago
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||
|
|
||
5 years ago
|
RDEPEND="
|
||
|
dev-libs/expat
|
||
|
sys-libs/zlib:0=
|
||
6 years ago
|
fuse? ( sys-fs/fuse:= )
|
||
|
!libressl? ( dev-libs/openssl:0= )
|
||
|
libressl? ( dev-libs/libressl:= )
|
||
7 years ago
|
ncurses? ( sys-libs/ncurses:0= )
|
||
8 years ago
|
python? ( ${PYTHON_DEPS} )
|
||
6 years ago
|
readline? ( sys-libs/readline:0= )
|
||
5 years ago
|
s3? ( net-misc/curl )
|
||
|
"
|
||
8 years ago
|
DEPEND="${RDEPEND}"
|
||
|
|
||
6 years ago
|
S="${WORKDIR}/${MY_P}"
|
||
8 years ago
|
|
||
|
pkg_setup() {
|
||
|
use python && python-single-r1_pkg_setup
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
sed -i '/FLAGS/s: -g::' configure.ac || die
|
||
|
|
||
6 years ago
|
default
|
||
|
eautoreconf
|
||
8 years ago
|
}
|
||
|
|
||
|
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)
|
||
6 years ago
|
$(use_enable static-libs static)
|
||
8 years ago
|
$(use_enable threads threading)
|
||
|
)
|
||
6 years ago
|
econf "${myeconfargs[@]}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
find "${ED}" -name "*.la" -delete || die
|
||
8 years ago
|
}
|