pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/docbook Do not modify installed read-only fil...
details: https://anonhg.NetBSD.org/pkgsrc/rev/93180df66f4f
branches: trunk
changeset: 468020:93180df66f4f
user: minskim <minskim%pkgsrc.org@localhost>
date: Mon Feb 09 15:46:51 2004 +0000
description:
Do not modify installed read-only files; do it at build time.
Approved by wiz@.
diffstat:
textproc/docbook/Makefile | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
diffs (80 lines):
diff -r 93dd354231f1 -r 93180df66f4f textproc/docbook/Makefile
--- a/textproc/docbook/Makefile Mon Feb 09 15:42:37 2004 +0000
+++ b/textproc/docbook/Makefile Mon Feb 09 15:46:51 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2004/01/23 17:18:32 jmmv Exp $
+# $NetBSD: Makefile,v 1.26 2004/02/09 15:46:51 minskim Exp $
# FreeBSD Id: Makefile,v 1.4 1998/06/27 05:19:35 asami Exp
#
@@ -25,7 +25,6 @@
NO_MTREE= yes
USE_BUILDLINK2= yes
EXTRACT_ONLY= # empty
-NO_BUILD= yes
INSTDIR= ${PREFIX}/share/sgml/docbook
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
@@ -36,6 +35,12 @@
.endfor
.undef ver
+do-build:
+.for ver in 241 30 31 40 41 42
+ ${CP} ${FILESDIR}/catalog${ver} ${WRKDIR}
+ ${ECHO} "CATALOG \"${ISOCAT}\"" >> ${WRKDIR}/catalog${ver}
+.endfor
+
pre-install:
${INSTALL_DATA_DIR} ${INSTDIR}/2.4.1
@[ -d ${INSTDIR}/3.0 ] || ${INSTALL_DATA_DIR} ${INSTDIR}/3.0
@@ -50,43 +55,37 @@
#
@(cd ${INSTDIR}/2.4.1; unzip ${DISTDIR}/docbk241.zip)
@${RM} -r ${INSTDIR}/2.4.1/iso-*
- @${INSTALL_DATA} ${FILESDIR}/catalog241 ${INSTDIR}/2.4.1/catalog
- @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/2.4.1/catalog
+ @${INSTALL_DATA} ${WRKDIR}/catalog241 ${INSTDIR}/2.4.1/catalog
@${CHMOD} ${SHAREMODE} ${INSTDIR}/2.4.1/*
#
# 3.0:
#
@(cd ${INSTDIR}/3.0; unzip ${DISTDIR}/docbk30.zip)
- @${INSTALL_DATA} ${FILESDIR}/catalog30 ${INSTDIR}/3.0/catalog
- @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.0/catalog
+ @${INSTALL_DATA} ${WRKDIR}/catalog30 ${INSTDIR}/3.0/catalog
@${CHMOD} ${SHAREMODE} ${INSTDIR}/3.0/*
#
# 3.1:
#
@(cd ${INSTDIR}/3.1; unzip ${DISTDIR}/docbk31.zip)
- @${INSTALL_DATA} ${FILESDIR}/catalog31 ${INSTDIR}/3.1/catalog
- @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.1/catalog
+ @${INSTALL_DATA} ${WRKDIR}/catalog31 ${INSTDIR}/3.1/catalog
@${CHMOD} ${SHAREMODE} ${INSTDIR}/3.1/*
#
# 4.0:
#
@(cd ${INSTDIR}/4.0; unzip ${DISTDIR}/docbk40.zip)
- @${INSTALL_DATA} ${FILESDIR}/catalog40 ${INSTDIR}/4.0/catalog
- @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/4.0/catalog
+ @${INSTALL_DATA} ${WRKDIR}/catalog40 ${INSTDIR}/4.0/catalog
@${CHMOD} ${SHAREMODE} ${INSTDIR}/4.0/*
#
# 4.1:
#
@(cd ${INSTDIR}/4.1; unzip ${DISTDIR}/docbk41.zip)
- @${INSTALL_DATA} ${FILESDIR}/catalog41 ${INSTDIR}/4.1/catalog
- @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/4.1/catalog
+ @${INSTALL_DATA} ${WRKDIR}/catalog41 ${INSTDIR}/4.1/catalog
@${CHMOD} ${SHAREMODE} ${INSTDIR}/4.1/*
#
# 4.2:
#
@(cd ${INSTDIR}/4.2; unzip ${DISTDIR}/docbook-4.2.zip)
- @${INSTALL_DATA} ${FILESDIR}/catalog42 ${INSTDIR}/4.2/catalog
- @${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/4.2/catalog
+ @${INSTALL_DATA} ${WRKDIR}/catalog42 ${INSTDIR}/4.2/catalog
@${CHMOD} ${SHAREMODE} ${INSTDIR}/4.2/*
#
# General cleanup
Home |
Main Index |
Thread Index |
Old Index