changeset 632:505b9d08f4f4

editors/nano: upgrade to 4.3
author David Demelier <markand@malikania.fr>
date Tue, 23 Jul 2019 23:12:00 +0200
parents 76aea39af966
children 3be46d69f4e9
files editors/nano/nano.sh editors/nano/nano.sha1
diffstat 2 files changed, 139 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/editors/nano/nano.sh	Tue Jul 23 23:10:00 2019 +0200
+++ b/editors/nano/nano.sh	Tue Jul 23 23:12:00 2019 +0200
@@ -16,13 +16,30 @@
 #
 
 PKGNAME=nano
-PKGVERSION=3.2
+PKGVERSION=4.3
 PKGREVISION=1
 PKGLICENSE="GPLv3"
 PKGSUMMARY="GNU nano editor"
-PKGDOWNLOAD="https://www.nano-editor.org/dist/v3/$PKGNAME-$PKGVERSION.tar.xz"
+PKGDOWNLOAD="https://www.nano-editor.org/dist/v4/$PKGNAME-$PKGVERSION.tar.xz"
 PKGDEPENDS="lib/ncurses"
-PKGOPTIONS="COLOR MULTIBUFFER NANORC NLS"
+PKGOPTIONS="BROWSER
+            COLOR
+            COMMENT
+            EXTRA
+            HELP
+            HISTORIES
+            JUSTIFY
+            LIBMAGIC
+            LINENUMBERS
+            MOUSE
+            MULTIBUFFER
+            NANORC
+            NLS
+            SPELLER
+            TABCOMP
+            UTF8
+            WORDCOMP
+            WRAPPING"
 
 : ${CHOST:=$(uname -m)-linux-musl}
 : ${CBUILD:=$(uname -m)-linux-musl}
@@ -30,16 +47,29 @@
 : ${CFLAGS:=-O2}
 : ${LDFLAGS:=}
 : ${LIBS:=}
+: ${BROWSER:=yes}
 : ${COLOR:=yes}
+: ${COMMENT:=yes}
+: ${EXTRA:=yes}
+: ${HELP:=yes}
+: ${HISTORIES:=yes}
+: ${JUSTIFY:=yes}
+: ${LIBMAGIC:=yes}
+: ${LINENUMBERS:=yes}
+: ${MOUSE:=yes}
 : ${MULTIBUFFER:=yes}
 : ${NANORC:=yes}
 : ${NLS:=yes}
+: ${SPELLER:=yes}
+: ${TABCOMP:=yes}
+: ${UTF8:=yes}
+: ${WORDCOMP:=yes}
+: ${WRAPPING:=yes}
 
-if [ "$NLS" = "yes" ]; then
-	PKGDEPENDS="core/gettext:build $PKGDEPENDS"
-	with_nls="--enable-nls"
+if [ "$BROWSER" = "yes" ]; then
+	with_browser="--enable-browser"
 else
-	with_nls="--disable-nls"
+	with_browser="--disable-browser"
 fi
 
 if [ "$COLOR" = "yes" ]; then
@@ -48,6 +78,55 @@
 	with_color="--disable-color"
 fi
 
+if [ "$COMMENT" = "yes" ]; then
+	with_comment="--enable-comment"
+else
+	with_comment="--disable-comment"
+fi
+
+if [ "$EXTRA" = "yes" ]; then
+	with_extra="--enable-extra"
+else
+	with_extra="--disable-extra"
+fi
+
+if [ "$HELP" = "yes" ]; then
+	with_help="--enable-help"
+else
+	with_help="--disable-help"
+fi
+
+if [ "$HISTORIES" = "yes" ]; then
+	with_histories="--enable-histories"
+else
+	with_histories="--disable-histories"
+fi
+
+if [ "$JUSTIFY" = "yes" ]; then
+	with_justify="--enable-justify"
+else
+	with_justify="--disable-justify"
+fi
+
+if [ "$LIBMAGIC" = "yes" ]; then
+	PKGDEPENDS="compression/zlib core/file $PKGDEPENDS"
+	with_libmagic="--enable-libmagic"
+else
+	with_libmagic="--disable-libmagic"
+fi
+
+if [ "$LINENUMBERS" = "yes" ]; then
+	with_linenumbers="--enable-linenumbers"
+else
+	with_linenumbers="--disable-linenumbers"
+fi
+
+if [ "$MOUSE" = "yes" ]; then
+	with_mouse="--enable-mouse"
+else
+	with_mouse="--disable-mouse"
+fi
+
 if [ "$MULTIBUFFER" = "yes" ]; then
 	with_multibuffer="--enable-multibuffer"
 else
@@ -60,6 +139,43 @@
 	with_nanorc="--disable-nanorc"
 fi
 
+if [ "$NLS" = "yes" ]; then
+	PKGDEPENDS="core/gettext:build $PKGDEPENDS"
+	with_nls="--enable-nls"
+else
+	with_nls="--disable-nls"
+fi
+
+if [ "$SPELLER" = "yes" ]; then
+	with_speller="--enable-speller"
+else
+	with_speller="--disable-speller"
+fi
+
+if [ "$TABCOMP" = "yes" ]; then
+	with_tabcomp="--enable-tabcomp"
+else
+	with_tabcomp="--disable-tabcomp"
+fi
+
+if [ "$UTF8" = "yes" ]; then
+	with_utf8="--enable-utf8"
+else
+	with_utf8="--disable-utf8"
+fi
+
+if [ "$WORDCOMP" = "yes" ]; then
+	with_wordcomp="--enable-wordcomp"
+else
+	with_wordcomp="--disable-wordcomp"
+fi
+
+if [ "$WRAPPING" = "yes" ]; then
+	with_wrapping="--enable-wrapping"
+else
+	with_wrapping="--disable-wrapping"
+fi
+
 build()
 {
 	rm -rf $PKGNAME-$PKGVERSION
@@ -74,11 +190,24 @@
 		--build=$CBUILD \
 		--host=$CHOST \
 		--prefix= \
-		--with-wordbounds \
+		$with_browser \
 		$with_color \
+		$with_comment \
+		$with_extra \
+		$with_help \
+		$with_histories \
+		$with_justify \
+		$with_libmagic \
+		$with_linenumbers \
+		$with_mouse \
 		$with_multibuffer \
 		$with_nanorc \
-		$with_nls
+		$with_nls \
+		$with_speller \
+		$with_tabcomp \
+		$with_utf8 \
+		$with_wordcomp \
+		$with_wrapping
 	make
 	make install DESTDIR=$DESTDIR
 
--- a/editors/nano/nano.sha1	Tue Jul 23 23:10:00 2019 +0200
+++ b/editors/nano/nano.sha1	Tue Jul 23 23:12:00 2019 +0200
@@ -1,1 +1,1 @@
-723128dc1eade35a24a57c1d60d954b5cf308654  nano-3.2.tar.xz
+9f6c23bc2c9b510f19980a96f586a5ab9a2f84c6  nano-4.3.tar.xz