From be0bd1ce4776c696c963a06004cffa0700a273d6 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 12 Nov 2011 00:37:40 +0000 Subject: Fix post-install rule to not (sometimes) leave behind mode 744 directories. --- lang/moscow_ml/Makefile | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'lang/moscow_ml') diff --git a/lang/moscow_ml/Makefile b/lang/moscow_ml/Makefile index a631bd4c9ce..aa394a22db0 100644 --- a/lang/moscow_ml/Makefile +++ b/lang/moscow_ml/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2011/11/08 12:41:30 dholland Exp $ +# $NetBSD: Makefile,v 1.30 2011/11/12 00:37:40 dholland Exp $ DISTNAME= mos201src PKGNAME= moscow_ml-2.01 @@ -13,15 +13,34 @@ COMMENT= Moscow ML, a version of Standard ML PKG_DESTDIR_SUPPORT= user-destdir WRKSRC= ${WRKDIR}/mosml/src -USE_TOOLS+= perl +USE_TOOLS+= perl pax BUILD_TARGET= clean world MAKE_JOBS_SAFE= no +INSTALLATION_DIRS+= share/examples/moscow_ml/calc +INSTALLATION_DIRS+= share/examples/moscow_ml/cgi +INSTALLATION_DIRS+= share/examples/moscow_ml/lexyacc +INSTALLATION_DIRS+= share/examples/moscow_ml/lexyacc/cl +INSTALLATION_DIRS+= share/examples/moscow_ml/manual +INSTALLATION_DIRS+= share/examples/moscow_ml/mls +INSTALLATION_DIRS+= share/examples/moscow_ml/modules +INSTALLATION_DIRS+= share/examples/moscow_ml/parsercomb +INSTALLATION_DIRS+= share/examples/moscow_ml/paulson +INSTALLATION_DIRS+= share/examples/moscow_ml/pretty +INSTALLATION_DIRS+= share/examples/moscow_ml/small +INSTALLATION_DIRS+= share/examples/moscow_ml/units +INSTALLATION_DIRS+= share/examples/moscow_ml/weak +INSTALLATION_DIRS+= share/examples/moscow_ml/webserver + +post-extract: + ${CHMOD} -x ${WRKDIR}/mosml/examples/modules/matrix.sml + post-install: - ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/moscow_ml - ${CP} -R ${WRKDIR}/mosml/examples/* ${DESTDIR}${PREFIX}/share/examples/moscow_ml - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/share/examples/moscow_ml - ${CHMOD} -R ugo+r ${DESTDIR}${PREFIX}/share/examples/moscow_ml + cd ${WRKDIR}/mosml/examples && ${PAX} -rw . \ + ${DESTDIR}${PREFIX}/share/examples/moscow_ml + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} \ + ${DESTDIR}${PREFIX}/share/examples/moscow_ml + ${CHMOD} -R ugo+rX ${DESTDIR}${PREFIX}/share/examples/moscow_ml .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3