@ -46,6 +46,12 @@ define Package/nano-plus
VARIANT:= plus
VARIANT:= plus
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 - f u l l
$( call Package/nano/Default)
TITLE:= GNU nano text editor ( all features, Unicode)
VARIANT:= full
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.
@ -63,8 +69,25 @@ define Package/nano-plus/description
$( call Package/nano/description)
$( call Package/nano/description)
e n d e f
e n d e f
i f e q ( $( BUILD_VARIANT ) , p l u s )
# plus variant with more features included
d e f i n e P a c k a g e / n a n o - f u l l / d e s c r i p t i o n
nano-full - all features, including syntax highlighting ( also uci) ,
multibuffer, Unicode/UTF-8, nanorc, some key bindings.
( libmagic-based file type detection is disabled)
Example /etc/nanorc is included. nanorc documentation at
https://www.nano-editor.org/dist/latest/nanorc.5.html
$( call Package/nano/description)
e n d e f
i f e q ( $( BUILD_VARIANT ) , f u l l )
# full variant with almost all features included
CONFIGURE_ARGS += \
--disable-extra \
--disable-libmagic \
--enable-utf8
e l s e i f e q ( $( BUILD_VARIANT ) , p l u s )
# plus variant with some features included
CONFIGURE_ARGS += \
CONFIGURE_ARGS += \
--enable-help \
--enable-help \
--enable-justify \
--enable-justify \
@ -95,6 +118,14 @@ endif
CONFIGURE_VARS += \
CONFIGURE_VARS += \
ac_cv_header_regex_h = no \
ac_cv_header_regex_h = no \
d e f i n e P a c k a g e / n a n o - p l u s / c o n f f i l e s
/ e t c / n a n o r c
e n d e f
d e f i n e P a c k a g e / n a n o - f u l l / c o n f f i l e s
/ e t c / n a n o r c
e n d e f
d e f i n e P a c k a g e / n a n o / i n s t a l l
d e f i n e P a c k a g e / n a n o / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/bin
$( CP) $( PKG_INSTALL_DIR) /usr/bin/$( PKG_NAME) $( 1) /usr/bin/
$( CP) $( PKG_INSTALL_DIR) /usr/bin/$( PKG_NAME) $( 1) /usr/bin/
@ -104,6 +135,15 @@ define Package/nano-plus/install
$( call Package/nano/install,$1 )
$( call Package/nano/install,$1 )
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 - f u l l / i n s t a l l
$( call Package/nano/install,$1 )
$( INSTALL_DIR) $( 1) /etc $( 1) /usr/share/nano
$( INSTALL_CONF) ./files/nanorc $( 1) /etc/nanorc
$( INSTALL_DATA) ./files/uci.nanorc $( 1) /usr/share/nano
$( CP) $( PKG_INSTALL_DIR) /usr/share/nano/* $( 1) /usr/share/nano
e n d e f
$( eval $ ( call BuildPackage ,nano ) )
$( eval $ ( call BuildPackage ,nano ) )
$( eval $ ( call BuildPackage ,nano -plus ) )
$( eval $ ( call BuildPackage ,nano -plus ) )
$( eval $ ( call BuildPackage ,nano -full ) )