sys-boot/plymouth: add support for /usr merge
authorMatija Skala <mskala@gmx.com>
Wed, 7 Nov 2018 15:20:57 +0000 (16:20 +0100)
committerMatthew Thode <prometheanfire@gentoo.org>
Wed, 7 Nov 2018 15:49:25 +0000 (09:49 -0600)
Signed-off-by: Matija Skala <mskala@gmx.com>
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
sys-boot/plymouth/plymouth-0.9.4-r1.ebuild [moved from sys-boot/plymouth/plymouth-0.9.4.ebuild with 88% similarity]

similarity index 88%
rename from sys-boot/plymouth/plymouth-0.9.4.ebuild
rename to sys-boot/plymouth/plymouth-0.9.4-r1.ebuild
index f10bd9023672ec918ba1cfb991bf19e9e78385c1..cab004479b73e7d669639bebae207f4d03693016 100644 (file)
@@ -21,7 +21,7 @@ HOMEPAGE="https://cgit.freedesktop.org/plymouth/"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="debug gdm +gtk +libkms +pango static-libs"
+IUSE="debug gdm +gtk +libkms +pango +split-usr static-libs"
 
 CDEPEND="
        >=media-libs/libpng-1.2.16:=
@@ -85,10 +85,12 @@ src_install() {
        insinto /usr/share/plymouth
        newins "${DISTDIR}"/gentoo-logo.png bizcom.png
 
-       # Install compatibility symlinks as some rdeps hardcode the paths
-       dosym ../usr/bin/plymouth /bin/plymouth
-       dosym ..../usr/sbin/plymouth-set-default-theme /sbin/plymouth-set-default-theme
-       dosym ../usr/sbin/plymouthd /sbin/plymouthd
+       if use split-usr ; then
+               # Install compatibility symlinks as some rdeps hardcode the paths
+               dosym ../usr/bin/plymouth /bin/plymouth
+               dosym ../usr/sbin/plymouth-set-default-theme /sbin/plymouth-set-default-theme
+               dosym ../usr/sbin/plymouthd /sbin/plymouthd
+       fi
 
        readme.gentoo_create_doc