2 # Copyright (C) 2007-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=@GNU
/nano
16 PKG_HASH
:=86f3442768bd2873cec693f83cdf80b4b444ad3cc14760b74361474fc87a4526
18 PKG_LICENSE
:=GPL-3.0
-or-later
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_MAINTAINER
:=Hannu Nyman
<hannu.nyman@iki.fi
>
21 PKG_CPE_ID
:=cpe
:/a
:gnu
:nano
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/nano
/Default
32 URL
:=https
://www.nano-editor.org
/
37 $(call Package
/nano
/Default
)
38 TITLE
:=GNU nano text editor
(minimal features
)
43 define Package
/nano-plus
44 $(call Package
/nano
/Default
)
45 TITLE
:=GNU nano text editor
(more features
, Unicode
)
49 define Package
/nano-full
50 $(call Package
/nano
/Default
)
51 TITLE
:=GNU nano text editor
(all features
, Unicode
)
55 define Package
/nano
/description
56 Nano is a small and simple text editor for use on the terminal.
58 Nano started
as an enhanced clone of the Pico text editor.
59 Nowadays Nano wants to be a generally useful editor with sensible
60 defaults
(linewise scrolling
, no automatic line breaking
).
62 Nano is an official GNU package.
65 define Package
/nano-plus
/description
66 nano-plus
- Additional features enabled
, larger size than default nano.
67 (multibuffer
, Unicode
/UTF-8
, help
, justify
, nanorc
, some key bindings
)
69 $(call Package
/nano
/description
)
72 define Package
/nano-full
/description
73 nano-full
- all features
, including syntax highlighting
(also uci
),
74 multibuffer
, Unicode
/UTF-8
, nanorc
, some key bindings.
75 (libmagic-based file type detection is disabled
)
77 Example
/etc
/nanorc is included. nanorc documentation at
78 https
://www.nano-editor.org
/dist/latest
/nanorc
.5.html
80 $(call Package
/nano
/description
)
83 ifeq ($(BUILD_VARIANT
),full
)
84 # full variant with almost all features included
89 else ifeq ($(BUILD_VARIANT
),plus
)
90 # plus variant with some features included
93 --enable-linenumbers \
94 --enable-multibuffer \
101 --disable-histories \
105 --disable-operatingdir \
110 # default tiny variant
113 --enable-linenumbers \
119 ac_cv_header_regex_h
=no \
121 define Package
/nano-plus
/conffiles
125 define Package
/nano-full
/conffiles
129 define Package
/nano
/install
130 $(INSTALL_DIR
) $(1)/usr
/bin
131 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
134 define Package
/nano-plus
/install
135 $(call Package
/nano
/install,$1)
138 define Package
/nano-full
/install
139 $(call Package
/nano
/install,$1)
140 $(INSTALL_DIR
) $(1)/etc
$(1)/usr
/share
/nano
141 $(INSTALL_DATA
) .
/files
/nanorc
$(1)/etc
/nanorc
142 $(INSTALL_DATA
) .
/files
/uci.nanorc
$(1)/usr
/share
/nano
143 $(INSTALL_DATA
) .
/files
/ucode.nanorc
$(1)/usr
/share
/nano
144 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/nano
/* $(1)/usr
/share
/nano
147 $(eval
$(call BuildPackage
,nano
))
148 $(eval
$(call BuildPackage
,nano-plus
))
149 $(eval
$(call BuildPackage
,nano-full
))