wok-backports rev 48

GNU Nano - Latest Version 2.7.1
author Leonardo Laporte <hackdorte@sapo.pt>
date Wed Nov 02 22:00:58 2016 -0200 (2016-11-02)
parents ff18409852bc
children 57b5a3082e51
files nano/description.txt nano/receipt nano/stuff/nano.desktop nano/stuff/nano.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nano/description.txt	Wed Nov 02 22:00:58 2016 -0200
     1.3 @@ -0,0 +1,7 @@
     1.4 +nano - Nano's ANOther editor, an enhanced free Pico clone
     1.5 +
     1.6 +nano is a small, free and friendly editor which aims to replace Pico, the
     1.7 +default editor included in the non-free Pine package. On top of copying Pico's
     1.8 +look and feel, nano also implements some missing (or disabled by default)
     1.9 +features in Pico, such as "search and replace" and "go to line and column
    1.10 +number".
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/nano/receipt	Wed Nov 02 22:00:58 2016 -0200
     2.3 @@ -0,0 +1,52 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="nano"
     2.7 +VERSION="2.7.1"
     2.8 +CATEGORY="utilities"
     2.9 +SHORT_DESC="Nano Text Editor"
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="GPL3"
    2.12 +WEB_SITE="https://nano-editor.org/"
    2.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.14 +WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
    2.15 +TAGS="text-editor"
    2.16 +HOST_ARCH="i486 arm"
    2.17 +
    2.18 +DEPENDS="ncursesw zlib"
    2.19 +SUGGESTED="gpm"
    2.20 +BUILD_DEPENDS="ncursesw-dev zlib-dev groff"
    2.21 +SPLIT="nano-doc"
    2.22 +
    2.23 +# Handle cross compilation
    2.24 +case "$ARCH" in
    2.25 +	arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;;
    2.26 +esac
    2.27 +
    2.28 +# Rules to configure and make the package.
    2.29 +compile_rules()
    2.30 +{
    2.31 +	./configure \
    2.32 +		--sysconfdir=/etc \
    2.33 +		--localstatedir=/var \
    2.34 +		--disable-wrapping-as-root \
    2.35 +		--enable-utf8 \
    2.36 +		$CONFIGURE_ARGS $ARCH_ARGS &&
    2.37 +	make && make install
    2.38 +}
    2.39 +
    2.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.41 +genpkg_rules()
    2.42 +{
    2.43 +	cp -a $install/* $fs
    2.44 +	rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man
    2.45 +
    2.46 +	# Config file.
    2.47 +	mkdir -p $fs/etc
    2.48 +	cp $src/doc/nanorc.sample $fs/etc/nanorc
    2.49 +	cd $fs; patch -p0 < $stuff/nano.patch
    2.50 +
    2.51 +	# Shrink
    2.52 +	for i in $fs/usr/share/nano/*.nanorc; do
    2.53 +		sed -i '/^#/d;/^$/d' $i
    2.54 +	done
    2.55 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/nano/stuff/nano.desktop	Wed Nov 02 22:00:58 2016 -0200
     3.3 @@ -0,0 +1,13 @@
     3.4 +[Desktop Entry]
     3.5 +Type=Application
     3.6 +Name=Nano Text Editor
     3.7 +Name[fr]=Editeur Nano
     3.8 +Name[pt]=Editor de texto Nano
     3.9 +Name[pt_BR]=Editor de texto Nano
    3.10 +Name[ru]=Текстовый редактор Nano
    3.11 +Comment=Advanced text editor
    3.12 +Comment[fr]=Editeur de texte avançé
    3.13 +Comment[ru]=Консольный текстовый редактор
    3.14 +Exec=terminal -e nano
    3.15 +Icon=accessories-text-editor
    3.16 +Categories=ConsoleOnly;Utility;TextEditor;
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/nano/stuff/nano.patch	Wed Nov 02 22:00:58 2016 -0200
     4.3 @@ -0,0 +1,205 @@
     4.4 +--- ./etc/nanorc
     4.5 ++++ ./etc/nanorc
     4.6 +@@ -1,10 +1,6 @@
     4.7 +-## Sample initialization file for nano.
     4.8 ++## /etc/nanorc: system-wide initialization file for nano.
     4.9 ++## ~/.nanorc:   personal config file.
    4.10 + ##
    4.11 +-## Please note that you must have configured nano with --enable-nanorc
    4.12 +-## for this file to be read!  Also note that this file should not be in
    4.13 +-## DOS or Mac format, and that characters specially interpreted by the
    4.14 +-## shell should not be escaped here.
    4.15 +-##
    4.16 + ## To make sure an option is disabled, use "unset <option>".
    4.17 + ##
    4.18 + ## For the options that take parameters, the default value is given.
    4.19 +@@ -58,7 +54,7 @@
    4.20 + # set fill -8
    4.21 + 
    4.22 + ## Remember the used search/replace strings for the next session.
    4.23 +-# set historylog
    4.24 ++set historylog
    4.25 + 
    4.26 + ## Make the justify command kill whitespace at the end of lines.
    4.27 + # set justifytrim
    4.28 +@@ -80,7 +76,7 @@
    4.29 + ## mouse clicks can be used to place the cursor, set the mark (with a
    4.30 + ## double click), and execute shortcuts.  The mouse will work in the X
    4.31 + ## Window System, and on the console when gpm is running.
    4.32 +-# set mouse
    4.33 ++set mouse
    4.34 + 
    4.35 + ## Switch on multiple file buffers (inserting a file will put it into
    4.36 + ## a separate buffer).
    4.37 +@@ -159,7 +155,7 @@
    4.38 + # set suspend
    4.39 + 
    4.40 + ## Use this tab size instead of the default; it must be greater than 0.
    4.41 +-# set tabsize 8
    4.42 ++set tabsize 4
    4.43 + 
    4.44 + ## Convert typed tabs to spaces.
    4.45 + # set tabstospaces
    4.46 +@@ -249,3 +245,151 @@
    4.47 + 
    4.48 + ## Set this if your Backspace key sends Del most of the time.
    4.49 + # bind Del backspace all
    4.50 ++
    4.51 ++
    4.52 ++
    4.53 ++## Assembler
    4.54 ++# include "/usr/share/nano/asm.nanorc"
    4.55 ++
    4.56 ++## Autoconf
    4.57 ++# include "/usr/share/nano/autoconf.nanorc"
    4.58 ++
    4.59 ++## AWK
    4.60 ++# include "/usr/share/nano/awk.nanorc"
    4.61 ++
    4.62 ++## C/C++
    4.63 ++include "/usr/share/nano/c.nanorc"
    4.64 ++
    4.65 ++## Changelogs
    4.66 ++# include "/usr/share/nano/changelog.nanorc"
    4.67 ++
    4.68 ++## CMake
    4.69 ++# include "/usr/share/nano/cmake.nanorc"
    4.70 ++
    4.71 ++## CSS
    4.72 ++include "/usr/share/nano/css.nanorc"
    4.73 ++
    4.74 ++## Apt's sources.list
    4.75 ++# include "/usr/share/nano/debian.nanorc"
    4.76 ++
    4.77 ++## Default
    4.78 ++include "/usr/share/nano/default.nanorc"
    4.79 ++
    4.80 ++## Emacs Lisp
    4.81 ++# include "/usr/share/nano/elisp.nanorc"
    4.82 ++
    4.83 ++## Fortran 90/95
    4.84 ++# include "/usr/share/nano/fortran.nanorc"
    4.85 ++
    4.86 ++## Gentoo ebuilds/eclasses
    4.87 ++# include "/usr/share/nano/gentoo.nanorc"
    4.88 ++
    4.89 ++## Go
    4.90 ++# include "/usr/share/nano/go.nanorc"
    4.91 ++
    4.92 ++## Groff
    4.93 ++# include "/usr/share/nano/groff.nanorc"
    4.94 ++
    4.95 ++## Guile Scheme
    4.96 ++# include "/usr/share/nano/guile.nanorc"
    4.97 ++
    4.98 ++## HTML
    4.99 ++# include "/usr/share/nano/html.nanorc"
   4.100 ++
   4.101 ++## Java
   4.102 ++# include "/usr/share/nano/java.nanorc"
   4.103 ++
   4.104 ++## Javascript
   4.105 ++include "/usr/share/nano/javascript.nanorc"
   4.106 ++
   4.107 ++## JSON
   4.108 ++# include "/usr/share/nano/json.nanorc"
   4.109 ++
   4.110 ++## Lua
   4.111 ++# include "/usr/share/nano/lua.nanorc"
   4.112 ++
   4.113 ++## Makefiles
   4.114 ++include "/usr/share/nano/makefile.nanorc"
   4.115 ++
   4.116 ++## Manpages
   4.117 ++include "/usr/share/nano/man.nanorc"
   4.118 ++
   4.119 ++## Magicpoint presentations
   4.120 ++# include "/usr/share/nano/mgp.nanorc"
   4.121 ++
   4.122 ++## Quoted emails (under e.g. mutt)
   4.123 ++include "/usr/share/nano/mutt.nanorc"
   4.124 ++
   4.125 ++## Nanorc files
   4.126 ++include "/usr/share/nano/nanorc.nanorc"
   4.127 ++
   4.128 ++## nftables
   4.129 ++# include "/usr/share/nano/nftables.nanorc"
   4.130 ++
   4.131 ++## C/C++/Obj-C
   4.132 ++# include "/usr/share/nano/objc.nanorc"
   4.133 ++
   4.134 ++## OCaml
   4.135 ++# include "/usr/share/nano/ocaml.nanorc"
   4.136 ++
   4.137 ++## Patch files
   4.138 ++include "/usr/share/nano/patch.nanorc"
   4.139 ++
   4.140 ++## Perl
   4.141 ++# include "/usr/share/nano/perl.nanorc"
   4.142 ++
   4.143 ++## PHP
   4.144 ++include "/usr/share/nano/php.nanorc"
   4.145 ++
   4.146 ++## PO files
   4.147 ++include "/usr/share/nano/po.nanorc"
   4.148 ++
   4.149 ++## PostgreSQL
   4.150 ++# include "/usr/share/nano/postgresql.nanorc"
   4.151 ++
   4.152 ++## POV-Ray
   4.153 ++# include "/usr/share/nano/pov.nanorc"
   4.154 ++
   4.155 ++## Python
   4.156 ++include "/usr/share/nano/python.nanorc"
   4.157 ++
   4.158 ++## Ruby
   4.159 ++# include "/usr/share/nano/ruby.nanorc"
   4.160 ++
   4.161 ++## Bourne shell scripts
   4.162 ++include "/usr/share/nano/sh.nanorc"
   4.163 ++
   4.164 ++## RPM spec files
   4.165 ++# include "/usr/share/nano/spec.nanorc"
   4.166 ++
   4.167 ++## Tcl files
   4.168 ++# include "/usr/share/nano/tcl.nanorc"
   4.169 ++
   4.170 ++## TeX files
   4.171 ++# include "/usr/share/nano/tex.nanorc"
   4.172 ++
   4.173 ++## Texinfo files
   4.174 ++# include "/usr/share/nano/texinfo.nanorc"
   4.175 ++
   4.176 ++## XML files
   4.177 ++include "/usr/share/nano/xml.nanorc"
   4.178 ++
   4.179 ++
   4.180 ++## Config file - By SliTaz
   4.181 ++syntax "conf" "\.?conf$"
   4.182 ++## Keywords
   4.183 ++icolor brightgreen "="
   4.184 ++## Comments
   4.185 ++icolor cyan "^[[:space:]]*#.*$"
   4.186 ++
   4.187 ++## HTML - With modification for SliTaz.
   4.188 ++syntax "HTML" "\.html$"
   4.189 ++color brightblue start="<" end=">"
   4.190 ++color red "&[^; 	]*;"
   4.191 ++color brightwhite start="<!DOCTYPE" end=">" start="<title>" end="</title>" start="<!--" end="-->"
   4.192 ++color brightcyan start="<meta" end=">" start="<link" end=">"
   4.193 ++color brightyellow "<p>|</p>|<pre>|</pre>|<li>|</li>"
   4.194 ++color yellow "<ul>|</ul>|<hr>|<hr />"
   4.195 ++color brightred "href=|name=|rel=|http-equiv=|content=|title=|type|style"
   4.196 ++color brightgreen "<h1>|</h1>|<h2>|</h2>|<h3>|</h3>|<h4>|</h4>|<h5>|</h5>|<h6>|</h6>"
   4.197 ++
   4.198 +
   4.199 +--- ./usr/share/nano/sh.nanorc
   4.200 ++++ ./usr/share/nano/sh.nanorc
   4.201 +@@ -1,6 +1,6 @@
   4.202 + ## Here is an example for Bourne shell scripts.
   4.203 + 
   4.204 +-syntax "sh" "\.sh$"
   4.205 ++syntax "sh" "\.sh$" "receipt"
   4.206 + header "^#!.*((ba|da|k|pdk)?sh[-0-9_]*|openrc-run|runscript)"
   4.207 + magic "(POSIX|Bourne.*) shell script text"
   4.208 + linter dash -n