0
@@ -10,28 +10,32 @@ platforms darwin
0
maintainers boeyms@macports.org openmaintainer@macports.org
0
master_sites sourceforge:docbook
0
homepage http://docbook.sourceforge.net/
0
-checksums md5 b38b895d47ef7058e4d42b52fdae23f4 \
0
+depends_run port:xmlcatmgr
0
+checksums [suffix ${distname}] md5 b38b895d47ef7058e4d42b52fdae23f4 \
0
sha1 d2b4411652b14842ff77fc51fd675408f76e8147 \
0
rmd160 4df75842c4cda825ba5f36f5e5235e796e49b1bb
0
-depends_run port:xmlcatmgr
0
-set dirs_to_install "catalog.xml common eclipse extensions fo highlighting \
0
- html htmlhelp images javahelp lib manpages params \
0
- profiling roundtrip slides template tools xhtml VERSION"
0
-set instdir "share/xsl/${name}"
0
+set srcxslpaths "catalog.xml common eclipse extensions fo highlighting \
0
+ html htmlhelp images javahelp lib manpages params \
0
+ profiling roundtrip slides template tools xhtml VERSION"
0
+set srcdocpaths "BUGS ChangeHistory.xml.zip README RELEASE-NOTES.html \
0
+ RELEASE-NOTES.xml TODO VERSION NEWS COPYING"
0
+set instxsldir "share/xsl/${name}"
0
+set instdocdir "share/doc/${name}"
0
- xinstall -m 755 -d ${destroot}/${prefix}/${instdir} \
0
- ${destroot}/${prefix}/share/doc/${name} \
0
- ${destroot}/${prefix}/share/${name}
0
- xinstall -m 644 -W ${worksrcpath} BUGS ChangeHistory.xml.zip README \
0
- RELEASE-NOTES.html RELEASE-NOTES.xml TODO VERSION NEWS COPYING \
0
- ${destroot}/${prefix}/share/doc/${name}
0
- foreach dirname $dirs_to_install {
0
- file copy ${worksrcpath}/${dirname} ${destroot}/${prefix}/${instdir}
0
+ foreach pathname "${instxsldir} ${instdocdir}" {
0
+ xinstall -m 755 -d ${destroot}${prefix}/${pathname}
0
+ foreach pathname ${srcxslpaths} {
0
+ copy ${worksrcpath}/${pathname} ${destroot}${prefix}/${instxsldir}
0
+ foreach pathname ${srcdocpaths} {
0
+ copy ${worksrcpath}/${pathname} ${destroot}${prefix}/${instdocdir}
0
@@ -53,8 +57,8 @@ post-activate {
0
# Add the nextCatalog entry to the catalog if it doesn't exist
0
- if {[catch {exec xmlcatmgr lookup ${prefix}/${instdir}/catalog.xml}]} {
0
- system "xmlcatmgr add nextCatalog ${prefix}/${instdir}/catalog.xml"
0
+ if {[catch {exec xmlcatmgr lookup ${prefix}/${instxsldir}/catalog.xml}]} {
0
+ system "xmlcatmgr add nextCatalog ${prefix}/${instxsldir}/catalog.xml"
0
# Once MacPorts does get a post-deactivate hook, this should change to
0
@@ -65,7 +69,7 @@ post-activate {
0
ui_msg "# As MacPorts does not currently have a post-deactivate hook,\
0
\n# you will need to ensure that you manually remove the catalog\
0
\n# entry for this port when you uninstall it. To do so, run\
0
- \n# \"xmlcatmgr remove nextCatalog ${prefix}/${inst
dir}/catalog.xml\"."
0
+ \n# \"xmlcatmgr remove nextCatalog ${prefix}/${inst
xsldir}/catalog.xml\"."
0
"######################################################################"
0
@@ -75,3 +79,12 @@ post-activate {
0
# system "xmlcatmgr remove nextCatalog ${prefix}/${instdir}/catalog.xml"
0
+variant doc description {Install full DocBook XSL documentation} {
0
+ distfiles-append [suffix ${name}-doc-${version}]
0
+ checksums-append [suffix ${name}-doc-${version}] \
0
+ md5 f6b71552c992f16f477f0513f569985c \
0
+ sha1 0103bbe3fd96fb95ca5469b02c7033b27feba2a7 \
0
+ rmd160 815b58e965b80cccccd50dad57abb972ea8aa9ee
0
+ lappend srcdocpaths doc
Comments
No one has commented yet.