diff --git a/editor/nano/actions.py b/editor/nano/actions.py
index d3eeaa7288..949b06aaee 100644
--- a/editor/nano/actions.py
+++ b/editor/nano/actions.py
@@ -3,6 +3,7 @@
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
+from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
@@ -17,15 +18,15 @@ def setup():
def build():
autotools.make()
-
+
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
-
+
+ # Enable colorization by default
+ shelltools.system("""sed -i -e '/^# include /s:# *::' doc/sample.nanorc""")
+
pisitools.insinto("/etc/", "doc/sample.nanorc", "nanorc")
pisitools.dosym("/usr/bin/nano", "/bin/nano")
pisitools.dohtml("doc/*.html")
pisitools.dodoc("ChangeLog*", "README", "doc/sample.nanorc", "AUTHORS", "NEWS", "TODO", "COPYING*", "THANKS")
-
- # Enable colorization by default
- pisitools.dosed("%s/etc/nanorc" % get.installDIR(), '## include "/path/to/syntax_file.nanorc"', ' include "/usr/share/nano/*.nanorc"')
diff --git a/editor/nano/pspec.xml b/editor/nano/pspec.xml
index 944cb3255d..e70b7e27b3 100644
--- a/editor/nano/pspec.xml
+++ b/editor/nano/pspec.xml
@@ -12,7 +12,7 @@
app:console
GNU GPL'd Pico clone with more functionality
Nano is a small, free and friendly editor which aims to replace Pico, the default editor included in the non-free Pine package. Rather than just copying Pico's look and feel, nano also implements some missing (or disabled by default) features in Pico, such as "search and replace" and "go to line number".
- https://www.nano-editor.org/dist/v4/nano-4.8.tar.xz
+ https://www.nano-editor.org/dist/v4/nano-4.9.3.tar.xz
groff
ncurses-devel
@@ -39,6 +39,13 @@
+
+ 2020-07-08
+ 4.9.3
+ Version bump.
+ Mustafa Cinasal
+ muscnsl@gmail.com
+
2020-02-09
4.8