# HG changeset patch # User Hans-G?nter Theisgen # Date 1556894008 -3600 # Node ID cb1c44991845e93e217acaab349656d3f70906b1 # Parent 4e6f31d3d2047b74e54457d4822b87f6e2713f9d updated nano and nano-doc (2.6.1 -> 4.2) diff -r 4e6f31d3d204 -r cb1c44991845 nano-doc/receipt --- a/nano-doc/receipt Fri May 03 13:39:55 2019 +0100 +++ b/nano-doc/receipt Fri May 03 15:33:28 2019 +0100 @@ -1,9 +1,9 @@ # SliTaz package receipt. PACKAGE="nano-doc" -VERSION="2.6.1" +VERSION="4.2" CATEGORY="doc" -SHORT_DESC="Nano Text Editor, documentation and man pages" +SHORT_DESC="Nano Text Editor, documentation and man pages." MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL3" WEB_SITE="https://nano-editor.org/" @@ -13,5 +13,7 @@ genpkg_rules() { mkdir -p $fs/usr/share - cp -a $install/usr/share/doc $install/usr/share/man $fs/usr/share + + cp -a $install/usr/share/doc $fs/usr/share + cp -a $install/usr/share/man $fs/usr/share } diff -r 4e6f31d3d204 -r cb1c44991845 nano/receipt --- a/nano/receipt Fri May 03 13:39:55 2019 +0100 +++ b/nano/receipt Fri May 03 15:33:28 2019 +0100 @@ -1,22 +1,24 @@ # SliTaz package receipt. PACKAGE="nano" -VERSION="2.6.1" +VERSION="4.2" CATEGORY="utilities" -SHORT_DESC="Nano Text Editor" +TAGS="text-editor" +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" + +SUGGESTED="gpm" +DEPENDS="ncursesw zlib" +BUILD_DEPENDS="groff ncursesw-dev zlib-dev" +SPLIT="nano-doc" + 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" ;; @@ -25,13 +27,14 @@ # Rules to configure and make the package. compile_rules() { - ./configure \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --disable-wrapping-as-root \ - --enable-utf8 \ +# --disable-wrapping-as-root no longer supported in 4.2 + ./configure \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-utf8 \ $CONFIGURE_ARGS $ARCH_ARGS && - make && make install + make && + make install } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -40,10 +43,15 @@ cp -a $install/* $fs rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man - # Config file. + # Configuration file. mkdir -p $fs/etc cp $src/doc/nanorc.sample $fs/etc/nanorc - cd $fs; patch -p0 < $stuff/nano.patch + + cd $fs + patch --input=$stuff/patches/nanorc.patch \ + etc/nanorc + patch --input=$stuff/patches/sh.nanorc.patch \ + usr/share/nano/sh.nanorc # Shrink for i in $fs/usr/share/nano/*.nanorc; do diff -r 4e6f31d3d204 -r cb1c44991845 nano/stuff/patches/nanorc.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nano/stuff/patches/nanorc.patch Fri May 03 15:33:28 2019 +0100 @@ -0,0 +1,191 @@ +--- etc/nanorc.orig 2019-05-03 14:19:11.780800756 +0100 ++++ etc/nanorc 2019-05-03 14:32:51.179322558 +0100 +@@ -1,7 +1,6 @@ + ## Sample initialization file for GNU nano. +-## +-## This file should not be in DOS or Mac format, and characters +-## specially interpreted by the shell should not be escaped here. ++## /etc/nanorc: system-wide initialization file for nano. ++## ~/.nanorc: personal config file. + ## + ## To make sure an option is disabled, use "unset