[27083] trunk/dports/devel/git-core/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Jul 17 21:27:29 PDT 2007


Revision: 27083
          http://trac.macosforge.org/projects/macports/changeset/27083
Author:   boeyms at macports.org
Date:     2007-07-17 21:27:28 -0700 (Tue, 17 Jul 2007)

Log Message:
-----------
Make devel/git-core install the documentation in its +doc variant from the
tarball provided by the git developers, instead of building it ourselves (we
weren't installing them anyway).  Remove dependencies on asciidoc and xmlto that
results from this.
Also add description to +doc variant.
Finally, bump version so that those with +doc installed get what they asked for
:)
Thanks to the maintainer for approving this patch (closes ticket:12277).

Modified Paths:
--------------
    trunk/dports/devel/git-core/Portfile

Modified: trunk/dports/devel/git-core/Portfile
===================================================================
--- trunk/dports/devel/git-core/Portfile	2007-07-18 04:09:38 UTC (rev 27082)
+++ trunk/dports/devel/git-core/Portfile	2007-07-18 04:27:28 UTC (rev 27083)
@@ -3,6 +3,7 @@
 PortSystem        1.0
 name              git-core
 version           1.5.2.4
+revision          1
 description       The stupid content tracker.
 long_description  A stupid (but extremely fast) directory content manager. \
                   It doesn't do a whole lot, but what it _does_ do is track \
@@ -25,6 +26,9 @@
 
 patchfiles   patch-Documentation_Makefile patch-Makefile patch-http.h
 
+extract.only   git-${version}${extract.suffix} \
+               git-manpages-${version}${extract.suffix}
+
 use_configure  no
 
 build.env      CFLAGS="-Wall -O2 -I${prefix}/include" LDFLAGS="-L${prefix}/lib"
@@ -54,13 +58,19 @@
     if {![variant_isset svn]} {
         system "rm ${destroot}${prefix}/bin/git-svn*"
     }
+    if {[variant_isset doc]} {
+        set docdestroot ${destroot}${prefix}/share/doc/${name}
+        xinstall -d ${docdestroot}
+        cd ${docdestroot}
+        system "${extract.cmd} ${extract.pre_args} \
+            ${distpath}/git-htmldocs-${version}${extract.suffix} \
+            ${extract.post_args}"
+    }
 }
 
-variant doc {
-    depends_build-append    port:asciidoc port:xmlto
-    build.args-append       XML_CATALOG_FILES=${prefix}/etc/xml/catalog
-    build.target-append     doc
-    destroot.target-append  install-doc
+variant doc description (Install HTML and plaintext documentation} {
+    distfiles-append    git-htmldocs-${version}${extract.suffix}
+    checksums-append    git-htmldocs-${version}${extract.suffix} sha1 14bf076457a7cd94ffb5c46f50c923d38d77fc17
 }
 
 variant svn {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070717/40c18622/attachment.html


More information about the macports-changes mailing list