diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-12-28 16:15:09 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-12-28 16:15:09 +0000 |
commit | 7e101b56e922b9ba0e7acfc23ce11f4fbbacd9f5 (patch) | |
tree | 4de57bd8f5e1f2a450ff92c134cc13a783faca81 /textproc/docbook-xsl | |
parent | bf0135fc8d095e099dc52c10720f2d1ccc3722ee (diff) | |
download | pkgsrc-7e101b56e922b9ba0e7acfc23ce11f4fbbacd9f5.tar.gz |
Rename files that have apostrophes in their name. Fixes problems with
pkg_install (which cannot handle such names properly). Bump PKGREVISION to 1.
Diffstat (limited to 'textproc/docbook-xsl')
-rw-r--r-- | textproc/docbook-xsl/Makefile | 24 | ||||
-rw-r--r-- | textproc/docbook-xsl/PLIST | 6 |
2 files changed, 26 insertions, 4 deletions
diff --git a/textproc/docbook-xsl/Makefile b/textproc/docbook-xsl/Makefile index 878d27b1781..d05b27454e8 100644 --- a/textproc/docbook-xsl/Makefile +++ b/textproc/docbook-xsl/Makefile @@ -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 @@ XSLMODS= common extensions fo html htmlhelp images javahelp \ 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 --git a/textproc/docbook-xsl/PLIST b/textproc/docbook-xsl/PLIST index 2c606d69b1e..b5735bf0a29 100644 --- a/textproc/docbook-xsl/PLIST +++ b/textproc/docbook-xsl/PLIST @@ -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.hhk.html 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 |