pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/docbook-xsl Rename files that have apostrophe...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4fe5d0b59b24
branches: trunk
changeset: 465362:4fe5d0b59b24
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Sun Dec 28 16:15:09 2003 +0000
description:
Rename files that have apostrophes in their name. Fixes problems with
pkg_install (which cannot handle such names properly). Bump PKGREVISION to 1.
diffstat:
textproc/docbook-xsl/Makefile | 24 +++++++++++++++++++++++-
textproc/docbook-xsl/PLIST | 6 +++---
2 files changed, 26 insertions(+), 4 deletions(-)
diffs (67 lines):
diff -r 2355456dac87 -r 4fe5d0b59b24 textproc/docbook-xsl/Makefile
--- a/textproc/docbook-xsl/Makefile Sun Dec 28 16:12:02 2003 +0000
+++ b/textproc/docbook-xsl/Makefile Sun Dec 28 16:15:09 2003 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2003/12/21 10:01:12 jmmv Exp $
+# $NetBSD: Makefile,v 1.13 2003/12/28 16:15:09 jmmv Exp $
#
DISTNAME= docbook-xsl-1.64.1
+PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=docbook/}
@@ -23,6 +24,27 @@
XML_CATALOGS= ${XSLDIR}/catalog
+FIX_APOS= doc/html/htmlhelp.hhp.windows\'.html
+FIX_APOS+= doc/html/htmlhelp.show.toolbar.text\'.html
+
+SUBST_CLASSES+= fix-apos
+SUBST_STAGE.fix-apos= post-patch
+SUBST_MESSAGE.fix-apos= "Fixing references to files with apostrophes in names."
+SUBST_FILES.fix-apos= ${FIX_APOS:H:u:S/$/\/*/}
+SUBST_SED.fix-apos=
+.for f in ${FIX_APOS}
+SUBST_SED.fix-apos+= -e "s|${f:T}|${f:T:S/\'/.apos/g}|g"
+.endfor
+
+post-extract:
+.for f in ${FIX_APOS}
+ ${MV} ${WRKSRC}/${f} ${WRKSRC}/${f:S/\'/.apos/g}
+.endfor
+.undef f
+
+post-patch:
+ ${FIND} ${WRKSRC} -name "*.subst.sav" -printx | ${XARGS} ${RM}
+
do-install:
${INSTALL_DATA_DIR} ${DOCDIR}
cd ${WRKSRC}/doc && ${PAX} -rw -pp -pm . ${DOCDIR}
diff -r 2355456dac87 -r 4fe5d0b59b24 textproc/docbook-xsl/PLIST
--- a/textproc/docbook-xsl/PLIST Sun Dec 28 16:12:02 2003 +0000
+++ b/textproc/docbook-xsl/PLIST Sun Dec 28 16:15:09 2003 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2003/12/21 10:01:12 jmmv Exp $
+@comment $NetBSD: PLIST,v 1.9 2003/12/28 16:15:09 jmmv Exp $
share/doc/docbook-xsl/ChangeLog
share/doc/docbook-xsl/book.xsl
share/doc/docbook-xsl/ch01s02.html
@@ -469,14 +469,14 @@
share/doc/docbook-xsl/html/htmlhelp.hhp.html
share/doc/docbook-xsl/html/htmlhelp.hhp.tail.html
share/doc/docbook-xsl/html/htmlhelp.hhp.window.html
-share/doc/docbook-xsl/html/htmlhelp.hhp.windows'.html
+share/doc/docbook-xsl/html/htmlhelp.hhp.windows.apos.html
share/doc/docbook-xsl/html/htmlhelp.map.file.html
share/doc/docbook-xsl/html/htmlhelp.only.html
share/doc/docbook-xsl/html/htmlhelp.remember.window.position.html
share/doc/docbook-xsl/html/htmlhelp.show.advanced.search.html
share/doc/docbook-xsl/html/htmlhelp.show.favorities.html
share/doc/docbook-xsl/html/htmlhelp.show.menu.html
-share/doc/docbook-xsl/html/htmlhelp.show.toolbar.text'.html
+share/doc/docbook-xsl/html/htmlhelp.show.toolbar.text.apos.html
share/doc/docbook-xsl/html/htmlhelp.title.html
share/doc/docbook-xsl/html/htmlhelp.use.hhk.html
share/doc/docbook-xsl/html/htmlhelp.window.geometry.html
Home |
Main Index |
Thread Index |
Old Index