Ticket #12277: git-core_doc_variant_update.diff

File git-core_doc_variant_update.diff, 1.8 KB (added by boeyms@…, 17 years ago)
  • dports/devel/git-core/Portfile

    diff --git a/dports/devel/git-core/Portfile b/dports/devel/git-core/Portfile
    index 363ad3b..b7b6091 100644
    a b  
    33PortSystem        1.0
    44name              git-core
    55version           1.5.2.3
     6revision          1
    67description       The stupid content tracker.
    78long_description  A stupid (but extremely fast) directory content manager. \
    89                  It doesn't do a whole lot, but what it _does_ do is track \
    depends_lib port:curl port:zlib port:openssl port:expat port:libiconv 
    2526
    2627patchfiles   patch-Documentation_Makefile patch-Makefile patch-http.h
    2728
     29extract.only   git-${version}${extract.suffix} \
     30               git-manpages-${version}${extract.suffix}
     31
    2832use_configure  no
    2933
    3034build.env      CFLAGS="-Wall -O2 -I${prefix}/include" LDFLAGS="-L${prefix}/lib"
    post-destroot { 
    5458    if {![variant_isset svn]} {
    5559        system "rm ${destroot}${prefix}/bin/git-svn*"
    5660    }
     61    if {[variant_isset doc]} {
     62        set docdestroot ${destroot}${prefix}/share/doc/${name}
     63        xinstall -d ${docdestroot}
     64        cd ${docdestroot}
     65        system "${extract.cmd} ${extract.pre_args} \
     66            ${distpath}/git-htmldocs-${version}${extract.suffix} \
     67            ${extract.post_args}"
     68    }
    5769}
    5870
    59 variant doc {
    60     depends_build-append        port:asciidoc port:xmlto
    61     build.args-append   XML_CATALOG_FILES=${prefix}/etc/xml/catalog
    62     build.target-append doc
    63     destroot.target-append  install-doc
     71variant doc description {Install HTML and plaintext documentation} {
     72    distfiles-append    git-htmldocs-${version}${extract.suffix}
     73    checksums-append    git-htmldocs-${version}${extract.suffix} sha1 02bf28c0fd064ad4c9335e80ca837582bc882d65
    6474}
    6575
    6676variant svn {