forgit icon indicating copy to clipboard operation
forgit copied to clipboard

Add formula to homebrew

Open arihant2math opened this issue 3 years ago • 3 comments

Check list

  • [x] I have read through the README
  • [x] I have the latest version of forgit
  • [x] I have searched through the existing issues

Environment info

  • OS
    • [x] Linux
    • [x] Mac OS X
    • [ ] Windows
  • Shell: All

Problem / Steps to reproduce

There is no homebrew formula for forgit, this is my default package manager.

arihant2math avatar Apr 05 '22 02:04 arihant2math

@arihant2math I think this is a great idea, and seeing as you have 9 thumbs up for it, seems like a lot of people agree!

Any chance you have the time to write up a PR for it? I think the only requirements is that it installs the correct bindings for each applicable shell (fish/bash/zsh). Not sure how brew deals with commands like this that are kind of aliases of other commands.

cjappl avatar May 30 '22 18:05 cjappl

There is a previous step to do here. We need versioning in forgit. Brew doesn't like unversioned-things®

vicendominguez avatar Jul 23 '22 11:07 vicendominguez

@vicendominguez Created #233 for that

arihant2math avatar Sep 12 '22 04:09 arihant2math

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 12 '22 12:11 stale[bot]

I like this idea as well and will put this on my agenda for the near future.

carlfriedrich avatar Nov 13 '22 18:11 carlfriedrich

class Forgit < Formula
  desc "Interactive git commands in the terminal"
  homepage "https://github.com/wfxr/forgit"
  url "https://github.com/wfxr/forgit/releases/download/23.01.0/forgit-23.01.0.tar.gz"
  sha256 "2f7b0b4defbeb0945c5e644283749e62d901f1f1389eaddf9c591ab7091a27ae"
  license "MIT"

  depends_on "fzf"

  def install
    bin.install "bin/git-forgit" => "forgit"
  end

  test do
    system "which", "forgit"
  end
end

is enough. I have https://github.com/aasutossh/homebrew-core/tree/forgit-formula ready to do the PR. You can do it too. I'll leave the rest to you.

Update: Source: https://docs.brew.sh/Formula-Cookbook

aasutossh avatar Jan 06 '23 20:01 aasutossh

Done with https://github.com/Homebrew/homebrew-core/pull/129392.

carlfriedrich avatar May 04 '23 06:05 carlfriedrich