x11-wm/i3: show elog message only on first installation
authorFrancesco Turco <fturco@fastmail.fm>
Sun, 26 Aug 2018 18:08:31 +0000 (20:08 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 11 Sep 2018 08:03:56 +0000 (10:03 +0200)
Closes: https://github.com/gentoo/gentoo/pull/9703

x11-wm/i3/i3-4.13-r1.ebuild
x11-wm/i3/i3-4.14.1.ebuild
x11-wm/i3/i3-4.14.ebuild
x11-wm/i3/i3-4.15.ebuild
x11-wm/i3/i3-9999.ebuild

index acfef3313c8a39d3de27a9b1f62defefb97e1b9b..2b809ac551d62970545a563297b1b5be633a018e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -76,10 +76,13 @@ src_install() {
 }
 
 pkg_postinst() {
-       einfo "There are several packages that you may find useful with ${PN} and"
-       einfo "their usage is suggested by the upstream maintainers, namely:"
-       einfo "  x11-misc/dmenu"
-       einfo "  x11-misc/i3status"
-       einfo "  x11-misc/i3lock"
-       einfo "Please refer to their description for additional info."
+       # Only show the elog information on a new install
+       if [[ ! ${REPLACING_VERSIONS} ]]; then
+               elog "There are several packages that you may find useful with ${PN} and"
+               elog "their usage is suggested by the upstream maintainers, namely:"
+               elog "  x11-misc/dmenu"
+               elog "  x11-misc/i3status"
+               elog "  x11-misc/i3lock"
+               elog "Please refer to their description for additional info."
+       fi
 }
index 3c204ad407fced7d9b0a061827cd24631533ae59..a10e0a5f9e408c78c780783c570526058c122704 100644 (file)
@@ -102,10 +102,13 @@ my_src_install_all() {
 }
 
 pkg_postinst() {
-       einfo "There are several packages that you may find useful with ${PN} and"
-       einfo "their usage is suggested by the upstream maintainers, namely:"
-       einfo "  x11-misc/dmenu"
-       einfo "  x11-misc/i3status"
-       einfo "  x11-misc/i3lock"
-       einfo "Please refer to their description for additional info."
+       # Only show the elog information on a new install
+       if [[ ! ${REPLACING_VERSIONS} ]]; then
+               elog "There are several packages that you may find useful with ${PN} and"
+               elog "their usage is suggested by the upstream maintainers, namely:"
+               elog "  x11-misc/dmenu"
+               elog "  x11-misc/i3status"
+               elog "  x11-misc/i3lock"
+               elog "Please refer to their description for additional info."
+       fi
 }
index b98df36f9270baa60b97dd0f3d5608c7d0041798..26d946ec6f08d96d64510488c075d72b1fb22dcc 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -90,10 +90,13 @@ src_install() {
 }
 
 pkg_postinst() {
-       einfo "There are several packages that you may find useful with ${PN} and"
-       einfo "their usage is suggested by the upstream maintainers, namely:"
-       einfo "  x11-misc/dmenu"
-       einfo "  x11-misc/i3status"
-       einfo "  x11-misc/i3lock"
-       einfo "Please refer to their description for additional info."
+       # Only show the elog information on a new install
+       if [[ ! ${REPLACING_VERSIONS} ]]; then
+               elog "There are several packages that you may find useful with ${PN} and"
+               elog "their usage is suggested by the upstream maintainers, namely:"
+               elog "  x11-misc/dmenu"
+               elog "  x11-misc/i3status"
+               elog "  x11-misc/i3lock"
+               elog "Please refer to their description for additional info."
+       fi
 }
index df485534f2f45beae5183b568e680a509b5573b1..90f223b0d2c3aff21d889de1704b6b0a171ef8b4 100644 (file)
@@ -102,10 +102,13 @@ my_src_install_all() {
 }
 
 pkg_postinst() {
-       einfo "There are several packages that you may find useful with ${PN} and"
-       einfo "their usage is suggested by the upstream maintainers, namely:"
-       einfo "  x11-misc/dmenu"
-       einfo "  x11-misc/i3status"
-       einfo "  x11-misc/i3lock"
-       einfo "Please refer to their description for additional info."
+       # Only show the elog information on a new install
+       if [[ ! ${REPLACING_VERSIONS} ]]; then
+               elog "There are several packages that you may find useful with ${PN} and"
+               elog "their usage is suggested by the upstream maintainers, namely:"
+               elog "  x11-misc/dmenu"
+               elog "  x11-misc/i3status"
+               elog "  x11-misc/i3lock"
+               elog "Please refer to their description for additional info."
+       fi
 }
index cd758177621ba46f99248cac8b5063f8604d5041..44462428862ea20ac61513a30321b8fbde5bb496 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -74,10 +74,14 @@ src_install() {
 }
 
 pkg_postinst() {
-       einfo "There are several packages that you may find useful with ${PN} and"
-       einfo "their usage is suggested by the upstream maintainers, namely:"
-       einfo "  x11-misc/dmenu"
-       einfo "  x11-misc/i3status"
-       einfo "  x11-misc/i3lock"
-       einfo "Please refer to their description for additional info."
+
+       # Only show the elog information on a new install
+       if [[ ! ${REPLACING_VERSIONS} ]]; then
+               elog "There are several packages that you may find useful with ${PN} and"
+               elog "their usage is suggested by the upstream maintainers, namely:"
+               elog "  x11-misc/dmenu"
+               elog "  x11-misc/i3status"
+               elog "  x11-misc/i3lock"
+               elog "Please refer to their description for additional info."
+       fi
 }