blob: c906b04e27bca864cc41f422650f982e762937a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Created by: Philippe Lefebvre <nemesis@balistik.net>
PORTNAME= nano
DISTVERSION= 5.5
CATEGORIES= editors
MASTER_SITES= https://www.nano-editor.org/dist/v${DISTVERSION:R:R}/ GNU
MAINTAINER= danilo@FreeBSD.org
COMMENT= Nano's ANOther editor, an enhanced free Pico clone
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= charsetfix ncurses pkgconfig tar:xz
CONFLICTS= nano-devel-2*
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --docdir=${DOCSDIR} --enable-utf8
MAKE_ARGS+= install_htmlmanDATA=install-htmlmanDATA
OPTIONS_DEFINE= DOCS EXAMPLES NLS
OPTIONS_SUB= yes
NLS_USES= gettext localbase
NLS_CONFIGURE_ENABLE= nls
INFO= nano
PORTSCOUT= limitw:1,even
post-patch:
${REINPLACE_CMD} -e 's/^groff.*/false/' ${WRKSRC}/configure
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/sample.nanorc ${STAGEDIR}${EXAMPLESDIR}
post-install-DOCS-on:
.for doc in nano.1.html rnano.1.html nanorc.5.html
${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|