summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2004-09-08 13:38:50 +0000
committermarkd <markd@pkgsrc.org>2004-09-08 13:38:50 +0000
commitff42e5bb82650680a86539370a281fd0a0b70418 (patch)
tree1663a5b31d607b5908c06d2505521eef36adbc7a /textproc
parent4a5b71a31845bd9e6a6fd18738e531fdc36cf343 (diff)
downloadpkgsrc-ff42e5bb82650680a86539370a281fd0a0b70418.tar.gz
Use PATCHFILES rather than trying to do the same itself.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/unroff/Makefile19
1 files changed, 4 insertions, 15 deletions
diff --git a/textproc/unroff/Makefile b/textproc/unroff/Makefile
index 4c9fa46798f..0ac898d0380 100644
--- a/textproc/unroff/Makefile
+++ b/textproc/unroff/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2004/09/08 11:21:50 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2004/09/08 13:38:50 markd Exp $
# FreeBSD Id: Makefile,v 1.6 1997/04/27 00:11:48 asami Exp
#
@@ -7,7 +7,9 @@ PKGNAME= unroff-1.0.2
CATEGORIES= textproc
MASTER_SITES= ${UNROFF_SITE}/dist/ \
${UNROFF_SITE}/contrib/
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PATCH1} ${PATCH2}
+
+PATCHFILES= ${PATCH1} ${PATCH2}
+PATCH_DIST_STRIP= -p1
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www-rn.informatik.uni-bremen.de/software/unroff/
@@ -15,25 +17,12 @@ COMMENT= Programmable troff translator with backend for HTML
DEPENDS= elk>=3.0.2:../../lang/elk
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
DIST_SUBDIR= unroff
UNROFF_SITE= http://www-rn.informatik.uni-bremen.de/software/unroff
PATCH1= me-misc-patch
PATCH2= misc-patch-2
-pre-patch:
- @${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}"
- @(cd ${_DISTDIR}; \
- if [ ${PATCH_DEBUG_TMP} = yes ]; then \
- ${ECHO_MSG} "===> Applying distribution patch ${PATCH1}" ; \
- fi; \
- ${PATCH} ${PATCH_DIST_ARGS} -p0 < ${PATCH1}; \
- if [ ${PATCH_DEBUG_TMP} = yes ]; then \
- ${ECHO_MSG} "===> Applying distribution patch ${PATCH2}" ; \
- fi; \
- ${PATCH} ${PATCH_DIST_ARGS} -p1 < ${PATCH2})
-
post-patch:
@(cd ${WRKSRC} && ${FIND} . -name '*.orig' -print | ${XARGS} ${RM} -f)
@(cd ${WRKSRC} && ${FIND} . -name '*.orig_dist' -print | ${XARGS} ${RM} -f)