public
Description: Git mirror of the MacPorts svn repo
Homepage: http://www.macports.org
Clone URL: git://github.com/kballard/macports.git
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.)


git-svn-id: http://svn.macports.org/repository/macports/trunk@26303 
d073be05-634f-4543-b044-5fe20cf6d1d6
Boey Maun Suang (author)
Tue Jun 19 02:21:30 -0700 2007
commit  f0fe84a03bff32deb64607b3752a1e288cb42ba6
tree    969755010aac45f99a2393014e51d47ef2b76dfb
parent  71f7e16b2a9ef8828387825778ac594a0d18f89c
...
10
11
12
13
 
 
 
 
14
15
 
16
17
18
19
20
21
22
23
24
 
 
 
 
 
 
 
25
26
27
28
29
30
31
32
33
34
 
 
 
 
 
 
 
 
35
36
37
...
53
54
55
56
57
 
 
58
59
60
...
65
66
67
68
 
69
70
71
...
75
76
77
 
 
 
 
 
 
 
 
 
...
10
11
12
 
13
14
15
16
17
18
19
20
 
 
21
 
 
 
 
 
22
23
24
25
26
27
28
29
30
 
 
 
 
 
 
 
 
31
32
33
34
35
36
37
38
39
40
41
...
57
58
59
 
 
60
61
62
63
64
...
69
70
71
 
72
73
74
75
...
79
80
81
82
83
84
85
86
87
88
89
90
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
+
0
+use_bzip2 yes
0
+checksums [suffix ${distname}] md5 b38b895d47ef7058e4d42b52fdae23f4 \
0
             sha1 d2b4411652b14842ff77fc51fd675408f76e8147 \
0
             rmd160 4df75842c4cda825ba5f36f5e5235e796e49b1bb
0
+
0
 use_configure no
0
-use_bzip2 yes
0
-depends_run port:xmlcatmgr
0
 build {}
0
-
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
 
0
 destroot {
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
+ }
0
+ foreach pathname ${srcxslpaths} {
0
+ copy ${worksrcpath}/${pathname} ${destroot}${prefix}/${instxsldir}
0
+ }
0
+ foreach pathname ${srcdocpaths} {
0
+ copy ${worksrcpath}/${pathname} ${destroot}${prefix}/${instdocdir}
0
     }
0
 }
0
 post-activate {
0
@@ -53,8 +57,8 @@ post-activate {
0
     }
0
 
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
     }
0
 
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}/${instdir}/catalog.xml\"."
0
+ \n# \"xmlcatmgr remove nextCatalog ${prefix}/${instxsldir}/catalog.xml\"."
0
     ui_msg \
0
     "######################################################################"
0
 }
0
@@ -75,3 +79,12 @@ post-activate {
0
 #post-deactivate {
0
 # system "xmlcatmgr remove nextCatalog ${prefix}/${instdir}/catalog.xml"
0
 #}
0
+
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
0
+}

Comments

    No one has commented yet.