Support stage

This commit is contained in:
Baptiste Daroussin 2014-02-24 16:48:35 +00:00
parent 93ae2ba80a
commit c9631c15ad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345879
2 changed files with 9 additions and 20 deletions

View file

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

View file

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