14 | | master_sites sourceforge:docbook |
15 | | homepage http://docbook.sf.net/ |
16 | | checksums md5 8459913bbd8a5724a6fe4b9ed5bab5af |
17 | | use_configure no |
18 | | build {} |
19 | | |
20 | | set things_to_install "common contrib dtds frames html images lib olink print catalog VERSION" |
21 | | set install_dir ${prefix}/share/dsssl/${name} |
22 | | |
23 | | # xmlcatmgr as installed by MacPorts defaults to using |
24 | | # ${prefix}/etc/sgml/catalog (for XML) and ${prefix}/etc/sgml/catalog (for |
25 | | # SGML) if no catalog is specified, but we'll specify the path just in case |
26 | | # users have another installation of xmlcatmgr and happen to have it before |
27 | | # ${prefix}/bin in their PATH. |
28 | | set catalog.sgml ${prefix}/etc/sgml/catalog |
29 | | set xmlcatmgr.args "-s -c ${catalog.sgml}" |
| 16 | master_sites sourceforge:docbook |
| 17 | homepage http://docbook.sf.net/ |
| 18 | checksums md5 8459913bbd8a5724a6fe4b9ed5bab5af |
| 19 | use_configure no |
| 20 | |
| 21 | set things_to_install "common contrib dtds frames html images lib olink print catalog VERSION" |
| 22 | |
| 23 | set install_dir ${prefix}/share/dsssl/${name} |
| 24 | sgml.catalog "${install_dir}/catalog" |
| 25 | |
| 26 | build {} |
45 | | xinstall -m 644 -W ${worksrcpath} BUGS ChangeLog README \ |
46 | | RELEASE-NOTES.html RELEASE-NOTES.xml RELEASE-NOTES.txt WhatsNew \ |
47 | | ${destroot}${prefix}/share/doc/${name} |
48 | | foreach dirname $things_to_install { |
49 | | file copy ${worksrcpath}/${dirname} ${destroot}${install_dir} |
50 | | } |
51 | | } |
52 | | |
53 | | post-activate { |
54 | | # Make the directory if it doesn't exist |
55 | | if {![file exists ${prefix}/etc/sgml]} { |
56 | | xinstall -m 755 -d ${prefix}/etc/sgml |
57 | | } |
58 | | |
59 | | # Create the catalog file if it doesn't exist |
60 | | if {![file exists ${catalog.sgml}]} { |
61 | | system "xmlcatmgr ${xmlcatmgr.args} create" |
62 | | } |
63 | | |
64 | | # Add the CATALOG entry to the catalog if it doesn't exist |
65 | | if {[catch {exec xmlcatmgr ${xmlcatmgr.args} lookup ${install_dir}/catalog}]} { |
66 | | system "xmlcatmgr ${xmlcatmgr.args} add CATALOG ${install_dir}/catalog" |
67 | | } |
68 | | } |
69 | | |
70 | | # This will remove the catalog entry for this port. |
71 | | post-deactivate { |
72 | | # Remove the CATALOG entry from the catalog |
73 | | system "xmlcatmgr ${xmlcatmgr.args} remove CATALOG ${install_dir}/catalog" |
| 42 | xinstall -m 644 -W ${worksrcpath} BUGS ChangeLog README \ |
| 43 | RELEASE-NOTES.html RELEASE-NOTES.xml RELEASE-NOTES.txt WhatsNew \ |
| 44 | ${destroot}${prefix}/share/doc/${name} |
| 45 | foreach dirname $things_to_install { |
| 46 | file copy ${worksrcpath}/${dirname} ${destroot}${install_dir} |
| 47 | } |