mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
This is the development version of nano:
nano is a small, free and friendly editor which aims to replace Pico, the default editor included in the non-free Pine package. Rather than just copying Pico's look and feel, nano also implements some missing (or disabled by default) features in Pico, such as "search and replace" and "goto line number". PR: ports/128060 Submitted by: Eitan Adler <EitanAdlerList@gmail.com>
This commit is contained in:
parent
b676b90211
commit
13b6426a5d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=222953
@ -106,6 +106,7 @@
|
||||
SUBDIR += mousepad
|
||||
SUBDIR += mp
|
||||
SUBDIR += nano
|
||||
SUBDIR += nano-devel
|
||||
SUBDIR += ne
|
||||
SUBDIR += nedit
|
||||
SUBDIR += nvi-devel
|
||||
|
59
editors/nano-devel/Makefile
Normal file
59
editors/nano-devel/Makefile
Normal file
@ -0,0 +1,59 @@
|
||||
# New ports collection makefile for: nano-devel
|
||||
# Date created: 13 November 2008
|
||||
# Whom: Eitan Adler <EitanAdlerList@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= nano-devel
|
||||
PORTVERSION= 2.1.7
|
||||
CATEGORIES= editors
|
||||
MASTER_SITES= http://www.nano-editor.org/dist/v2.1/ \
|
||||
http://www.ewtoo.org/~astyanax/nano/dist/v2.1/
|
||||
DISTNAME= nano-${PORTVERSION}
|
||||
|
||||
MAINTAINER= EitanAdlerList@gmail.com
|
||||
COMMENT= Nano's ANOther editor, an enhanced free Pico clone
|
||||
|
||||
CONFLICTS= nano-2*
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --enable-all --enable-rc
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
.if !defined(WITHOUT_NLS)
|
||||
USE_GETTEXT= yes
|
||||
PLIST_SUB+= NLS=""
|
||||
MANLANG= "" fr
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-nls
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
INFO= nano
|
||||
MAN1= nano.1 rnano.1
|
||||
MAN5= nanorc.5
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# requires wide character curses
|
||||
.if (${OSVERSION} < 602107) || (${OSVERSION} >= 700000 && ${OSVERSION} < 700033)
|
||||
CONFIGURE_ARGS+=--disable-utf8
|
||||
.else
|
||||
CONFIGURE_ARGS+=--enable-utf8
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
cd ${WRKSRC}/doc/man; ${REINPLACE_CMD} \
|
||||
-e 's:SYSCONFDIR:${PREFIX}/etc:g' \
|
||||
-e 's:EXAMPLESDIR:${EXAMPLESDIR}:g' \
|
||||
${MAN1} ${MAN5} ${WRKSRC}/doc/texinfo/${INFO:=.info}
|
||||
${REINPLACE_CMD} -e 's/\\</[[:<:]]/g' -e 's/\\>/[[:>:]]/g' \
|
||||
${WRKSRC}/doc/syntax/*.nanorc
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/nanorc.sample ${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
editors/nano-devel/distinfo
Normal file
3
editors/nano-devel/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (nano-2.1.7.tar.gz) = 4eb4fcd015e3c09e3a119250286bc67f
|
||||
SHA256 (nano-2.1.7.tar.gz) = b1d2cd011af513c072e2a76eeaadbc4200c575bb8113cbeac57d0680e8a6d81f
|
||||
SIZE (nano-2.1.7.tar.gz) = 1468710
|
20
editors/nano-devel/files/patch-doc_man_Makefile.in
Normal file
20
editors/nano-devel/files/patch-doc_man_Makefile.in
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- doc/man/Makefile.in.orig
|
||||
+++ doc/man/Makefile.in
|
||||
@@ -592,11 +592,11 @@
|
||||
|
||||
|
||||
nano.1.html: nano.1
|
||||
- groff -t -mandoc -Thtml < $< > $@
|
||||
+ groff -t -mandoc -Thtml < $? > $@
|
||||
nanorc.5.html: nanorc.5
|
||||
- groff -t -mandoc -Thtml < $< > $@
|
||||
+ groff -t -mandoc -Thtml < $? > $@
|
||||
rnano.1.html: rnano.1
|
||||
- groff -t -mandoc -Thtml < $< > $@
|
||||
+ groff -t -mandoc -Thtml < $? > $@
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
20
editors/nano-devel/files/patch-doc_man_fr_Makefile.in
Normal file
20
editors/nano-devel/files/patch-doc_man_fr_Makefile.in
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
$FreeBSD: /tmp/pcvs/ports/editors/nano-devel/files/Attic/patch-doc_man_fr_Makefile.in,v 1.1 2008-11-16 23:59:19 wxs Exp $
|
||||
|
||||
--- doc/man/fr/Makefile.in.orig
|
||||
+++ doc/man/fr/Makefile.in
|
||||
@@ -434,11 +434,11 @@
|
||||
|
||||
|
||||
nano.1.html: nano.1
|
||||
- groff -t -mandoc -Thtml < $< > $@
|
||||
+ groff -t -mandoc -Thtml < $? > $@
|
||||
nanorc.5.html: nanorc.5
|
||||
- groff -t -mandoc -Thtml < $< > $@
|
||||
+ groff -t -mandoc -Thtml < $? > $@
|
||||
rnano.1.html: rnano.1
|
||||
- groff -t -mandoc -Thtml < $< > $@
|
||||
+ groff -t -mandoc -Thtml < $? > $@
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
14
editors/nano-devel/files/patch-doc_man_nano.1
Normal file
14
editors/nano-devel/files/patch-doc_man_nano.1
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
$FreeBSD: /tmp/pcvs/ports/editors/nano-devel/files/patch-doc_man_nano.1,v 1.1 2008-11-16 23:59:19 wxs Exp $
|
||||
|
||||
--- doc/man/nano.1.orig
|
||||
+++ doc/man/nano.1
|
||||
@@ -224,8 +224,6 @@
|
||||
.PD 0
|
||||
.TP
|
||||
\fBnanorc\fP(5)
|
||||
-.PP
|
||||
-\fI/usr/share/doc/nano/\fP (or equivalent on your system)
|
||||
|
||||
.SH AUTHOR
|
||||
Chris Allegretta <chrisa@asty.org>, et al (see \fIAUTHORS\fP and
|
15
editors/nano-devel/files/patch-doc_man_nanorc.5
Normal file
15
editors/nano-devel/files/patch-doc_man_nanorc.5
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
$FreeBSD: /tmp/pcvs/ports/editors/nano-devel/files/patch-doc_man_nanorc.5,v 1.1 2008-11-16 23:59:19 wxs Exp $
|
||||
|
||||
--- doc/man/nanorc.5.orig
|
||||
+++ doc/man/nanorc.5
|
||||
@@ -250,8 +250,7 @@
|
||||
.TP
|
||||
\fBnano\fP(1)
|
||||
.PP
|
||||
-\fI/usr/share/doc/nano/examples/nanorc.sample\fP (or equivalent on your
|
||||
-system)
|
||||
+\fIEXAMPLESDIR/nanorc.sample\fP
|
||||
.SH AUTHOR
|
||||
Chris Allegretta <chrisa@asty.org>, et al (see \fIAUTHORS\fP and
|
||||
\fITHANKS\fP for details). This manual page was originally written by
|
9
editors/nano-devel/pkg-descr
Normal file
9
editors/nano-devel/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
This is the development version of nano:
|
||||
|
||||
nano is a small, free and friendly editor which aims to replace
|
||||
Pico, the default editor included in the non-free Pine package.
|
||||
Rather than just copying Pico's look and feel, nano also implements
|
||||
some missing (or disabled by default) features in Pico, such as
|
||||
"search and replace" and "goto line number".
|
||||
|
||||
WWW: http://www.nano-editor.org/
|
66
editors/nano-devel/pkg-plist
Normal file
66
editors/nano-devel/pkg-plist
Normal file
@ -0,0 +1,66 @@
|
||||
@comment $FreeBSD: /tmp/pcvs/ports/editors/nano-devel/pkg-plist,v 1.1 2008-11-16 23:59:19 wxs Exp $
|
||||
bin/nano
|
||||
bin/rnano
|
||||
%%NLS%%share/locale/bg/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/ca/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/cs/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/da/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/de/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/es/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/eu/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/fi/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/fr/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/ga/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/gl/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/hu/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/id/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/it/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/ms/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/nb/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/nl/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/nn/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/pl/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/pt_BR/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/ro/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/ru/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/rw/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/sr/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/sv/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/tr/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/uk/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/vi/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/zh_CN/LC_MESSAGES/nano.mo
|
||||
%%NLS%%share/locale/zh_TW/LC_MESSAGES/nano.mo
|
||||
%%EXAMPLESDIR%%/nanorc.sample
|
||||
share/nano/awk.nanorc
|
||||
share/nano/fortran.nanorc
|
||||
share/nano/xml.nanorc
|
||||
share/nano/php.nanorc
|
||||
share/nano/tcl.nanorc
|
||||
share/nano/ocaml.nanorc
|
||||
share/nano/debian.nanorc
|
||||
share/nano/css.nanorc
|
||||
share/nano/objc.nanorc
|
||||
share/nano/gentoo.nanorc
|
||||
share/nano/asm.nanorc
|
||||
share/nano/c.nanorc
|
||||
share/nano/groff.nanorc
|
||||
share/nano/html.nanorc
|
||||
share/nano/java.nanorc
|
||||
share/nano/man.nanorc
|
||||
share/nano/mutt.nanorc
|
||||
share/nano/nanorc.nanorc
|
||||
share/nano/patch.nanorc
|
||||
share/nano/perl.nanorc
|
||||
share/nano/pov.nanorc
|
||||
share/nano/python.nanorc
|
||||
share/nano/ruby.nanorc
|
||||
share/nano/sh.nanorc
|
||||
share/nano/tex.nanorc
|
||||
@dirrm share/nano
|
||||
@dirrm %%EXAMPLESDIR%%
|
||||
%%NLS%%@dirrmtry share/locale/rw/LC_MESSAGES
|
||||
%%NLS%%@dirrmtry share/locale/rw
|
||||
%%NLS%%@dirrmtry man/fr/man5
|
||||
%%NLS%%@dirrmtry man/fr/man1
|
||||
%%NLS%%@dirrmtry man/fr
|
Loading…
Reference in New Issue
Block a user