# HG changeset patch
# User Leonardo Laporte
# Date 1478131258 7200
# Node ID bd458315338bd6514624641bb1ba7e324ba60594
# Parent ff18409852bc5e8b99531f826c7b25eb0b462695
GNU Nano - Latest Version 2.7.1
diff -r ff18409852bc -r bd458315338b nano/description.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nano/description.txt Wed Nov 02 22:00:58 2016 -0200
@@ -0,0 +1,7 @@
+nano - Nano's ANOther editor, an enhanced free Pico clone
+
+nano is a small, free and friendly editor which aims to replace Pico, the
+default editor included in the non-free Pine package. On top of 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 and column
+number".
diff -r ff18409852bc -r bd458315338b nano/receipt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nano/receipt Wed Nov 02 22:00:58 2016 -0200
@@ -0,0 +1,52 @@
+# SliTaz package receipt.
+
+PACKAGE="nano"
+VERSION="2.7.1"
+CATEGORY="utilities"
+SHORT_DESC="Nano Text Editor"
+MAINTAINER="pankso@slitaz.org"
+LICENSE="GPL3"
+WEB_SITE="https://nano-editor.org/"
+TARBALL="$PACKAGE-$VERSION.tar.gz"
+WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
+TAGS="text-editor"
+HOST_ARCH="i486 arm"
+
+DEPENDS="ncursesw zlib"
+SUGGESTED="gpm"
+BUILD_DEPENDS="ncursesw-dev zlib-dev groff"
+SPLIT="nano-doc"
+
+# Handle cross compilation
+case "$ARCH" in
+ arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;;
+esac
+
+# Rules to configure and make the package.
+compile_rules()
+{
+ ./configure \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-wrapping-as-root \
+ --enable-utf8 \
+ $CONFIGURE_ARGS $ARCH_ARGS &&
+ make && make install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+ cp -a $install/* $fs
+ rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man
+
+ # Config file.
+ mkdir -p $fs/etc
+ cp $src/doc/nanorc.sample $fs/etc/nanorc
+ cd $fs; patch -p0 < $stuff/nano.patch
+
+ # Shrink
+ for i in $fs/usr/share/nano/*.nanorc; do
+ sed -i '/^#/d;/^$/d' $i
+ done
+}
diff -r ff18409852bc -r bd458315338b nano/stuff/nano.desktop
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nano/stuff/nano.desktop Wed Nov 02 22:00:58 2016 -0200
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Type=Application
+Name=Nano Text Editor
+Name[fr]=Editeur Nano
+Name[pt]=Editor de texto Nano
+Name[pt_BR]=Editor de texto Nano
+Name[ru]=Текстовый редактор Nano
+Comment=Advanced text editor
+Comment[fr]=Editeur de texte avançé
+Comment[ru]=Консольный текстовый редактор
+Exec=terminal -e nano
+Icon=accessories-text-editor
+Categories=ConsoleOnly;Utility;TextEditor;
diff -r ff18409852bc -r bd458315338b nano/stuff/nano.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nano/stuff/nano.patch Wed Nov 02 22:00:58 2016 -0200
@@ -0,0 +1,205 @@
+--- ./etc/nanorc
++++ ./etc/nanorc
+@@ -1,10 +1,6 @@
+-## Sample initialization file for nano.
++## /etc/nanorc: system-wide initialization file for nano.
++## ~/.nanorc: personal config file.
+ ##
+-## Please note that you must have configured nano with --enable-nanorc
+-## for this file to be read! Also note that this file should not be in
+-## DOS or Mac format, and that characters specially interpreted by the
+-## shell should not be escaped here.
+-##
+ ## To make sure an option is disabled, use "unset