sys-apps/systemd: skip distro patches when USE=vanilla
authorMike Gilbert <floppym@gentoo.org>
Sun, 30 Oct 2016 04:15:57 +0000 (00:15 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 30 Oct 2016 04:20:53 +0000 (00:20 -0400)
Package-Manager: portage-2.3.2_p1

sys-apps/systemd/systemd-9999.ebuild

index b79eeacb3f46b6f3e636289462719335a152d6f6..fd23a3492dd50bad77bc05da6b673a22acbb50df 100644 (file)
@@ -157,10 +157,16 @@ src_prepare() {
        sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die
 
        local PATCHES=(
-               "${FILESDIR}/218-Dont-enable-audit-by-default.patch"
-               "${FILESDIR}/228-noclean-tmp.patch"
-               "${FILESDIR}/232-systemd-user-pam.patch"
        )
+
+       if ! use vanilla; then
+               PATCHES+=(
+                       "${FILESDIR}/218-Dont-enable-audit-by-default.patch"
+                       "${FILESDIR}/228-noclean-tmp.patch"
+                       "${FILESDIR}/232-systemd-user-pam.patch"
+               )
+       fi
+
        [[ -d "${WORKDIR}"/patches ]] && PATCHES+=( "${WORKDIR}"/patches )
 
        default