-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} )
-inherit bash-completion-r1 ltprune multilib python-r1
+inherit bash-completion-r1 multilib python-r1
if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git"
LICENSE="LGPL-2"
SLOT="0"
-IUSE="debug doc lzma python static-libs +tools zlib"
+IUSE="debug doc lzma python ssl static-libs +tools zlib"
# Upstream does not support running the test suite with custom configure flags.
# I was also told that the test suite is intended for kmod developers.
!<sys-apps/systemd-216-r3
lzma? ( >=app-arch/xz-utils-5.0.4-r1 )
python? ( ${PYTHON_DEPS} )
+ ssl? ( >=dev-libs/openssl-1.1.0:0= )
zlib? ( >=sys-libs/zlib-1.2.6 )" #427130
DEPEND="${RDEPEND}
doc? ( dev-util/gtk-doc )
src_prepare() {
default
- if [ ! -e configure ]; then
+ if [[ ! -e configure ]] ; then
if use doc; then
gtkdocize --copy --docdir libkmod/docs || die
else
$(use_enable static-libs static)
$(use_enable tools)
$(use_with lzma xz)
+ $(use_with ssl openssl)
$(use_with zlib)
)
python_foreach_impl python_install
fi
- prune_libtool_files --modules
+ find "${ED}" -name "*.la" -delete || die
if use tools; then
local bincmd sbincmd