aboutsummaryrefslogtreecommitdiff
path: root/editors/nano
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2007-04-09 16:10:14 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2007-04-09 16:10:14 +0000
commiteea81c262a9110dc6d5738eddfcfe0a7543800bf (patch)
tree22f21f45e3ad2188cf52f66371577b9194fc988c /editors/nano
parent43b341a6f7a6a2e45eaf2f19c67beb2a9e460239 (diff)
downloadports-eea81c262a9110dc6d5738eddfcfe0a7543800bf.tar.gz
ports-eea81c262a9110dc6d5738eddfcfe0a7543800bf.zip
Notes
Diffstat (limited to 'editors/nano')
-rw-r--r--editors/nano/Makefile14
-rw-r--r--editors/nano/distinfo6
2 files changed, 14 insertions, 6 deletions
diff --git a/editors/nano/Makefile b/editors/nano/Makefile
index cdacae2d538e..65f1ead0ec05 100644
--- a/editors/nano/Makefile
+++ b/editors/nano/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= nano
-PORTVERSION= 2.0.3
+PORTVERSION= 2.0.4
CATEGORIES= editors
MASTER_SITES= http://www.nano-editor.org/dist/v2.0/ \
http://www.ewtoo.org/~astyanax/nano/dist/v2.0/
@@ -17,7 +17,6 @@ COMMENT= Nano's ANOther editor, an enhanced free Pico clone
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --infodir=${PREFIX}/${INFO_PATH} --mandir=${PREFIX}/man \
--enable-all
-CONFIGURE_ARGS+=--disable-utf8 # requires wide character curses
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@@ -35,6 +34,15 @@ MAN1= nano.1 rnano.1
MAN5= nanorc.5
MANLANG= "" fr
+.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' \
@@ -47,4 +55,4 @@ post-install:
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/nanorc.sample ${EXAMPLESDIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/editors/nano/distinfo b/editors/nano/distinfo
index 9d05349e9621..c23cc6ddc4dc 100644
--- a/editors/nano/distinfo
+++ b/editors/nano/distinfo
@@ -1,3 +1,3 @@
-MD5 (nano-2.0.3.tar.gz) = b8e2c1450b36d21f9a82509da3e4d9b1
-SHA256 (nano-2.0.3.tar.gz) = 8c29569d0e1eb29cbd3580313b9796c4e6fd0830071ec885021f22be635f5297
-SIZE (nano-2.0.3.tar.gz) = 1313437
+MD5 (nano-2.0.4.tar.gz) = 8118d8521e121a37d05f5647d2784fa8
+SHA256 (nano-2.0.4.tar.gz) = cf6e52b4e061c4cbf848f2247fe0aa76b795e958e621fb96da8b0c5a2c4ac001
+SIZE (nano-2.0.4.tar.gz) = 1313903