Tue Mar 18 23:28:20 2014 UTC ()
Add stronger accomodation for broken modes in distfile.

On OS X 10.9, the find command to repair directory modes fails,
apparently because the directory is 600, without even the owner x bit.
Add an extra chmod to fix that before the find.  (No PKGREVISION++,
because the binary package will be unchanged if it built before.)


(gdt)
diff -r1.68 -r1.69 pkgsrc/graphics/xfig/Makefile

cvs diff -r1.68 -r1.69 pkgsrc/graphics/xfig/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/xfig/Makefile 2013/02/16 11:22:34 1.68
+++ pkgsrc/graphics/xfig/Makefile 2014/03/18 23:28:20 1.69
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.68 2013/02/16 11:22:34 wiz Exp $ 1# $NetBSD: Makefile,v 1.69 2014/03/18 23:28:20 gdt Exp $
2 2
3DISTNAME= xfig.3.2.5b.full 3DISTNAME= xfig.3.2.5b.full
4PKGNAME= xfig-3.2.5b 4PKGNAME= xfig-3.2.5b
5PKGREVISION= 10 5PKGREVISION= 10
6CATEGORIES= graphics 6CATEGORIES= graphics
7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mcj/} 7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mcj/}
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://www.xfig.org/ 10HOMEPAGE= http://www.xfig.org/
11COMMENT= CAD-like 2D drawing tool, good for colorful scale drawings & ISOs 11COMMENT= CAD-like 2D drawing tool, good for colorful scale drawings & ISOs
12 12
13DEPENDS+= transfig>=3.2.4:../../print/transfig 13DEPENDS+= transfig>=3.2.4:../../print/transfig
14# if we're using Xaw3d, then we need 1.5E or newer since using that 14# if we're using Xaw3d, then we need 1.5E or newer since using that
@@ -17,26 +17,27 @@ BUILDLINK_API_DEPENDS.Xaw3d+= Xaw3d>=1.5 @@ -17,26 +17,27 @@ BUILDLINK_API_DEPENDS.Xaw3d+= Xaw3d>=1.5
17 17
18WRKSRC= ${WRKDIR}/xfig.3.2.5b 18WRKSRC= ${WRKDIR}/xfig.3.2.5b
19USE_IMAKE= YES 19USE_IMAKE= YES
20XAW_TYPE?= 3d 20XAW_TYPE?= 3d
21 21
22NO_INSTALL_MANPAGES= YES # install.all does install.man 22NO_INSTALL_MANPAGES= YES # install.all does install.man
23INSTALL_TARGET= install install.all 23INSTALL_TARGET= install install.all
24CFLAGS+= -I${X11PREFIX}/include/X11 24CFLAGS+= -I${X11PREFIX}/include/X11
25 25
26.include "../../mk/bsd.prefs.mk" 26.include "../../mk/bsd.prefs.mk"
27 27
28post-extract: 28post-extract:
29 cd ${WRKSRC} && ${RM} -f Doc/*.orig Doc/*/*.orig Doc/*/*.save Doc/*/*/*.orig 29 cd ${WRKSRC} && ${RM} -f Doc/*.orig Doc/*/*.orig Doc/*/*.save Doc/*/*/*.orig
 30 ${CHMOD} 755 ${WRKSRC}/Libraries
30 find ${WRKSRC}/Libraries -type d -exec ${CHMOD} 0755 {} \; 31 find ${WRKSRC}/Libraries -type d -exec ${CHMOD} 0755 {} \;
31 find ${WRKSRC}/Libraries -type f -exec ${CHMOD} 0644 {} \; 32 find ${WRKSRC}/Libraries -type f -exec ${CHMOD} 0644 {} \;
32 find ${WRKSRC}/Doc -type d -exec ${CHMOD} 0755 {} \; 33 find ${WRKSRC}/Doc -type d -exec ${CHMOD} 0755 {} \;
33 find ${WRKSRC}/Doc -type f -exec ${CHMOD} 0644 {} \; 34 find ${WRKSRC}/Doc -type f -exec ${CHMOD} 0644 {} \;
34 35
35SUBST_CLASSES+= xaw 36SUBST_CLASSES+= xaw
36SUBST_STAGE.xaw= post-patch 37SUBST_STAGE.xaw= post-patch
37SUBST_MESSAGE.xaw= Fixing Imakefile 38SUBST_MESSAGE.xaw= Fixing Imakefile
38SUBST_FILES.xaw= Imakefile 39SUBST_FILES.xaw= Imakefile
39.if defined(XAW_TYPE) && ${XAW_TYPE} == "3d" 40.if defined(XAW_TYPE) && ${XAW_TYPE} == "3d"
40# define XAW3D and XAW3D1_5E 41# define XAW3D and XAW3D1_5E
41SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/\1/' 42SUBST_SED.xaw+= -e 's/.*\(\#define.XAW3D\)/\1/'
42.elif defined(XAW_TYPE) && ${XAW_TYPE} == "xpm" 43.elif defined(XAW_TYPE) && ${XAW_TYPE} == "xpm"