[29325] trunk/dports/devel/stgit/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 20 23:20:03 PDT 2007


Revision: 29325
          http://trac.macosforge.org/projects/macports/changeset/29325
Author:   boeyms at macports.org
Date:     2007-09-20 23:20:02 -0700 (Thu, 20 Sep 2007)

Log Message:
-----------
stgit: update to latest version (0.13), with new documentation as variant.

The documentation provided in stgit 0.13 is in asciidoc format, which is
human-readable.  Transforming it into man pages and html format, however,
requires that asciidoc and xmlto be installed, with the latter depending on
libxml2 and libxslt.  Since these extra dependencies are quite large,
building the documentation into those formats is being made into a variant
for now.  Hopefully later releases will include these formats pre-built.

Modified Paths:
--------------
    trunk/dports/devel/stgit/Portfile

Modified: trunk/dports/devel/stgit/Portfile
===================================================================
--- trunk/dports/devel/stgit/Portfile	2007-09-21 01:33:44 UTC (rev 29324)
+++ trunk/dports/devel/stgit/Portfile	2007-09-21 06:20:02 UTC (rev 29325)
@@ -3,7 +3,7 @@
 PortSystem          1.0
 PortGroup           python24 1.0
 name                stgit
-version             0.12.1
+version             0.13
 categories          devel python
 maintainers         boeyms openmaintainer
 description         Push/pop utility on top of GIT
@@ -23,14 +23,35 @@
 homepage            http://www.procode.org/stgit/
 master_sites        http://homepage.ntlworld.com/cmarinas/stgit/ \
                     http://download.gna.org/stgit/
-checksums           md5     36dd6bbfe80cebaa7cc2c073ece07f3c \
-                    sha1    6832ed2a83425896202eee9efda2aa9e26a961d2 \
-                    rmd160  2341874abeed04d3ff050bf888d5112918db3ac2
+checksums           md5     deef5e864e465c13c92ac5c9f5a45700 \
+                    sha1    0a2d7b8e5fc09f3ea7f62dbcd57881ea51d7595a \
+                    rmd160  aba40517731b63e20645cd9596d96b7ca5943ab7
 
 depends_run         port:git-core
 
+set stgdocs     ${worksrcpath}/Documentation/\[a-z\]*.txt
+set stgman      ""
+
 post-destroot {
     # Install what little documentation there is
     xinstall -m 644 -W ${worksrcpath} COPYING README \
         ${destroot}/${prefix}/share/doc/${name}
+    eval xinstall -m 644 [eval glob ${stgdocs}] \
+        ${destroot}/${prefix}/share/doc/${name}
+    if {${stgman} != ""} {
+        eval xinstall -m 644 [eval glob ${stgman}] \
+            ${destroot}/${prefix}/share/man/man1
+    }
 }
+
+variant html_man_docs \
+    description {Build and install documentation in HTML and manpage format} {
+    #upvar stgdocs stgman
+    # Need to add post-destroot addition of extra docs...
+    lappend stgdocs ${worksrcpath}/Documentation/*.html
+    lappend stgman ${worksrcpath}/Documentation/*.1
+    depends_build-append    port:asciidoc port:xmlto
+    post-build {
+	system "cd ${worksrcpath} && make doc"
+    }
+}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070920/6a83032b/attachment.html


More information about the macports-changes mailing list