commit:     d52b5ff9bca3e3752cba40050ec0dffe7f2abc1e
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 14 15:47:41 2022 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Jun 14 15:49:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d52b5ff9

app-editors/nano: Don't uncomment all include lines in nanorc

Thanks-to: Jonathan Plews <pl3w5y <AT> tuta.io>
Closes: https://bugs.gentoo.org/851726
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 app-editors/nano/{nano-6.2.ebuild => nano-6.2-r1.ebuild} | 2 +-
 app-editors/nano/{nano-6.3.ebuild => nano-6.3-r1.ebuild} | 2 +-
 app-editors/nano/nano-9999.ebuild                        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-editors/nano/nano-6.2.ebuild 
b/app-editors/nano/nano-6.2-r1.ebuild
similarity index 98%
rename from app-editors/nano/nano-6.2.ebuild
rename to app-editors/nano/nano-6.2-r1.ebuild
index c76f1abb21ba..bbea2f629b94 100644
--- a/app-editors/nano/nano-6.2.ebuild
+++ b/app-editors/nano/nano-6.2-r1.ebuild
@@ -76,7 +76,7 @@ src_install() {
        if ! use minimal ; then
                # Enable colorization by default.
                sed -i \
-                       -e '/^# include /s:# *::' \
+                       -e '0,/^# include /s:# *::' \
                        "${ED}"/etc/nanorc || die
 
                # Since nano-5.0 these are no longer being "enabled" by default

diff --git a/app-editors/nano/nano-6.3.ebuild 
b/app-editors/nano/nano-6.3-r1.ebuild
similarity index 98%
rename from app-editors/nano/nano-6.3.ebuild
rename to app-editors/nano/nano-6.3-r1.ebuild
index 9bd57c68b191..52d1f38f69d5 100644
--- a/app-editors/nano/nano-6.3.ebuild
+++ b/app-editors/nano/nano-6.3-r1.ebuild
@@ -76,7 +76,7 @@ src_install() {
        if ! use minimal ; then
                # Enable colorization by default.
                sed -i \
-                       -e '/^# include /s:# *::' \
+                       -e '0,/^# include /s:# *::' \
                        "${ED}"/etc/nanorc || die
 
                # Since nano-5.0 these are no longer being "enabled" by default

diff --git a/app-editors/nano/nano-9999.ebuild 
b/app-editors/nano/nano-9999.ebuild
index 25ad3e614940..cd424d2c2341 100644
--- a/app-editors/nano/nano-9999.ebuild
+++ b/app-editors/nano/nano-9999.ebuild
@@ -76,7 +76,7 @@ src_install() {
        if ! use minimal ; then
                # Enable colorization by default.
                sed -i \
-                       -e '/^# include /s:# *::' \
+                       -e '0,/^# include /s:# *::' \
                        "${ED}"/etc/nanorc || die
 
                # Since nano-5.0 these are no longer being "enabled" by default

Reply via email to