Ticket #36492: git-core-Portfile-v1.patch

File git-core-Portfile-v1.patch, 1.9 KB (added by kngspook@…, 12 years ago)

Attempt #1 to add a +subtree variant to git-core.

  • ports/devel/git-core/Portfile

    old new  
    55
    66name                git-core
    77version             1.7.12.2
     8revision            1
    89description         A fast version control system
    910long_description    Git is a fast, scalable, distributed open source version \
    1011                    control system focusing on speed and efficiency.
     
    189190    }
    190191}
    191192
     193variant subtree description {Install git subtree tools from contrib} {
     194    # Ideally, we shouldn't make people install asciidoc and xmlto to get one
     195    # manpage for one small, optional piece of git. Filed a bug for git to ship
     196    # with the man page by default.
     197    # https://code.google.com/p/git-core/issues/detail?id=18
     198    depends_lib-append      port:asciidoc
     199    depends_lib-append      port:xmlto
     200   
     201    post-build {
     202        system -W "${worksrcpath}/contrib/subtree" "make"
     203       
     204        system -W "${worksrcpath}/contrib/subtree" \
     205        "asciidoc -b docbook -d manpage -f ../../Documentation/asciidoc.conf -agit_version=${version} git-subtree.txt"
     206       
     207        system -W "${worksrcpath}/contrib/subtree" \
     208        "xmlto -m ../../Documentation/manpage-normal.xsl man git-subtree.xml"
     209    }
     210   
     211    pre-destroot {
     212        xinstall -d "${destroot}${prefix}/libexec/git-core/"
     213        xinstall -m 755 "${worksrcpath}/contrib/subtree/git-subtree" \
     214        "${destroot}${prefix}/libexec/git-core/git-subtree"
     215       
     216        xinstall -d "${destroot}${prefix}/share/man/man1/"
     217        xinstall -m 644 "${worksrcpath}/contrib/subtree/git-subtree.1" \
     218        "${destroot}${prefix}/share/man/man1/git-subtree.1"
     219       
     220        system -W "${worksrcpath}/contrib/subtree" "make clean"
     221    }
     222}
     223
    192224default_variants    +doc +pcre +credential_osxkeychain
    193225
    194226livecheck.type          regex