aboutsummaryrefslogtreecommitdiffstats
path: root/converters
diff options
context:
space:
mode:
authorhoek <hoek@FreeBSD.org>2002-09-06 21:45:33 +0800
committerhoek <hoek@FreeBSD.org>2002-09-06 21:45:33 +0800
commitcbddd4be00d91ef3941cb459d8c7bd12c274cab0 (patch)
tree23cb5794c9e53ebf640bbfa754170f42cf315d39 /converters
parenteeebe15ba1d6f3d00a74da24dd6d9cd039171f31 (diff)
downloadfreebsd-ports-gnome-cbddd4be00d91ef3941cb459d8c7bd12c274cab0.tar.gz
freebsd-ports-gnome-cbddd4be00d91ef3941cb459d8c7bd12c274cab0.tar.zst
freebsd-ports-gnome-cbddd4be00d91ef3941cb459d8c7bd12c274cab0.zip
USE_REINPLACE rather than a somewhat convoluted perl expression.
Diffstat (limited to 'converters')
-rw-r--r--converters/uulib/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/converters/uulib/Makefile b/converters/uulib/Makefile
index 69fac9e823a0..2e0f9decb2bf 100644
--- a/converters/uulib/Makefile
+++ b/converters/uulib/Makefile
@@ -15,6 +15,7 @@ MAINTAINER= hoek@FreeBSD.org
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
+USE_REINPLACE= yes
MAN3= uulib.3
@@ -39,8 +40,10 @@ do-install:
@/usr/bin/ranlib ${PREFIX}/lib/libuu.a
${INSTALL_DATA} ${WRKSRC}/uulib/uudeview.h ${PREFIX}/include
${INSTALL_MAN} ${FILESDIR}/uulib.3 ${PREFIX}/man/man3
- ${PERL} -pi -e '$$a = '\''${PREFIX}/'\''; $$a =~ s/([^\w\/])/\\$$1/g; \
- s/FUNKYTOKENHERE/$$a/' ${PREFIX}/man/man3/uulib.3
+ ${REINPLACE_CMD} -e 's,FUNKYTOKENHERE,${PREFIX}/,' \
+ ${PREFIX}/man/man3/uulib.3
+ @# If we don't remove the .bak file, then man(1) gets confused
+ @${RM} -f ${PREFIX}/man/man3/uulib.3.bak
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
@${MKDIR} ${PREFIX}/share/doc/uulib