commit:     4f8a1cdd067bff319820cf0ee9fa009a44386acd
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 20 02:12:08 2017 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Fri Jan 20 02:37:47 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f8a1cdd

app-emulation/libvirt: port to EAPI 6

Package-Manager: Portage-2.3.0, Repoman-2.3.1

 ...ibvirt-2.5.0.ebuild => libvirt-2.5.0-r1.ebuild} | 40 ++++++++--------------
 app-emulation/libvirt/libvirt-9999.ebuild          | 40 ++++++++--------------
 2 files changed, 30 insertions(+), 50 deletions(-)

diff --git a/app-emulation/libvirt/libvirt-2.5.0.ebuild 
b/app-emulation/libvirt/libvirt-2.5.0-r1.ebuild
similarity index 91%
rename from app-emulation/libvirt/libvirt-2.5.0.ebuild
rename to app-emulation/libvirt/libvirt-2.5.0-r1.ebuild
index 556a123..1cb69c8 100644
--- a/app-emulation/libvirt/libvirt-2.5.0.ebuild
+++ b/app-emulation/libvirt/libvirt-2.5.0-r1.ebuild
@@ -1,12 +1,10 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-inherit eutils user autotools-utils linux-info systemd readme.gentoo-r1
-
-BACKPORTS=""
+inherit autotools eutils user linux-info systemd readme.gentoo-r1
 
 if [[ ${PV} = *9999* ]]; then
        inherit git-r3
@@ -21,9 +19,6 @@ else
        else
                SRC_URI="http://libvirt.org/sources/${P}.tar.xz";
        fi
-       SRC_URI+=" ${BACKPORTS:+
-               
https://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz
-               
https://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}";
        KEYWORDS="~amd64 ~x86"
        SLOT="0/${PV}"
 fi
@@ -125,6 +120,13 @@ DEPEND="${RDEPEND}
        dev-perl/XML-XPath
        virtual/pkgconfig"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch
+       "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch
+       "${FILESDIR}"/${PN}-1.3.1-fix_paths_for_apparmor.patch
+       "${FILESDIR}"/${PN}-1.3.4-glibc-2.23.patch
+)
+
 pkg_setup() {
        enewgroup qemu 77
        enewuser qemu 77 -1 -1 "qemu,kvm"
@@ -225,17 +227,7 @@ src_prepare() {
                ) >.git-module-status
        fi
 
-       epatch \
-               "${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch \
-               "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch 
\
-               "${FILESDIR}"/${PN}-1.3.1-fix_paths_for_apparmor.patch \
-               "${FILESDIR}"/${PN}-1.3.4-glibc-2.23.patch
-
-       [[ -n ${BACKPORTS} ]] &&
-               EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \
-                       EPATCH_SOURCE="${WORKDIR}/patches" epatch
-
-       epatch_user
+       default
 
        # Tweak the init script:
        cp "${FILESDIR}/libvirtd.init-r16" "${S}/libvirtd.init" || die
@@ -245,8 +237,7 @@ src_prepare() {
                -e "s/USE_FLAG_RBD/$(usex rbd 'use ceph' '')/" \
                -i "${S}/libvirtd.init" || die "sed failed"
 
-       AUTOTOOLS_AUTORECONF=true
-       autotools-utils_src_prepare
+       eautoreconf
 }
 
 src_configure() {
@@ -316,7 +307,7 @@ src_configure() {
                myeconfargs+=( $(use_with virtualbox vbox) )
        fi
 
-       autotools-utils_src_configure
+       econf "${myeconfargs[@]}"
 
        if [[ ${PV} = *9999* ]]; then
                # Restore gnulib's config.sub and config.guess
@@ -340,9 +331,8 @@ src_test() {
 }
 
 src_install() {
-       autotools-utils_src_compile install \
-               DESTDIR="${D}" \
-               SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)"
+       emake DESTDIR="${D}" \
+               SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install
 
        find "${D}" -name '*.la' -delete || die
 

diff --git a/app-emulation/libvirt/libvirt-9999.ebuild 
b/app-emulation/libvirt/libvirt-9999.ebuild
index 556a123..1cb69c8 100644
--- a/app-emulation/libvirt/libvirt-9999.ebuild
+++ b/app-emulation/libvirt/libvirt-9999.ebuild
@@ -1,12 +1,10 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-inherit eutils user autotools-utils linux-info systemd readme.gentoo-r1
-
-BACKPORTS=""
+inherit autotools eutils user linux-info systemd readme.gentoo-r1
 
 if [[ ${PV} = *9999* ]]; then
        inherit git-r3
@@ -21,9 +19,6 @@ else
        else
                SRC_URI="http://libvirt.org/sources/${P}.tar.xz";
        fi
-       SRC_URI+=" ${BACKPORTS:+
-               
https://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz
-               
https://dev.gentoo.org/~tamiko/distfiles/${P}-${BACKPORTS}.tar.xz}";
        KEYWORDS="~amd64 ~x86"
        SLOT="0/${PV}"
 fi
@@ -125,6 +120,13 @@ DEPEND="${RDEPEND}
        dev-perl/XML-XPath
        virtual/pkgconfig"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch
+       "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch
+       "${FILESDIR}"/${PN}-1.3.1-fix_paths_for_apparmor.patch
+       "${FILESDIR}"/${PN}-1.3.4-glibc-2.23.patch
+)
+
 pkg_setup() {
        enewgroup qemu 77
        enewuser qemu 77 -1 -1 "qemu,kvm"
@@ -225,17 +227,7 @@ src_prepare() {
                ) >.git-module-status
        fi
 
-       epatch \
-               "${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch \
-               "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch 
\
-               "${FILESDIR}"/${PN}-1.3.1-fix_paths_for_apparmor.patch \
-               "${FILESDIR}"/${PN}-1.3.4-glibc-2.23.patch
-
-       [[ -n ${BACKPORTS} ]] &&
-               EPATCH_FORCE=yes EPATCH_SUFFIX="patch" \
-                       EPATCH_SOURCE="${WORKDIR}/patches" epatch
-
-       epatch_user
+       default
 
        # Tweak the init script:
        cp "${FILESDIR}/libvirtd.init-r16" "${S}/libvirtd.init" || die
@@ -245,8 +237,7 @@ src_prepare() {
                -e "s/USE_FLAG_RBD/$(usex rbd 'use ceph' '')/" \
                -i "${S}/libvirtd.init" || die "sed failed"
 
-       AUTOTOOLS_AUTORECONF=true
-       autotools-utils_src_prepare
+       eautoreconf
 }
 
 src_configure() {
@@ -316,7 +307,7 @@ src_configure() {
                myeconfargs+=( $(use_with virtualbox vbox) )
        fi
 
-       autotools-utils_src_configure
+       econf "${myeconfargs[@]}"
 
        if [[ ${PV} = *9999* ]]; then
                # Restore gnulib's config.sub and config.guess
@@ -340,9 +331,8 @@ src_test() {
 }
 
 src_install() {
-       autotools-utils_src_compile install \
-               DESTDIR="${D}" \
-               SYSTEMD_UNIT_DIR="$(systemd_get_unitdir)"
+       emake DESTDIR="${D}" \
+               SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install
 
        find "${D}" -name '*.la' -delete || die
 

Reply via email to