[26303] trunk/dports/textproc/docbook-xsl/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jun 19 02:21:30 PDT 2007
Revision: 26303
http://trac.macosforge.org/projects/macports/changeset/26303
Author: boeyms at macports.org
Date: 2007-06-19 02:21:30 -0700 (Tue, 19 Jun 2007)
Log Message:
-----------
textproc/docbook-xsl:
* Add doc variant to install full documentation about the stylehsheets;
* Re-factor the Portfile to allow this to be done nicely.
(No reason to bump version as current installs will still work fine.)
Modified Paths:
--------------
trunk/dports/textproc/docbook-xsl/Portfile
Modified: trunk/dports/textproc/docbook-xsl/Portfile
===================================================================
--- trunk/dports/textproc/docbook-xsl/Portfile 2007-06-19 09:09:17 UTC (rev 26302)
+++ trunk/dports/textproc/docbook-xsl/Portfile 2007-06-19 09:21:30 UTC (rev 26303)
@@ -10,29 +10,33 @@
maintainers boeyms at macports.org openmaintainer at macports.org
master_sites sourceforge:docbook
homepage http://docbook.sourceforge.net/
-checksums md5 b38b895d47ef7058e4d42b52fdae23f4 \
+depends_run port:xmlcatmgr
+
+use_bzip2 yes
+checksums [suffix ${distname}] md5 b38b895d47ef7058e4d42b52fdae23f4 \
sha1 d2b4411652b14842ff77fc51fd675408f76e8147 \
rmd160 4df75842c4cda825ba5f36f5e5235e796e49b1bb
+
use_configure no
-use_bzip2 yes
-depends_run port:xmlcatmgr
build {}
+set srcxslpaths "catalog.xml common eclipse extensions fo highlighting \
+ html htmlhelp images javahelp lib manpages params \
+ profiling roundtrip slides template tools xhtml VERSION"
+set srcdocpaths "BUGS ChangeHistory.xml.zip README RELEASE-NOTES.html \
+ RELEASE-NOTES.xml TODO VERSION NEWS COPYING"
+set instxsldir "share/xsl/${name}"
+set instdocdir "share/doc/${name}"
-set dirs_to_install "catalog.xml common eclipse extensions fo highlighting \
- html htmlhelp images javahelp lib manpages params \
- profiling roundtrip slides template tools xhtml VERSION"
-set instdir "share/xsl/${name}"
-
destroot {
- xinstall -m 755 -d ${destroot}/${prefix}/${instdir} \
- ${destroot}/${prefix}/share/doc/${name} \
- ${destroot}/${prefix}/share/${name}
- xinstall -m 644 -W ${worksrcpath} BUGS ChangeHistory.xml.zip README \
- RELEASE-NOTES.html RELEASE-NOTES.xml TODO VERSION NEWS COPYING \
- ${destroot}/${prefix}/share/doc/${name}
- foreach dirname $dirs_to_install {
- file copy ${worksrcpath}/${dirname} ${destroot}/${prefix}/${instdir}
+ foreach pathname "${instxsldir} ${instdocdir}" {
+ xinstall -m 755 -d ${destroot}${prefix}/${pathname}
}
+ foreach pathname ${srcxslpaths} {
+ copy ${worksrcpath}/${pathname} ${destroot}${prefix}/${instxsldir}
+ }
+ foreach pathname ${srcdocpaths} {
+ copy ${worksrcpath}/${pathname} ${destroot}${prefix}/${instdocdir}
+ }
}
post-activate {
# xmlcatmgr as installed by MacPorts defaults to using
@@ -53,8 +57,8 @@
}
# Add the nextCatalog entry to the catalog if it doesn't exist
- if {[catch {exec xmlcatmgr lookup ${prefix}/${instdir}/catalog.xml}]} {
- system "xmlcatmgr add nextCatalog ${prefix}/${instdir}/catalog.xml"
+ if {[catch {exec xmlcatmgr lookup ${prefix}/${instxsldir}/catalog.xml}]} {
+ system "xmlcatmgr add nextCatalog ${prefix}/${instxsldir}/catalog.xml"
}
# Once MacPorts does get a post-deactivate hook, this should change to
@@ -65,7 +69,7 @@
ui_msg "# As MacPorts does not currently have a post-deactivate hook,\
\n# you will need to ensure that you manually remove the catalog\
\n# entry for this port when you uninstall it. To do so, run\
- \n# \"xmlcatmgr remove nextCatalog ${prefix}/${instdir}/catalog.xml\"."
+ \n# \"xmlcatmgr remove nextCatalog ${prefix}/${instxsldir}/catalog.xml\"."
ui_msg \
"######################################################################"
}
@@ -75,3 +79,12 @@
#post-deactivate {
# system "xmlcatmgr remove nextCatalog ${prefix}/${instdir}/catalog.xml"
#}
+
+variant doc description {Install full DocBook XSL documentation} {
+ distfiles-append [suffix ${name}-doc-${version}]
+ checksums-append [suffix ${name}-doc-${version}] \
+ md5 f6b71552c992f16f477f0513f569985c \
+ sha1 0103bbe3fd96fb95ca5469b02c7033b27feba2a7 \
+ rmd160 815b58e965b80cccccd50dad57abb972ea8aa9ee
+ lappend srcdocpaths doc
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070619/de658bba/attachment.html
More information about the macports-changes
mailing list