From 60f713e06147922f4d5f63a70e10b316ea14194d Mon Sep 17 00:00:00 2001 From: markd Date: Wed, 8 Sep 2004 13:38:50 +0000 Subject: Use PATCHFILES rather than trying to do the same itself. --- textproc/unroff/Makefile | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'textproc') 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) -- cgit v1.2.3