media-sound/pulseaudio: Minor ebuild simplifications.
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 22 Jun 2018 10:09:40 +0000 (12:09 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 22 Jun 2018 10:09:54 +0000 (12:09 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

media-sound/pulseaudio/pulseaudio-12.0-r1.ebuild

index 7244e687d1328c4e0f145fd2a46e9fa870997275..4b4924da944086d2a2af38ba299788ef8fbe5dd7 100644 (file)
@@ -277,6 +277,12 @@ multilib_src_install_all() {
                doinitd "${T}/pulseaudio"
 
                systemd_dounit "${FILESDIR}/${PN}.service"
+
+               # We need /var/run/pulse, bug #442852
+               systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
+       else
+               # Prevent warnings when system-wide is not used, bug #447694
+               rm "${ED%/}"/etc/dbus-1/system.d/pulseaudio-system.conf || die
        fi
 
        if use zeroconf ; then
@@ -289,14 +295,6 @@ multilib_src_install_all() {
        # Create the state directory
        use prefix || diropts -o pulse -g pulse -m0755
 
-       # We need /var/run/pulse, bug #442852
-       use system-wide && systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
-
-       # Prevent warnings when system-wide is not used, bug #447694
-       if ! use system-wide ; then
-               rm "${ED}"/etc/dbus-1/system.d/pulseaudio-system.conf || die
-       fi
-
        find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die
 }