Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 2008 13:55:11 GMT
From:      Eitan Adler <EitanAdlerList@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/128060: new port: nano-devel
Message-ID:  <200810131355.m9DDtBgb034747@www.freebsd.org>
Resent-Message-ID: <200810131400.m9DE0Gdv047989@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         128060
>Category:       ports
>Synopsis:       new port: nano-devel
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 13 14:00:16 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Eitan Adler
>Release:        freebsd 7 stable
>Organization:
>Environment:
N/A
>Description:
See attached file.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

PORTNAME=	nano
PORTVERSION=	2.1.6
CATEGORIES=	editors
MASTER_SITES=	http://www.nano-editor.org/dist/v2.1/ \
		http://www.ewtoo.org/~astyanax/nano/dist/v2.1/

MAINTAINER=	EitanAdlerList@gmail.com
COMMENT=	Nano's ANOther editor, an enhanced free Pico clone

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

CONFLICTS= nano*

.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>


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810131355.m9DDtBgb034747>