pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/unroff Use PATCHFILES rather than trying to d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9d40ec949f81
branches:  trunk
changeset: 480404:9d40ec949f81
user:      markd <markd%pkgsrc.org@localhost>
date:      Wed Sep 08 13:38:50 2004 +0000

description:
Use PATCHFILES rather than trying to do the same itself.

diffstat:

 textproc/unroff/Makefile |  19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)

diffs (46 lines):

diff -r b84f383cf49f -r 9d40ec949f81 textproc/unroff/Makefile
--- a/textproc/unroff/Makefile  Wed Sep 08 13:33:04 2004 +0000
+++ b/textproc/unroff/Makefile  Wed Sep 08 13:38:50 2004 +0000
@@ -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 @@
 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@localhost
 HOMEPAGE=              http://www-rn.informatik.uni-bremen.de/software/unroff/
@@ -15,25 +17,12 @@
 
 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)



Home | Main Index | Thread Index | Old Index