wok rev 17862

Up: nano (2.4.0)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 25 16:00:27 2015 +0200 (2015-03-25)
parents c654a2bb95d0
children b96d0801117a
files nano/receipt nano/stuff/nano.patch nano/stuff/nanorc
line diff
     1.1 --- a/nano/receipt	Wed Mar 25 12:50:26 2015 +0100
     1.2 +++ b/nano/receipt	Wed Mar 25 16:00:27 2015 +0200
     1.3 @@ -1,23 +1,20 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="nano"
     1.7 -VERSION="2.3.6"
     1.8 +VERSION="2.4.0"
     1.9  CATEGORY="utilities"
    1.10  SHORT_DESC="GNU Nano Text Editor"
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  LICENSE="GPL3"
    1.13  WEB_SITE="http://www.nano-editor.org/"
    1.14  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 -WGET_URL="${WEB_SITE}dist/v2.3/$TARBALL"
    1.16 +WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
    1.17  TAGS="text-editor"
    1.18  HOST_ARCH="i486 arm"
    1.19  
    1.20 -TRACKER="http://sourcewell.berlios.de/appbyid.php?id=1733"
    1.21 -VERSION_NOTE="latest stable"
    1.22 -
    1.23 -DEPENDS="ncursesw"
    1.24 +DEPENDS="ncursesw zlib"
    1.25  SUGGESTED="gpm"
    1.26 -BUILD_DEPENDS="ncursesw-dev"
    1.27 +BUILD_DEPENDS="ncursesw-dev zlib-dev groff"
    1.28  
    1.29  # Rules to configure and make the package.
    1.30  compile_rules()
    1.31 @@ -38,6 +35,8 @@
    1.32  		$fs/usr/share
    1.33  	cp -a $install/usr/bin $fs/usr
    1.34  	cp -a $install/usr/share/nano $fs/usr/share
    1.35 +
    1.36  	# Config file.
    1.37 -	cp $stuff/nanorc $fs/etc
    1.38 +	cp $src/doc/nanorc.sample $fs/etc/nanorc
    1.39 +	cd $fs; patch -p0 < $stuff/nano.patch
    1.40  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/nano/stuff/nano.patch	Wed Mar 25 16:00:27 2015 +0200
     2.3 @@ -0,0 +1,190 @@
     2.4 +--- ./etc/nanorc
     2.5 ++++ ./etc/nanorc
     2.6 +@@ -1,10 +1,6 @@
     2.7 +-## Sample initialization file for GNU nano.
     2.8 ++## /etc/nanorc: system-wide initialization file for GNU nano
     2.9 ++## ~/.nanorc for personal config file.
    2.10 + ##
    2.11 +-## Please note that you must have configured nano with --enable-nanorc
    2.12 +-## for this file to be read!  Also note that this file should not be in
    2.13 +-## DOS or Mac format, and that characters specially interpreted by the
    2.14 +-## shell should not be escaped here.
    2.15 +-##
    2.16 + ## To make sure an option is disabled, use "unset <option>".
    2.17 + ##
    2.18 + ## For the options that take parameters, the default value is given.
    2.19 +@@ -57,7 +53,7 @@
    2.20 + # set fill -8
    2.21 + 
    2.22 + ## Enable ~/.nano_history for saving and reading search/replace strings.
    2.23 +-# set historylog
    2.24 ++set historylog
    2.25 + 
    2.26 + ## Enable vim-style lock-files.  This is just to let a vim user know you
    2.27 + ## are editing a file [s]he is trying to edit and vice versa. There are
    2.28 +@@ -76,7 +72,7 @@
    2.29 + ## mouse clicks can be used to place the cursor, set the mark (with a
    2.30 + ## double click), and execute shortcuts.  The mouse will work in the X
    2.31 + ## Window System, and on the console when gpm is running.
    2.32 +-# set mouse
    2.33 ++set mouse
    2.34 + 
    2.35 + ## Switch on multiple file buffers (inserting a file will put it into
    2.36 + ## a separate buffer).
    2.37 +@@ -157,7 +153,7 @@
    2.38 + # set suspend
    2.39 + 
    2.40 + ## Use this tab size instead of the default; it must be greater than 0.
    2.41 +-# set tabsize 8
    2.42 ++set tabsize 4
    2.43 + 
    2.44 + ## Convert typed tabs to spaces.
    2.45 + # set tabstospaces
    2.46 +@@ -245,3 +241,136 @@
    2.47 + 
    2.48 + ## Set this if your backspace key sends Del most of the time.
    2.49 + # bind Del backspace all
    2.50 ++
    2.51 ++
    2.52 ++
    2.53 ++## Assembler
    2.54 ++# include "/usr/share/nano/asm.nanorc"
    2.55 ++
    2.56 ++## AWK
    2.57 ++# include "/usr/share/nano/awk.nanorc"
    2.58 ++
    2.59 ++## C/C++
    2.60 ++include "/usr/share/nano/c.nanorc"
    2.61 ++
    2.62 ++## Changelogs
    2.63 ++# include "/usr/share/nano/changelog.nanorc"
    2.64 ++
    2.65 ++## CMake
    2.66 ++# include "/usr/share/nano/cmake.nanorc"
    2.67 ++
    2.68 ++## CSS
    2.69 ++include "/usr/share/nano/css.nanorc"
    2.70 ++
    2.71 ++## Apt's sources.list
    2.72 ++# include "/usr/share/nano/debian.nanorc"
    2.73 ++
    2.74 ++## Default
    2.75 ++include "/usr/share/nano/default.nanorc"
    2.76 ++
    2.77 ++## Fortran 90/95
    2.78 ++# include "/usr/share/nano/fortran.nanorc"
    2.79 ++
    2.80 ++## Gentoo ebuilds/eclasses
    2.81 ++# include "/usr/share/nano/gentoo.nanorc"
    2.82 ++
    2.83 ++## Go
    2.84 ++# include "/usr/share/nano/go.nanorc"
    2.85 ++
    2.86 ++## Groff
    2.87 ++# include "/usr/share/nano/groff.nanorc"
    2.88 ++
    2.89 ++## HTML
    2.90 ++# include "/usr/share/nano/html.nanorc"
    2.91 ++
    2.92 ++## Java
    2.93 ++# include "/usr/share/nano/java.nanorc"
    2.94 ++
    2.95 ++## Javascript
    2.96 ++include "/usr/share/nano/javascript.nanorc"
    2.97 ++
    2.98 ++## JSON
    2.99 ++# include "/usr/share/nano/json.nanorc"
   2.100 ++
   2.101 ++## Lua
   2.102 ++# include "/usr/share/nano/lua.nanorc"
   2.103 ++
   2.104 ++## Makefiles
   2.105 ++include "/usr/share/nano/makefile.nanorc"
   2.106 ++
   2.107 ++## Manpages
   2.108 ++# include "/usr/share/nano/man.nanorc"
   2.109 ++
   2.110 ++## Magicpoint presentations
   2.111 ++# include "/usr/share/nano/mgp.nanorc"
   2.112 ++
   2.113 ++## Quoted emails (under e.g. mutt)
   2.114 ++include "/usr/share/nano/mutt.nanorc"
   2.115 ++
   2.116 ++## Nanorc files
   2.117 ++include "/usr/share/nano/nanorc.nanorc"
   2.118 ++
   2.119 ++## C/C++/Obj-C
   2.120 ++# include "/usr/share/nano/objc.nanorc"
   2.121 ++
   2.122 ++## OCaml
   2.123 ++# include "/usr/share/nano/ocaml.nanorc"
   2.124 ++
   2.125 ++## Patch files
   2.126 ++include "/usr/share/nano/patch.nanorc"
   2.127 ++
   2.128 ++## Perl
   2.129 ++# include "/usr/share/nano/perl.nanorc"
   2.130 ++
   2.131 ++## PHP
   2.132 ++include "/usr/share/nano/php.nanorc"
   2.133 ++
   2.134 ++## PO files
   2.135 ++include "/usr/share/nano/po.nanorc"
   2.136 ++
   2.137 ++## POV-Ray
   2.138 ++# include "/usr/share/nano/pov.nanorc"
   2.139 ++
   2.140 ++## Python
   2.141 ++include "/usr/share/nano/python.nanorc"
   2.142 ++
   2.143 ++## Ruby
   2.144 ++# include "/usr/share/nano/ruby.nanorc"
   2.145 ++
   2.146 ++## Bourne shell scripts
   2.147 ++include "/usr/share/nano/sh.nanorc"
   2.148 ++
   2.149 ++## RPM spec files
   2.150 ++# include "/usr/share/nano/spec.nanorc"
   2.151 ++
   2.152 ++## Tcl files
   2.153 ++# include "/usr/share/nano/tcl.nanorc"
   2.154 ++
   2.155 ++## TeX files
   2.156 ++# include "/usr/share/nano/tex.nanorc"
   2.157 ++
   2.158 ++## Texinfo files
   2.159 ++# include "/usr/share/nano/texinfo.nanorc"
   2.160 ++
   2.161 ++## XML files
   2.162 ++include "/usr/share/nano/xml.nanorc"
   2.163 ++
   2.164 ++
   2.165 ++## Config file - By SliTaz
   2.166 ++syntax "conf" "\.?conf$"
   2.167 ++## Keywords
   2.168 ++icolor brightgreen "="
   2.169 ++## Comments
   2.170 ++icolor cyan "^[[:space:]]*#.*$"
   2.171 ++
   2.172 ++## HTML - With modification for SliTaz.
   2.173 ++syntax "HTML" "\.html$"
   2.174 ++color brightblue start="<" end=">"
   2.175 ++color red "&[^; 	]*;"
   2.176 ++color brightwhite start="<!DOCTYPE" end=">" start="<title>" end="</title>" start="<!--" end="-->"
   2.177 ++color brightcyan start="<meta" end=">" start="<link" end=">"
   2.178 ++color brightyellow "<p>|</p>|<pre>|</pre>|<li>|</li>"
   2.179 ++color yellow "<ul>|</ul>|<hr>|<hr />"
   2.180 ++color brightred "href=|name=|rel=|http-equiv=|content=|title=|type|style"
   2.181 ++color brightgreen "<h1>|</h1>|<h2>|</h2>|<h3>|</h3>|<h4>|</h4>|<h5>|</h5>|<h6>|</h6>"
   2.182 ++
   2.183 +
   2.184 +--- ./usr/share/nano/sh.nanorc
   2.185 ++++ ./usr/share/nano/sh.nanorc
   2.186 +@@ -1,6 +1,6 @@
   2.187 + ## Here is an example for Bourne shell scripts.
   2.188 + 
   2.189 +-syntax "sh" "\.sh$"
   2.190 ++syntax "sh" "\.sh$" "receipt"
   2.191 + header "^#!.*((ba|da|k|pdk)?sh[-0-9_]*|openrc-run|runscript)"
   2.192 + magic "(POSIX|Bourne.*) shell script text"
   2.193 + 
     3.1 --- a/nano/stuff/nanorc	Wed Mar 25 12:50:26 2015 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,273 +0,0 @@
     3.4 -## /etc/nanorc: system-wide initialization file for GNU nano
     3.5 -## Well know text editor on SliTaz GNU/linux. ~/.nanorc for 
     3.6 -## personal config file.
     3.7 -##
     3.8 -## To make sure a value is not enabled, use "unset <option>"
     3.9 -##
    3.10 -## For the options that take parameters, the default value is given.
    3.11 -## Other options are unset by default.
    3.12 -##
    3.13 -## Quotes inside string parameters don't have to be escaped with
    3.14 -## backslashes.  The last double quote in the string will be treated as
    3.15 -## its end.  For example, for the "brackets" option, ""')>]}" will match
    3.16 -## ", ', ), >, ], and }.
    3.17 -
    3.18 -## Use auto-indentation.
    3.19 -# set autoindent
    3.20 -
    3.21 -## Backup files to filename~.
    3.22 -# set backup
    3.23 -
    3.24 -## The directory to put unique backup files in.
    3.25 -# set backupdir ""
    3.26 -
    3.27 -## Do backwards searches by default.
    3.28 -# set backwards
    3.29 -
    3.30 -## Use bold text instead of reverse video text.
    3.31 -# set boldtext
    3.32 -
    3.33 -## The characters treated as closing brackets when justifying
    3.34 -## paragraphs.  They cannot contain blank characters.  Only closing
    3.35 -## punctuation, optionally followed by closing brackets, can end
    3.36 -## sentences.
    3.37 -##
    3.38 -# set brackets ""')>]}"
    3.39 -
    3.40 -## Do case sensitive searches by default.
    3.41 -# set casesensitive
    3.42 -
    3.43 -## Constantly display the cursor position in the statusbar.  Note that
    3.44 -## this overrides "quickblank".
    3.45 -# set const
    3.46 -
    3.47 -## Use cut to end of line by default.
    3.48 -# set cut
    3.49 -
    3.50 -## Set the line length for wrapping text and justifying paragraphs.
    3.51 -## If fill is 0 or less, the line length will be the screen width less
    3.52 -## this number.
    3.53 -##
    3.54 -# set fill -8
    3.55 -
    3.56 -## Enable ~/.nano_history for saving and reading search/replace strings.
    3.57 -set historylog
    3.58 -
    3.59 -## The opening and closing brackets that can be found by bracket
    3.60 -## searches.  They cannot contain blank characters.  The former set must
    3.61 -## come before the latter set, and both must be in the same order.
    3.62 -##
    3.63 -# set matchbrackets "(<[{)>]}"
    3.64 -
    3.65 -## Use the blank line below the titlebar as extra editing space.
    3.66 -# set morespace
    3.67 -
    3.68 -## Enable mouse support, if available for your system.  When enabled,
    3.69 -## mouse clicks can be used to place the cursor, set the mark (with a
    3.70 -## double click), and execute shortcuts.  The mouse will work in the X
    3.71 -## Window System, and on the console when gpm is running.
    3.72 -##
    3.73 -set mouse
    3.74 -
    3.75 -## Allow multiple file buffers (inserting a file will put it into a
    3.76 -## separate buffer).  You must have configured with --enable-multibuffer
    3.77 -## for this to work.
    3.78 -##
    3.79 -# set multibuffer
    3.80 -
    3.81 -## Don't convert files from DOS/Mac format.
    3.82 -# set noconvert
    3.83 -
    3.84 -## Don't follow symlinks when writing files.
    3.85 -# set nofollow
    3.86 -
    3.87 -## Don't display the helpful shortcut lists at the bottom of the screen.
    3.88 -# set nohelp
    3.89 -
    3.90 -## Don't add newlines to the ends of files.
    3.91 -# set nonewlines
    3.92 -
    3.93 -## Don't wrap text at all.
    3.94 -# set nowrap
    3.95 -
    3.96 -## Set operating directory.  nano will not read or write files outside
    3.97 -## this directory and its subdirectories.  Also, the current directory
    3.98 -## is changed to here, so any files are inserted from this dir.  A blank
    3.99 -## string means the operating directory feature is turned off.
   3.100 -##
   3.101 -# set operatingdir ""
   3.102 -
   3.103 -## Preserve the XON and XOFF keys (^Q and ^S).
   3.104 -# set preserve
   3.105 -
   3.106 -## The characters treated as closing punctuation when justifying
   3.107 -## paragraphs.  They cannot contain blank characters.  Only closing
   3.108 -## punctuation, optionally followed by closing brackets, can end
   3.109 -## sentences.
   3.110 -##
   3.111 -# set punct "!.?"
   3.112 -
   3.113 -## Do quick statusbar blanking.  Statusbar messages will disappear after
   3.114 -## 1 keystroke instead of 26.  Note that "const" overrides this.
   3.115 -##
   3.116 -# set quickblank
   3.117 -
   3.118 -## The email-quote string, used to justify email-quoted paragraphs.
   3.119 -## This is an extended regular expression if your system supports them,
   3.120 -## otherwise a literal string.  Default:
   3.121 -# set quotestr "^([ 	]*[#:>\|}])+"
   3.122 -## if you have extended regular expression support, otherwise:
   3.123 -# set quotestr "> "
   3.124 -
   3.125 -## Fix Backspace/Delete confusion problem.
   3.126 -# set rebinddelete
   3.127 -
   3.128 -## Fix numeric keypad key confusion problem.
   3.129 -# set rebindkeypad
   3.130 -
   3.131 -## Do extended regular expression searches by default.
   3.132 -# set regexp
   3.133 -
   3.134 -## Make the Home key smarter.  When Home is pressed anywhere but at the
   3.135 -## very beginning of non-whitespace characters on a line, the cursor
   3.136 -## will jump to that beginning (either forwards or backwards).  If the
   3.137 -## cursor is already at that position, it will jump to the true
   3.138 -## beginning of the line.
   3.139 -# set smarthome
   3.140 -
   3.141 -## Use smooth scrolling as the default.
   3.142 -# set smooth
   3.143 -
   3.144 -## Use this spelling checker instead of the internal one.  This option
   3.145 -## does not properly have a default value.
   3.146 -##
   3.147 -# set speller "aspell -x -c"
   3.148 -
   3.149 -## Allow nano to be suspended.
   3.150 -# set suspend
   3.151 -
   3.152 -## Use this tab size instead of the default; it must be greater than 0.
   3.153 -# set tabsize 8
   3.154 -
   3.155 -## Convert typed tabs to spaces.
   3.156 -# set tabstospaces
   3.157 -
   3.158 -## Save automatically on exit, don't prompt.
   3.159 -# set tempfile
   3.160 -
   3.161 -## Disallow file modification.  Why would you want this in an rcfile? ;)
   3.162 -# set view
   3.163 -
   3.164 -## The two single-column characters used to display the first characters
   3.165 -## of tabs and spaces.  187 in ISO 8859-1 (0000BB in Unicode) and 183 in
   3.166 -## ISO-8859-1 (0000B7 in Unicode) seem to be good values for these.
   3.167 -# set whitespace "  "
   3.168 -
   3.169 -## Detect word boundaries more accurately by treating punctuation
   3.170 -## characters as parts of words.
   3.171 -# set wordbounds
   3.172 -
   3.173 -
   3.174 -## Color setup
   3.175 -##
   3.176 -## Format:
   3.177 -##
   3.178 -## syntax "short description" ["filename regex" ...]
   3.179 -##
   3.180 -## The "none" syntax is reserved; specifying it on the command line is
   3.181 -## the same as not having a syntax at all.  The "default" syntax is
   3.182 -## special: it takes no filename regexes, and applies to files that
   3.183 -## don't match any other syntax's filename regexes.
   3.184 -##
   3.185 -## color foreground,background "regex" ["regex"...]
   3.186 -## or
   3.187 -## icolor foreground,background "regex" ["regex"...]
   3.188 -##
   3.189 -## "color" will do case sensitive matches, while "icolor" will do case
   3.190 -## insensitive matches.
   3.191 -##
   3.192 -## Valid colors: white, black, red, blue, green, yellow, magenta, cyan.
   3.193 -## For foreground colors, you may use the prefix "bright" to get a
   3.194 -## stronger highlight.
   3.195 -##
   3.196 -## To use multi-line regexes, use the start="regex" end="regex"
   3.197 -## [start="regex" end="regex"...] format.
   3.198 -##
   3.199 -## If your system supports transparency, not specifying a background
   3.200 -## color will use a transparent color.  If you don't want this, be sure
   3.201 -## to set the background color to black or white.
   3.202 -##
   3.203 -## If you wish, you may put your syntaxes in separate files.  You can
   3.204 -## make use of such files (which can only include "syntax", "color", and
   3.205 -## "icolor" commands) as follows:
   3.206 -##
   3.207 -## include "/path/to/syntax_file.nanorc"
   3.208 -##
   3.209 -## Unless otherwise noted, the name of the syntax file (without the
   3.210 -## ".nanorc" extension) should be the same as the "short description"
   3.211 -## name inside that file.  These names are kept fairly short to make
   3.212 -## them easier to remember and faster to type using nano's -Y option.
   3.213 -##
   3.214 -## All regexes should be extended regular expressions.
   3.215 -
   3.216 -
   3.217 -## Nanorc files
   3.218 -include "/usr/share/nano/nanorc.nanorc"
   3.219 -
   3.220 -## C/C++
   3.221 -include "/usr/share/nano/c.nanorc"
   3.222 -
   3.223 -## Config file - By SliTaz
   3.224 -syntax "conf" "\.?conf$"
   3.225 -## Keywords
   3.226 -icolor brightgreen "="
   3.227 -## Comments
   3.228 -icolor cyan "^[[:space:]]*#.*$"
   3.229 -
   3.230 -## HTML - With modification for SliTaz.
   3.231 -#include "/usr/share/nano/html.nanorc"
   3.232 -syntax "HTML" "\.html$"
   3.233 -color brightblue start="<" end=">"
   3.234 -color red "&[^; 	]*;"
   3.235 -color brightwhite start="<!DOCTYPE" end=">" start="<title>" end="</title>" start="<!--" end="-->"  
   3.236 -color brightcyan start="<meta" end=">" start="<link" end=">"
   3.237 -color brightyellow "<p>|</p>|<pre>|</pre>|<li>|</li>"
   3.238 -color yellow "<ul>|</ul>|<hr>|<hr />"
   3.239 -color brightred "href=|name=|rel=|http-equiv=|content=|title=|type|style"
   3.240 -color brightgreen "<h1>|</h1>|<h2>|</h2>|<h3>|</h3>|<h4>|</h4>|<h5>|</h5>|<h6>|</h6>"
   3.241 -
   3.242 -## TeX
   3.243 -include "/usr/share/nano/tex.nanorc"
   3.244 -
   3.245 -## Quoted emails (under e.g. mutt)
   3.246 -include "/usr/share/nano/mutt.nanorc"
   3.247 -
   3.248 -## Patch files
   3.249 -include "/usr/share/nano/patch.nanorc"
   3.250 -
   3.251 -## Manpages
   3.252 -# include "/usr/share/nano/man.nanorc"
   3.253 -
   3.254 -## Groff
   3.255 -# include "/usr/share/nano/groff.nanorc"
   3.256 -
   3.257 -## Perl
   3.258 -# include "/usr/share/nano/perl.nanorc"
   3.259 -
   3.260 -## Python
   3.261 -# include "/usr/share/nano/python.nanorc"
   3.262 -
   3.263 -## Ruby
   3.264 -# include "/usr/share/nano/ruby.nanorc"
   3.265 -
   3.266 -## Java
   3.267 -# include "/usr/share/nano/java.nanorc"
   3.268 -
   3.269 -## Assembler
   3.270 -# include "/usr/share/nano/asm.nanorc"
   3.271 -
   3.272 -## Bourne shell scripts
   3.273 -include "/usr/share/nano/sh.nanorc"
   3.274 -
   3.275 -## POV-Ray
   3.276 -# include "/usr/share/nano/pov.nanorc"