aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-02-25 00:48:35 +0800
committerbapt <bapt@FreeBSD.org>2014-02-25 00:48:35 +0800
commit469caf771c5fd8fb737318cee78ef2f1fe90c894 (patch)
treec01434db8f1dfe1c7e1cdb776c046eb9e755d9d0 /editors
parent65ca262405fc8cf87f952d22baba6de62464a4fa (diff)
downloadfreebsd-ports-gnome-469caf771c5fd8fb737318cee78ef2f1fe90c894.tar.gz
freebsd-ports-gnome-469caf771c5fd8fb737318cee78ef2f1fe90c894.tar.zst
freebsd-ports-gnome-469caf771c5fd8fb737318cee78ef2f1fe90c894.zip
Support stage
Diffstat (limited to 'editors')
-rw-r--r--editors/joe/Makefile27
-rw-r--r--editors/joe/pkg-plist2
2 files changed, 9 insertions, 20 deletions
diff --git a/editors/joe/Makefile b/editors/joe/Makefile
index 2e5b51eed61f..46e4ae69703e 100644
--- a/editors/joe/Makefile
+++ b/editors/joe/Makefile
@@ -14,34 +14,21 @@ COMMENT= Joe's Own Editor
BUILD_DEPENDS= aspell:${PORTSDIR}/textproc/aspell
RUN_DEPENDS= aspell:${PORTSDIR}/textproc/aspell
+OPTIONS_DEFINE= DOCS
+
CONFLICTS= joe-2.*
LICENSE= GPLv1
-USE_GMAKE= yes
-USES= iconv ncurses
+USES= gmake iconv ncurses
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${ICONV_LIB}"
CPPFLAGS+= -I${LOCALBASE}/include
ALL_TARGET= ${PORTNAME}
-MAN1= ${PORTNAME}.1
-
-MANLANG= "" ru
-
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
-.if ! ${PORT_OPTIONS:MDOCS}
-post-patch:
- ${REINPLACE_CMD} 's,install-data-am: install-data_charmapsDATA install-data_docDATA,install-data-am: install-data_charmapsDATA,' \
- ${WRKSRC}/Makefile.in
-.endif
post-install:
-.for file in jmacsrc jpicorc jstarrc rjoerc joerc
-.if !exists(${PREFIX}/etc/${PORTNAME}/${file})
- @${CP} ${PREFIX}/etc/${PORTNAME}/${file} ${PREFIX}/etc/${PORTNAME}/${file}.dist
-.endif
-.endfor
+ for rc in jmacsrc joerc jpicorc jstarrc rjoerc; do \
+ ${MV} ${STAGEDIR}${ETCDIR}/$${rc} ${STAGEDIR}${ETCDIR}/$${rc}.dist ; \
+ done
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/editors/joe/pkg-plist b/editors/joe/pkg-plist
index 6e81f5b4385d..28e7ff8b93ae 100644
--- a/editors/joe/pkg-plist
+++ b/editors/joe/pkg-plist
@@ -77,6 +77,8 @@ bin/termidx
%%DATADIR%%/syntax/vhdl.jsf
%%DATADIR%%/syntax/xml.jsf
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+man/man1/joe.1.gz
+man/ru/man1/joe.1.gz
@dirrmtry man/ru/man1
@dirrmtry man/ru
@dirrmtry %%DATADIR%%/charmaps