#47951: tmux: moved from SF to Github --------------------------+------------------------ Reporter: chunyang@… | Owner: tessarek@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: tmux | --------------------------+------------------------ Comment (by larryv@…): Replying to [comment:7 tessarek@…]:
Now I'm a bit confused. In the documentation https://guide.macports.org/#reference.phases.fetch.git there's no default value for `git.url`.
Also, there is nowhere any info to be found on `github.tarball_from` or `github.setup`. Can you please make this documentation available so that I actually know what I'm doing?
Sorry, many of our portgroups are not well-documented. There are many, many examples of use in other ports. You’ll want to look at the [[browser:trunk/dports/_resources/port1.0/group/github-1.0.tcl@129506|github-1.0 portgroup]]. - There’s a brief usage note at [[browser:trunk/dports/_resources/port1.0/group/github-1.0.tcl@129506#L33|line 33]]. - The default value for `git.url` is set at [[browser:trunk/dports/_resources/port1.0/group/github-1.0.tcl@129506#L160|line 160]]. - `github.tarball_from` is set up at [[browser:trunk/dports/_resources/port1.0/group/github-1.0.tcl@129506#L122|line 122]]. - `github.setup` is defined at [[browser:trunk/dports/_resources/port1.0/group/github-1.0.tcl@129506#L146|line 146]].
For the main port or the subport?
Depends on where `github.setup` is called. We’ll actually have to handle this a bit carefully to get it right. The `github-1.0` portgroup is not one of our good ones.
What do you mean by github tarball?
A tarball containing a particular Git tree.
Why was `depends_lib` removed in the patch? tmux still depends on these 2 packages.
It wasn’t removed; look at the diff more carefully.
There are 3 ways to get a release:
1. https://github.com/tmux/tmux/releases/download/2.0/tmux-2.0.tar.gz (real tarball) 1. https://github.com/tmux/tmux/archive/2.0.tar.gz (snapshot at time of commit - autogen.sh/autoreconf necessary) 1. https://github.com/tmux/tmux/archive/7536d690fdb8859193cdfdd2f68752711425bdd... (snapshot at time of commit - autogen.sh/autoreconf necessary)
For `tmux`, we want the first option, to avoid needing Autotools.
There are 2 ways to get git versions:
1. https://github.com/tmux/tmux/archive/7536d690fdb8859193cdfdd2f68752711425bdd... (snapshot at time of commit - autogen.sh/autoreconf necessary) 1. git clone / using: fetch.type git, git.branch, ... (snapshot at time of commit - autogen.sh/autoreconf necessary)
For `tmux-devel`, we’ll want the first option, to avoid doing an actual Git clone. We cannot mirror or cache Git clones. I’ve just attached [[attachment:tmux.patch|a patch]] that makes the necessary changes. -- Ticket URL: <https://trac.macports.org/ticket/47951#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X