From 7f3761a291ae137ca21f893e889265db9d36fa33 Mon Sep 17 00:00:00 2001 From: Volker Stolz <vs@FreeBSD.org> Date: Fri, 30 Apr 2004 15:17:27 +0000 Subject: [PATCH] - PERL -> REINPLACE - Add CONFLICTS with teTeX - Use PKGDBDIR instead of literal - Pet portlint OK'ed by: jmz Approved by: linimon (implicit) --- print/xdvi/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/print/xdvi/Makefile b/print/xdvi/Makefile index 7203a5ebc629..dc9c657e92f2 100644 --- a/print/xdvi/Makefile +++ b/print/xdvi/Makefile @@ -17,8 +17,10 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= jmz@FreeBSD.org COMMENT= A DVI Previewer for the X Window System +CONFLICTS= teTeX-* + DIST_SUBDIR= xdvi # to share distfiles with japanese/xdvi -USE_PERL5_BUILD=yes +USE_REINPLACE= yes USE_IMAKE= yes USE_GMAKE= yes XMKMF= xmkmf @@ -31,16 +33,16 @@ IS_INTERACTIVE= yes MAN1= xdvi.1 post-configure: - @${PERL} -pi -e "s=distclean::=distclean:=g" ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "s=distclean::=distclean:=g" ${WRKSRC}/Makefile pre-install: - @if ${LS} /var/db/pkg/ | grep -qi ^tetex; then\ + @if ${LS} ${PKG_DBDIR} | grep -qi ^tetex; then\ ${ECHO_MSG} "*** WARNING ***";\ ${ECHO_MSG} "This port conflicts with teTeX! If you have already installed";\ ${ECHO_MSG} "teTeX, you may want to backup the xdvi and MakeTeXPK commands.";\ ${ECHO};\ ${ECHO_MSG} "To cancel or suspend installation, press control-C or control-Z.";\ - for i in 1 2 3 4 5; do ${ECHO} -n ; sleep 1; done; fi + for i in 1 2 3 4 5; do ${ECHO} -n ; sleep 1; done; fi do-install: @${MKDIR} ${PREFIX}/man/man1