From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 11 09:50:13 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AE0561065677 for ; Fri, 11 May 2012 09:50:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3525E8FC12 for ; Fri, 11 May 2012 09:50:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4B9oDiR096054 for ; Fri, 11 May 2012 09:50:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4B9oDp8096053; Fri, 11 May 2012 09:50:13 GMT (envelope-from gnats) Resent-Date: Fri, 11 May 2012 09:50:13 GMT Resent-Message-Id: <201205110950.q4B9oDp8096053@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD27C1065674 for ; Fri, 11 May 2012 09:45:41 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from server2.allsitecontrol.com (server2.allsitecontrol.com [63.143.36.210]) by mx1.freebsd.org (Postfix) with ESMTP id 6FEF98FC12 for ; Fri, 11 May 2012 09:45:41 +0000 (UTC) Received: from politkovskaja.torservers.net ([77.247.181.165]:6324 helo=internal.tormail.org) by server2.allsitecontrol.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.77) (envelope-from ) id 1SSmPi-0013Ct-SH for FreeBSD-gnats-submit@freebsd.org; Fri, 11 May 2012 05:45:34 -0400 Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1SSmOo-000Nnm-14 for FreeBSD-gnats-submit@freebsd.org; Fri, 11 May 2012 09:44:37 +0000 Message-Id: <1SSmOo-000Nnm-14@internal.tormail.org> Date: Fri, 11 May 2012 12:44:43 +0300 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/167794: [patch] Mk/bsd.port.mk: fix .zip in PATCHFILES X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2012 09:50:13 -0000 >Number: 167794 >Category: ports >Synopsis: [patch] Mk/bsd.port.mk: fix .zip in PATCHFILES >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 11 09:50:12 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: tested on emulators/mame #v+ Index: Makefile =================================================================== RCS file: /a/.csup/ports/emulators/mame/Makefile,v retrieving revision 1.40 diff -u -p -r1.40 Makefile --- Makefile 11 Mar 2012 01:07:00 -0000 1.40 +++ Makefile 11 May 2012 09:40:36 -0000 @@ -14,8 +14,8 @@ MASTER_SITES= http://mame.mirrors.zippyk http://mamedev.thiswebhost.com/releases/ \ http://mamedev.org/updates/:patchsets DISTNAME= ${PORTNAME}${PORTVERSION:S/.//:C/\.p[0-9]*$//}s -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ - ${UPDATE_PATCHES:C/$/.zip:patchsets/} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} +PATCHFILES= ${UPDATE_PATCHES:C/$/.zip:patchsets/} DIST_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org @@ -43,7 +43,7 @@ MAKE_JOBS_SAFE= yes SUB_FILES= pkg-message -PATCHLEVEL= # none +PATCHLEVEL= 3 .if defined(PATCHLEVEL) && ${PATCHLEVEL} PATCHSUFFIX= .p${PATCHLEVEL} @@ -75,14 +75,6 @@ MAKE_ENV+= PTR64=1 post-extract: @${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKDIR}/mame.zip ${EXTRACT_AFTER_ARGS} @${RM} -f ${WRKDIR}/mame.zip -# Use post-extract target to get in before dos2unix-isation -.if defined(UPDATE_PATCHES) -. for patch in ${UPDATE_PATCHES:S/_/./} - @${ECHO_MSG} -n "===> Applying upstream development patch ${patch}... " - @${PATCH} ${PATCH_ARGS} < ${WRKSRC}/${patch} - @${ECHO_MSG} "[DONE]" -. endfor -.endif post-patch: @${REINPLACE_CMD} -e \ #v- >Description: Properly support .zip PATCHFILES introduced in r1.441. >How-To-Repeat: >Fix: --- zip.diff begins here --- Index: Mk/bsd.port.mk =================================================================== RCS file: /a/.csup/ports/Mk/bsd.port.mk,v retrieving revision 1.708 diff -u -p -r1.708 bsd.port.mk --- Mk/bsd.port.mk 13 Mar 2012 08:14:45 -0000 1.708 +++ Mk/bsd.port.mk 11 May 2012 09:24:03 -0000 @@ -3622,6 +3629,9 @@ do-patch: *.bz2) \ ${BZCAT} $$i | ${PATCH} ${PATCH_DIST_ARGS}; \ ;; \ + *.zip) \ + ${UNZIP_CMD} -p $$i | ${PATCH} ${PATCH_DIST_ARGS}; \ + ;; \ *) \ ${PATCH} ${PATCH_DIST_ARGS} < $$i; \ ;; \ --- zip.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: