1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- PERL -> REINPLACE

- Add CONFLICTS with teTeX
- Use PKGDBDIR instead of literal
- Pet portlint

OK'ed by:	jmz
Approved by:	linimon (implicit)
This commit is contained in:
Volker Stolz 2004-04-30 15:17:27 +00:00
parent a0bdea9d39
commit 7f3761a291
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108029

View File

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