1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/editors/nano-devel/Makefile
Eitan Adler 3cd186f9db Update to 2.3.3
2014.05.28 - This release contains
                many many improvements to the core system, including
                substantial improvements to the undo/redo code, UTF-8
                handling, the configure script, and display of shortcuts
                on very wide terminals,  New features include the
                ability to read named pipes (--noread), as well as
                linter support (see the nanorc man page for details).  Also
                included are much improved syntax highlighting code, and
                configurations for JSON, texinfo, Go, and a default syntax
                for catch all highlighting. Finally, nano now has the
                ability to set the color of the title bar, status bar, and
                shortcut keys (e.g. "^X") and their descriptions.  Again
                see the nanorc page for details.
2014-05-29 06:09:01 +00:00

63 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= nano
PORTVERSION= 2.3.3
CATEGORIES= editors
MASTER_SITES= http://www.nano-editor.org/dist/v${PORTVERSION:R}/ \
${MASTER_SITE_GNU}
PKGNAMESUFFIX= -devel
MAINTAINER= eadler@FreeBSD.org
COMMENT= Nano's ANOther editor, an enhanced free Pico clone
LICENSE= GPLv3
CONFLICTS= nano-2*
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --docdir=${DOCSDIR}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
MAKE_ARGS+= install_htmlmanDATA=install-htmlmanDATA
.else
MAKE_ARGS+= install_htmlmanDATA=""
.endif
INFO= nano
PORTSCOUT= limitw:1,odd
.include <bsd.port.pre.mk>
CONFIGURE_ARGS+=--enable-utf8
post-build:
cd ${WRKSRC}/doc/man; ${REINPLACE_CMD} \
-e 's:SYSCONFDIR:${PREFIX}/etc:g' \
-e 's:EXAMPLESDIR:${EXAMPLESDIR}:g' \
nano.1 rnano.1 nanorc.5 ${WRKSRC}/doc/texinfo/${INFO:=.info}
${REINPLACE_CMD} -e 's/\\</[[:<:]]/g' -e 's/\\>/[[:>:]]/g' \
${WRKSRC}/doc/syntax/*.nanorc
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/nanorc.sample ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.post.mk>