@ -25,15 +25,27 @@ PKG_BUILD_PARALLEL:=1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / n a n o
d e f i n e P a c k a g e / n a n o / D e f a u l t
SUBMENU:= Editors
SUBMENU:= Editors
SECTION:= utils
SECTION:= utils
CATEGORY:= Utilities
CATEGORY:= Utilities
TITLE:= GNU nano - enhanced clone of the Pico text editor
URL:= https://www.nano-editor.org/
URL:= https://www.nano-editor.org/
DEPENDS:= +libncurses
DEPENDS:= +libncurses
e n d e f
e n d e f
d e f i n e P a c k a g e / n a n o
$( call Package/nano/Default)
TITLE:= GNU nano text editor ( minimal features)
VARIANT:= tiny
DEFAULT_VARIANT:= 1
e n d e f
d e f i n e P a c k a g e / n a n o - p l u s
$( call Package/nano/Default)
TITLE:= GNU nano text editor ( more features, Unicode)
VARIANT:= plus
e n d e f
d e f i n e P a c k a g e / n a n o / d e s c r i p t i o n
d e f i n e P a c k a g e / n a n o / d e s c r i p t i o n
Nano is a small and simple text editor for use on the terminal.
Nano is a small and simple text editor for use on the terminal.
@ -44,11 +56,41 @@ define Package/nano/description
Nano is an official GNU package.
Nano is an official GNU package.
e n d e f
e n d e f
CONFIGURE_ARGS += \
d e f i n e P a c k a g e / n a n o - p l u s / d e s c r i p t i o n
nano-plus - Additional features enabled, larger size than default nano.
( multibuffer, Unicode/UTF-8, help, justify, nanorc, some key bindings)
$( call Package/nano/description)
e n d e f
i f e q ( $( BUILD_VARIANT ) , p l u s )
# plus variant with more features included
CONFIGURE_ARGS += \
--enable-help \
--enable-justify \
--enable-linenumbers \
--enable-multibuffer \
--enable-nanorc \
--enable-utf8 \
--disable-browser \
--disable-color \
--disable-comment \
--disable-extra \
--disable-histories \
--disable-libmagic \
--disable-mouse \
--disable-operatingdir \
--disable-speller \
--disable-tabcomp \
--disable-wordcomp
e l s e
# default tiny variant
CONFIGURE_ARGS += \
--enable-tiny \
--enable-tiny \
--disable-utf8 \
--enable-linenumbers \
--disable-color \
--disable-color \
--enable-linenumbers
--disable-utf8
e n d i f
CONFIGURE_VARS += \
CONFIGURE_VARS += \
ac_cv_header_regex_h = no \
ac_cv_header_regex_h = no \
@ -58,5 +100,10 @@ define Package/nano/install
$( CP) $( PKG_INSTALL_DIR) /usr/bin/$( PKG_NAME) $( 1) /usr/bin/
$( CP) $( PKG_INSTALL_DIR) /usr/bin/$( PKG_NAME) $( 1) /usr/bin/
e n d e f
e n d e f
d e f i n e P a c k a g e / n a n o - p l u s / i n s t a l l
$( call Package/nano/install,$1 )
e n d e f
$( eval $ ( call BuildPackage ,nano ) )
$( eval $ ( call BuildPackage ,nano ) )
$( eval $ ( call BuildPackage ,nano -plus ) )