summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authormarkd <markd>2004-09-08 13:38:50 +0000
committermarkd <markd>2004-09-08 13:38:50 +0000
commit60f713e06147922f4d5f63a70e10b316ea14194d (patch)
tree1663a5b31d607b5908c06d2505521eef36adbc7a /textproc
parent219c3c901433a277f8eb740093bf4e416b019bdb (diff)
downloadpkgsrc-60f713e06147922f4d5f63a70e10b316ea14194d.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)