-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
-inherit bash-completion-r1 eutils multilib python-r1
+inherit bash-completion-r1 ltprune multilib python-r1
if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git"
- inherit autotools git-2
+ inherit autotools git-r3
else
SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
DOCS="NEWS README TODO"
src_prepare() {
+ default
+
if [ ! -e configure ]; then
if use doc; then
gtkdocize --copy --docdir libkmod/docs || die
src_configure() {
local myeconfargs=(
--bindir="${EPREFIX}/bin"
- --with-rootlibdir="${EPREFIX}/$(get_libdir)"
--enable-shared
- $(use_enable static-libs static)
- $(use_enable tools)
+ --with-bashcompletiondir="$(get_bashcompdir)"
+ --with-rootlibdir="${EPREFIX}/$(get_libdir)"
$(use_enable debug)
$(use_enable doc gtk-doc)
+ $(use_enable static-libs static)
+ $(use_enable tools)
$(use_with lzma xz)
$(use_with zlib)
- --with-bashcompletiondir="$(get_bashcompdir)"
)
local ECONF_SOURCE="${S}"