commit:     3f9ce3b7b58b39ff5f7707c06a3b4124d27363c3
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  6 19:43:26 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Sep  6 19:44:03 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f9ce3b7

sys-fs/lvm2: install man pages when USE=-thin

Closes: https://bugs.gentoo.org/611340
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 sys-fs/lvm2/{lvm2-2.02.185.ebuild => lvm2-2.02.185-r1.ebuild} | 4 ++--
 sys-fs/lvm2/lvm2-2.02.186.ebuild                              | 4 ++--
 sys-fs/lvm2/{lvm2-2.03.05.ebuild => lvm2-2.03.05-r1.ebuild}   | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sys-fs/lvm2/lvm2-2.02.185.ebuild 
b/sys-fs/lvm2/lvm2-2.02.185-r1.ebuild
similarity index 98%
rename from sys-fs/lvm2/lvm2-2.02.185.ebuild
rename to sys-fs/lvm2/lvm2-2.02.185-r1.ebuild
index 459f918637b..c18e5334dcd 100644
--- a/sys-fs/lvm2/lvm2-2.02.185.ebuild
+++ b/sys-fs/lvm2/lvm2-2.02.185-r1.ebuild
@@ -115,9 +115,9 @@ src_prepare() {
 
        sed -i -e "s:/usr/bin/true:$(type -P true):" 
scripts/blk_availability_systemd_red_hat.service.in || die #517514
 
-       # Without thin-privision-tools, there is nothing to install for target 
install_man7:
+       # Don't install thin man page when not requested
        if ! use thin ; then
-               sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || 
die
+               sed -i -e 's/^\(MAN7+=.*\) $(LVMTHINMAN) \(.*\)$/\1 \2/' 
man/Makefile.in || die
        fi
 
        eautoreconf

diff --git a/sys-fs/lvm2/lvm2-2.02.186.ebuild b/sys-fs/lvm2/lvm2-2.02.186.ebuild
index 459f918637b..c18e5334dcd 100644
--- a/sys-fs/lvm2/lvm2-2.02.186.ebuild
+++ b/sys-fs/lvm2/lvm2-2.02.186.ebuild
@@ -115,9 +115,9 @@ src_prepare() {
 
        sed -i -e "s:/usr/bin/true:$(type -P true):" 
scripts/blk_availability_systemd_red_hat.service.in || die #517514
 
-       # Without thin-privision-tools, there is nothing to install for target 
install_man7:
+       # Don't install thin man page when not requested
        if ! use thin ; then
-               sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || 
die
+               sed -i -e 's/^\(MAN7+=.*\) $(LVMTHINMAN) \(.*\)$/\1 \2/' 
man/Makefile.in || die
        fi
 
        eautoreconf

diff --git a/sys-fs/lvm2/lvm2-2.03.05.ebuild 
b/sys-fs/lvm2/lvm2-2.03.05-r1.ebuild
similarity index 98%
rename from sys-fs/lvm2/lvm2-2.03.05.ebuild
rename to sys-fs/lvm2/lvm2-2.03.05-r1.ebuild
index 87f738bf20e..e1103033f62 100644
--- a/sys-fs/lvm2/lvm2-2.03.05.ebuild
+++ b/sys-fs/lvm2/lvm2-2.03.05-r1.ebuild
@@ -108,9 +108,9 @@ src_prepare() {
 
        sed -i -e "s:/usr/bin/true:$(type -P true):" 
scripts/blk_availability_systemd_red_hat.service.in || die #517514
 
-       # Without thin-privision-tools, there is nothing to install for target 
install_man7:
+       # Don't install thin man page when not requested
        if ! use thin ; then
-               sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || 
die
+               sed -i -e 's/^\(MAN7+=.*\) $(LVMTHINMAN) \(.*\)$/\1 \2/' 
man/Makefile.in || die
        fi
 
        eautoreconf

Reply via email to