summaryrefslogtreecommitdiff
path: root/package/nano
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/nano
Initial import
Diffstat (limited to 'package/nano')
-rw-r--r--package/nano/Config.in18
-rw-r--r--package/nano/Makefile48
-rw-r--r--package/nano/files/nanorc1
-rw-r--r--package/nano/ipkg/nano.conffiles1
-rw-r--r--package/nano/ipkg/nano.control5
5 files changed, 73 insertions, 0 deletions
diff --git a/package/nano/Config.in b/package/nano/Config.in
new file mode 100644
index 000000000..7b164fa22
--- /dev/null
+++ b/package/nano/Config.in
@@ -0,0 +1,18 @@
+config ADK_PACKAGE_NANO
+ prompt "nano.............................. An enhanced clone of the Pico text editor"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBNCURSES
+ help
+ GNU nano (Nano's ANOther editor, or Not ANOther editor) is an enhanced clone of the Pico text editor.
+
+ http://www.nano-editor.org/
+
+config ADK_PACKAGE_NANO_TINY
+ prompt " only compile a minimal nano (using --enable-tiny)"
+ bool
+ default y
+ depends ADK_PACKAGE_NANO
+ help
+ If not selected, nano will support justify, line wrapping, tab completion and multiple open file buffers.
+
diff --git a/package/nano/Makefile b/package/nano/Makefile
new file mode 100644
index 000000000..7c9d9a9dc
--- /dev/null
+++ b/package/nano/Makefile
@@ -0,0 +1,48 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= nano
+PKG_VERSION:= 2.0.6
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 619107f0fc3c4383d668cef15aa3ca32
+MASTER_SITES:= http://www.nano-editor.org/dist/v2.0/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,NANO,nano,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ENV+= ac_cv_header_regex_h=no
+CONFIGURE_ARGS+= --enable-nanorc \
+ --disable-glibtest \
+ --disable-utf8 \
+ --without-slang
+ifeq (${ADK_PACKAGE_NANO_TINY},y)
+CONFIGURE_ARGS+= --enable-tiny
+else
+CONFIGURE_ARGS+= --disable-browser \
+ --disable-help \
+ --disable-mouse \
+ --disable-nls \
+ --disable-speller \
+ --disable-operatingdir \
+ --enable-multibuffer
+ifneq (${ADK_UNICODE},)
+CONFIGURE_ARGS+= --enable-utf8
+endif
+endif
+
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_NANO}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/nano ${IDIR_NANO}/usr/bin/
+ ${INSTALL_DIR} ${IDIR_NANO}/etc
+ $(INSTALL_DATA) ./files/nanorc ${IDIR_NANO}/etc/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/nano/files/nanorc b/package/nano/files/nanorc
new file mode 100644
index 000000000..759fdf88b
--- /dev/null
+++ b/package/nano/files/nanorc
@@ -0,0 +1 @@
+set suspend
diff --git a/package/nano/ipkg/nano.conffiles b/package/nano/ipkg/nano.conffiles
new file mode 100644
index 000000000..ecc14ac9c
--- /dev/null
+++ b/package/nano/ipkg/nano.conffiles
@@ -0,0 +1 @@
+/etc/nanorc
diff --git a/package/nano/ipkg/nano.control b/package/nano/ipkg/nano.control
new file mode 100644
index 000000000..e68daef6b
--- /dev/null
+++ b/package/nano/ipkg/nano.control
@@ -0,0 +1,5 @@
+Package: nano
+Priority: optional
+Section: admin
+Depends: libncurses
+Description: An enhanced clone of the Pico text editor