aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editors/ne/Makefile35
-rw-r--r--editors/ne/distinfo6
-rw-r--r--editors/ne/pkg-plist4
3 files changed, 23 insertions, 22 deletions
diff --git a/editors/ne/Makefile b/editors/ne/Makefile
index 2aaaf3f7c0ae..59595050fb37 100644
--- a/editors/ne/Makefile
+++ b/editors/ne/Makefile
@@ -6,39 +6,44 @@
#
PORTNAME= ne
-PORTVERSION= 1.43
+PORTVERSION= 2.0.3
CATEGORIES= editors
-MASTER_SITES= http://ne.dsi.unimi.it/ \
- ${MASTER_SITE_GENTOO}
-MASTER_SITE_SUBDIR= distfiles
+MASTER_SITES= http://ne.dsi.unimi.it/
MAINTAINER= ports@FreeBSD.org
COMMENT= Nice and powerfull editor
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+
+USE_PERL5_BUILD=yes
USE_GMAKE= yes
-USE_PERL5= yes
MAKEFILE= makefile
-ALL_TARGET= ne
-MAKE_ARGS= CFLAGS="${CFLAGS} -DNOWCHAR" CC="${CC}" \
- GLOBALDIR="${DATADIR}"
-
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
+ALL_TARGET= ${PORTNAME}
+MAKE_ARGS= CC="${CC}" \
+ CFLAGS="${CFLAGS}" \
+ NE_GLOBAL_DIR="${DATADIR}"
-MAN1= ne.1
+MAN1= ne.1
PORTDOCS= ne.txt
+PLIST_FILES= bin/ne %%DATADIR%%/default.keys %%DATADIR%%/default.menus
+PLIST_DIRS= %%DATADIR%%
+
+.if !defined(WITH_DEBUG)
+CFLAGS+= -DNODEBUG
+.endif
post-patch:
- @${PERL5} -pi -e 's|tmpnam\(|mkstemp\(|g' ${WRKSRC}/actions.c
+ @${REINPLACE_CMD} -e 's|tmpnam(|mkstemp(|g' ${WRKSRC}/actions.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ne ${PREFIX}/bin
- ${MKDIR} ${DATADIR}
+ ${INSTALL_MAN} ${WRKSRC}/../doc/ne.1 ${MANPREFIX}/man/man1
+ @${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/../doc/default.keys ${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/../doc/default.menus ${DATADIR}/
- ${INSTALL_MAN} ${WRKSRC}/../doc/ne.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC:S/src//}doc/ne.txt ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../doc/ne.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/editors/ne/distinfo b/editors/ne/distinfo
index 9f4f7bf0ddad..5759de57e766 100644
--- a/editors/ne/distinfo
+++ b/editors/ne/distinfo
@@ -1,3 +1,3 @@
-MD5 (ne-1.43.tar.gz) = bbc65c4981b29a6f2cb0652aa3d5976a
-SHA256 (ne-1.43.tar.gz) = 2d8c2ad14e5554497d6880a21102201e610da40ee806a8e3e35ea076566a8057
-SIZE (ne-1.43.tar.gz) = 1135016
+MD5 (ne-2.0.3.tar.gz) = 16ed5c974adb8255a693f8a3b6e91071
+SHA256 (ne-2.0.3.tar.gz) = 7ba91b956f9308128236b9e3ded4307e061ad0558f9270eae9845c82951ab34e
+SIZE (ne-2.0.3.tar.gz) = 1102424
diff --git a/editors/ne/pkg-plist b/editors/ne/pkg-plist
deleted file mode 100644
index 20a525216e11..000000000000
--- a/editors/ne/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-bin/ne
-%%DATADIR%%/default.keys
-%%DATADIR%%/default.menus
-@dirrm share/ne