summaryrefslogtreecommitdiff
path: root/lang/moscow_ml
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-11-12 00:37:40 +0000
committerdholland <dholland@pkgsrc.org>2011-11-12 00:37:40 +0000
commitbe0bd1ce4776c696c963a06004cffa0700a273d6 (patch)
tree6b9fb69f30f0895e5f3589a613ad9e81965cb4da /lang/moscow_ml
parent4987029c7e9a99cc609438f572785788e3b8f133 (diff)
downloadpkgsrc-be0bd1ce4776c696c963a06004cffa0700a273d6.tar.gz
Fix post-install rule to not (sometimes) leave behind mode 744
directories.
Diffstat (limited to 'lang/moscow_ml')
-rw-r--r--lang/moscow_ml/Makefile31
1 files changed, 25 insertions, 6 deletions
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"