[122828] trunk/dports/devel/git-flow/Portfile

cal at macports.org cal at macports.org
Thu Jul 31 03:16:48 PDT 2014


Revision: 122828
          https://trac.macports.org/changeset/122828
Author:   cal at macports.org
Date:     2014-07-31 03:16:48 -0700 (Thu, 31 Jul 2014)
Log Message:
-----------
git-flow: provide subports for git-flow, git-flow-devel, git-flow-avh, git-flow-hf, rename git-core to git, maintainer, closes #41609, #44401

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

Modified: trunk/dports/devel/git-flow/Portfile
===================================================================
--- trunk/dports/devel/git-flow/Portfile	2014-07-31 10:05:11 UTC (rev 122827)
+++ trunk/dports/devel/git-flow/Portfile	2014-07-31 10:16:48 UTC (rev 122828)
@@ -4,34 +4,92 @@
 PortSystem              1.0
 PortGroup               github 1.0
 
+set realname            git-flow
+set description_common  {Git extensions for Vincent Driessen branching.}
+
 github.setup            nvie gitflow 0.4.1
-revision                1
 fetch.type              git
-
-name                    git-flow
+name                    ${realname}
+revision                2
 categories              devel
 platforms               darwin
 maintainers             maiar.org:jason-macports openmaintainer
-license                 BSD
+license                 {BSD, LGPL-2.1+}
 supported_archs         noarch
 
-description             Git extensions for Vincent Driessen branching.
+description             ${description_common} (nvie)
+long_description        ${description_common} \
+                        This is the canonical nvie version, not maintained.
+conflicts               ${realname}-devel ${realname}-avh ${realname}-hf
 
-long_description        A collection of Git extensions to provide high-level \
-                        repository operations for Vincent Driessen branching.
+depends_run-append      port:git port:getopt
 
-depends_build-append    port:git
+if {${subport} eq ${name}} {
 
-depends_run-append      port:getopt
+  destroot.destdir      prefix=${destroot}${prefix}
 
-post-fetch {
+  depends_fetch-append  bin:git:git
+  post-fetch {
+      # Does the github portgroup support 'clone --recursive'?
+      # This will be removed once the python re-write is complete.
+      system "cd ${worksrcpath} && git submodule update --init"
+  }
+}
+
+subport ${realname}-devel {
+  github.setup          nvie gitflow 15aab26490facf285acef56cb5d61025eacb3a69
+
+  revision              1
+  license               {BSD, LGPL-2.1+}
+  description           ${description_common} (nvie devel)
+  long_description      ${description_common} \
+                        This is the nvie develop branch, not maintained.
+  conflicts             ${realname} ${realname}-avh ${realname}-hf
+
+  destroot.destdir      prefix=${destroot}${prefix}
+
+  depends_fetch-append  bin:git:git
+  post-fetch {
+      # Does the github portgroup support 'clone --recursive'?
+      # This will be removed once the python re-write is complete.
+      system "cd ${worksrcpath} && git submodule update --init"
+  }
+}
+
+subport ${realname}-avh {
+  github.setup          petervanderdoes gitflow 1.7.0
+
+  revision              1
+  license               {BSD, LGPL-2.1+}
+  description           ${description_common} (avh Edition)
+  long_description      ${description_common} \
+                        This is the AVH Edition, and is actively developed.
+  conflicts             ${realname} ${realname}-devel ${realname}-hf
+
+  destroot.destdir      prefix=${destroot}${prefix}
+}
+
+subport ${realname}-hf {
+  github.setup          datasift gitflow 1.5.2
+
+  revision              1
+  license               {BSD, LGPL-2.1+}
+  description           ${description_common} (HubFlow)
+  long_description      ${description_common} \
+                        This is the HubFlow version, and is actively developed.
+  conflicts             ${realname} ${realname}-devel ${realname}-avh
+
+  destroot.env          INSTALL_INTO="${destroot}${prefix}/bin"
+  destroot.cmd          ./install.sh
+  destroot.destdir
+
+  depends_fetch-append  bin:git:git
+  post-fetch {
     # Does the github portgroup support 'clone --recursive'?
     # This will be removed once the python re-write is complete.
     system "cd ${worksrcpath} && git submodule update --init"
+  }
 }
 
 use_configure           no
-
 build {}
-
-destroot.destdir        prefix=${destroot}${prefix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140731/53d36315/attachment.html>


More information about the macports-changes mailing list