Docbook-xsl version 1.75.2 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    docbook-xsl  most recent diff


    version 1.75.2

      View the most recent changes for the docbook-xsl port at: docbook-xsl.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for docbook-xsl.
      The raw portfile for docbook-xsl 1.75.2 is located here:
      http://docbook-xsl.darwinports.com/dports/textproc/docbook-xsl/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/docbook-xsl


      The docbook-xsl Portfile 55604 2009-08-14 16:16:46Z devans macports.org $

      PortSystem 1.0

      Name: docbook-xsl
      Version: 1.75.2
      Category: textproc
      Description: The docbook xsl stylesheets
      Long Description: The DocBook XSL stylesheets are the official stylesheets for transforming DocBook XML documents into other document formats via XSLT.
      Platform: darwin
      Maintainers: boeyms openmaintainer
      Master Sites: sourceforge:docbook
      Homepage: http://docbook.sourceforge.net/
      depends_run port:xmlcatmgr

      use_bzip2 yes

      Checksums: [suffix $distname] md5 0c76a58a8e6cb5ab49f819e79917308f sha1 cd146012c07f3c2c79c1cd927ad1faf5bee6cc74 rmd160 2e297bd1ce0d480b6f8ea03846a8f8c0100b72dd [suffix $name-doc-$version] md5 0a59c4c1796683fca32881c221df0b16 sha1 2befba14b0cfe748dec4bc8b7b891cbb2f394767 rmd160 d67aeeb3e84e7b55f6d60cf3bd5b84fab83ce2fe

      use_configure no
      universal_variant no
      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 README RELEASE-NOTES.html RELEASE-NOTES.xml TODO VERSION NEWS COPYING"
      set instxsldir "share/xsl/${name}"
      set instdocdir "share/doc/${name}"

      destroot {
      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
      # ${prefix}/etc/xml/docbook (for XML) and ${prefix}/etc/xml/docbook (for
      # SGML) if no catalog is specified, but we'll specify the path just in case
      # users have another installation of xmlcatmgr and happen to have it before
      # ${prefix}/bin in their PATH.
      set catalog.xml ${prefix}/etc/xml/catalog

      # Make the directory if it doesn't exist
      if {![file exists ${prefix}/etc/xml]} {
      xinstall -m 755 -d ${prefix}/etc/xml
      }

      # Create the catalog file if it doesn't exist
      if {![file exists ${catalog.xml}]} {
      system "xmlcatmgr create -c ${catalog.xml}"
      }

      # Add the nextCatalog entry to the catalog if it doesn't exist
      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
      # auto-detect whether or not the user's installed version has the hook, and
      # only print the message if it doesn't.
      ui_msg "######################################################################"
      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}/${instxsldir}/catalog.xml\"."
      ui_msg "######################################################################"
      }

      # This will remove the catalog entry for this port once a post-deactivate hook
      # has been implemented.
      #post-deactivate {
      # system "xmlcatmgr remove nextCatalog ${prefix}/${instdir}/catalog.xml"
      #}

      Variant: doc description {Install full DocBook XSL documentation} {
      distfiles-append [suffix ${name}-doc-${version}]
      lappend srcdocpaths doc
      }

      livecheck.distname ${name}


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/docbook-xsl
      % sudo port install docbook-xsl
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching docbook-xsl
      ---> Verifying checksum for docbook-xsl
      ---> Extracting docbook-xsl
      ---> Configuring docbook-xsl
      ---> Building docbook-xsl with target all
      ---> Staging docbook-xsl into destroot
      ---> Installing docbook-xsl
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using docbook-xsl with these commands:
      %  man docbook-xsl
      % apropos docbook-xsl
      % which docbook-xsl
      % locate docbook-xsl

     Where to find more information:

    Darwin Ports



    Lightbox this page.