app-portage/eix: Switch to tmpfiles.eclass (from systemd.eclass)
authorMichał Górny <mgorny@gentoo.org>
Mon, 1 Jan 2018 10:22:27 +0000 (11:22 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 1 Jan 2018 10:34:45 +0000 (11:34 +0100)
app-portage/eix/eix-0.33.0-r1.ebuild

index bd9217a151fdc482c9c0d7c9673c2d9af727634e..f651221ce02731c7b57e295fada88153104c3562 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
 PLOCALES="de ru"
-inherit autotools bash-completion-r1 l10n systemd flag-o-matic
+inherit autotools bash-completion-r1 flag-o-matic l10n tmpfiles
 
 DESCRIPTION="Search and query ebuilds"
 HOMEPAGE="https://github.com/vaeth/eix/"
@@ -83,7 +83,7 @@ src_configure() {
 src_install() {
        default
        dobashcomp bash/eix
-       systemd_dotmpfilesd tmpfiles.d/eix.conf
+       dotmpfiles tmpfiles.d/eix.conf
 
        rm -r "${ED%/}"/usr/bin/eix-functions.sh || die
 
@@ -94,7 +94,7 @@ pkg_postinst() {
        if ! use prefix; then
                # note: if this is done in src_install(), portage:portage
                # ownership may be reset to root
-               chown portage:portage "${EROOT%/}"/var/cache/eix || die
+               tmpfiles_process eix.conf
        fi
 
        local obs=${EROOT%/}/var/cache/eix.previous