summaryrefslogtreecommitdiff
path: root/editors/xemacs-packages/Makefile
diff options
context:
space:
mode:
authortron <tron>2000-11-25 11:00:11 +0000
committertron <tron>2000-11-25 11:00:11 +0000
commite8396237089b1f35a7b71764fbbfe29d1bb873d7 (patch)
treeb36fb4aff1ea249c58558c6bf0b69348585b6cd2 /editors/xemacs-packages/Makefile
parentc246d493df4ae6f8e9f6200340209e4ed3299730 (diff)
downloadpkgsrc-e8396237089b1f35a7b71764fbbfe29d1bb873d7.tar.gz
Compress ".el" files if "MANZ" is defined like the "xemacs" package does.
Diffstat (limited to 'editors/xemacs-packages/Makefile')
-rw-r--r--editors/xemacs-packages/Makefile26
1 files changed, 22 insertions, 4 deletions
diff --git a/editors/xemacs-packages/Makefile b/editors/xemacs-packages/Makefile
index bd00ebb9946..db826cbb530 100644
--- a/editors/xemacs-packages/Makefile
+++ b/editors/xemacs-packages/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2000/11/25 07:55:45 tron Exp $
+# $NetBSD: Makefile,v 1.11 2000/11/25 11:00:11 tron Exp $
# FreeBSD Id: Makefile,v 1.1.1.1 1999/06/22 22:16:53 gj Exp
DISTNAME= xemacs-packages
@@ -31,14 +31,32 @@ EXTRACT_ONLY= # empty
NO_BUILD= yes
WRKSRC= ${WRKDIR}
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(MANZ)
+PLIST_SUBST+= ELSUFX=.gz
+.else
+PLIST_SUBST+= ELSUFX=
+.endif
+
do-install:
@${MKDIR} ${PREFIX}/lib/xemacs/xemacs-packages
.for DISTFILE in ${DISTFILES}
- @${ECHO} -n "Extracting ${DISTFILE} ... "
+ @${ECHO_MSG} -n "Extracting ${DISTFILE} ... "
@${GTAR} xCzf ${PREFIX}/lib/xemacs/xemacs-packages \
${DISTDIR}/${DIST_SUBDIR}/${DISTFILE}
- @${ECHO} "done"
+ @${ECHO_MSG} "done"
.endfor
- ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/lib/xemacs/xemacs-packages
+ @${ECHO_MSG} -n "Fixing file ownerships ... "
+ @${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/lib/xemacs/xemacs-packages
+ @${ECHO_MSG} "done"
+.if defined(MANZ)
+ @${ECHO_MSG} -n "Compressing \".el\" files ... "
+ @cd ${PREFIX} && \
+ ${GREP} '\$${ELSUFX}$$' ${PLIST_SRC} | \
+ ${SED} -e 's#\$${ELSUFX}$$##' | \
+ xargs ${GZIP_CMD}
+ @${ECHO_MSG} "done"
+.endif
.include "../../mk/bsd.pkg.mk"