Ticket #41609: git-flow.patch

File git-flow.patch, 4.5 KB (added by gorticus (Jason Mitchell), 10 years ago)

update includes subports: git-flow-devel, git-flow-avh, git-flow-hf

  • Portfile

    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    2 # $Id: Portfile 120912 2014-06-11 13:10:52Z ciserlohn@macports.org $
     2# $Id$
    33
    44PortSystem              1.0
    55PortGroup               github 1.0
    66
     7set realname            git-flow
     8set description_common  {Git extensions for Vincent Driessen branching.}
     9
    710github.setup            nvie gitflow 0.4.1
    8 revision                1
    911fetch.type              git
    10 
    11 name                    git-flow
     12name                    ${realname}
     13revision                2
    1214categories              devel
    1315platforms               darwin
    1416maintainers             maiar.org:jason-macports openmaintainer
    15 license                 BSD
     17license                 {BSD, LGPL-2.1+}
    1618supported_archs         noarch
    1719
    18 description             Git extensions for Vincent Driessen branching.
     20description             ${description_common} (nvie)
     21long_description        ${description_common} \
     22                        This is the canonical nvie version, not maintained.
     23conflicts               ${realname}-devel ${realname}-avh ${realname}-hf
     24
     25depends_run-append      port:git port:getopt
     26
     27if {${subport} eq ${name}} {
     28
     29  destroot.destdir      prefix=${destroot}${prefix}
     30
     31  post-fetch {
     32      # Does the github portgroup support 'clone --recursive'?
     33      # This will be removed once the python re-write is complete.
     34      system "cd ${worksrcpath} && git submodule update --init"
     35  }
     36}
    1937
    20 long_description        A collection of Git extensions to provide high-level \
    21                         repository operations for Vincent Driessen branching.
     38subport ${realname}-devel {
     39  github.setup          nvie gitflow 15aab26490facf285acef56cb5d61025eacb3a69
     40 
     41  # suggested solution to name issue taken from ticket:40831#comment:2
     42  # see https://trac.macports.org/attachment/ticket/40139/Portfile.9
     43  global PortInfo
     44  set PortInfo(name)    ${subport}
     45
     46  revision              1
     47  license               {BSD, LGPL-2.1+}
     48  description           ${description_common} (nvie devel)
     49  long_description      ${description_common} \
     50                        This is the nvie develop branch, not maintained.
     51  conflicts             ${realname} ${realname}-avh ${realname}-hf
     52
     53  destroot.destdir      prefix=${destroot}${prefix}
     54
     55  post-fetch {
     56      # Does the github portgroup support 'clone --recursive'?
     57      # This will be removed once the python re-write is complete.
     58      system "cd ${worksrcpath} && git submodule update --init"
     59  }
     60}
    2261
    23 depends_build-append    port:git
     62subport ${realname}-avh {
     63  github.setup          petervanderdoes gitflow 1.7.0
     64 
     65  # suggested solution to name issue taken from ticket:40831#comment:2
     66  # see https://trac.macports.org/attachment/ticket/40139/Portfile.9
     67  global PortInfo
     68  set PortInfo(name)    ${subport}
     69
     70  revision              1
     71  license               {BSD, LGPL-2.1+}
     72  description           ${description_common} (avh Edition)
     73  long_description      ${description_common} \
     74                        This is the AVH Edition, and is actively developed.
     75  conflicts             ${realname} ${realname}-devel ${realname}-hf
    2476
    25 depends_run-append      port:getopt
     77  destroot.destdir      prefix=${destroot}${prefix}
     78}
    2679
    27 post-fetch {
     80subport ${realname}-hf {
     81  github.setup          datasift gitflow 1.5.2
     82
     83  # suggested solution to name issue taken from ticket:40831#comment:2
     84  # see https://trac.macports.org/attachment/ticket/40139/Portfile.9
     85  global PortInfo
     86  set PortInfo(name)    ${subport}
     87
     88  revision              1
     89  license               {BSD, LGPL-2.1+}
     90  description           ${description_common} (HubFlow)
     91  long_description      ${description_common} \
     92                        This is the HubFlow version, and is actively developed.
     93  conflicts             ${realname} ${realname}-devel ${realname}-avh
     94
     95  destroot.env          INSTALL_INTO="${destroot}${prefix}/bin"
     96  destroot.cmd          ./install.sh
     97  destroot.destdir
     98
     99  post-fetch {
    28100    # Does the github portgroup support 'clone --recursive'?
    29101    # This will be removed once the python re-write is complete.
    30102    system "cd ${worksrcpath} && git submodule update --init"
     103  }
    31104}
    32105
    33106use_configure           no
    34 
    35107build {}
    36 
    37 destroot.destdir        prefix=${destroot}${prefix}