Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

projectable 1.3.0 (new formula) #203756

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2526,6 +2526,7 @@ procps
procs
proftpd
proj
projectable
prometheus
prometheus-cpp
promptfoo
Expand Down
39 changes: 39 additions & 0 deletions Formula/p/projectable.rb
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uses libgit2-sys, this should depend on the Homebrew formula.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, I have a upstream PR to update all the major deps, dzfrias/projectable#31

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
class Projectable < Formula
desc "TUI file manager built for projects"
homepage "https://dzfrias.dev/blog/projectable"
url "https://github.com/dzfrias/projectable/archive/refs/tags/1.3.0.tar.gz"
sha256 "fe1c0edf9f14f2cd9cfef7e9af921f3e4b307b5c518a7b79f96563d6269a1e72"
license "MIT"
head "https://github.com/dzfrias/projectable.git", branch: "main"

depends_on "pkgconf" => :build
depends_on "rust" => :build
depends_on "openssl@3"

uses_from_macos "zlib"

def install
# Ensure that the `openssl` crate picks up the intended library.
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
ENV["OPENSSL_NO_VENDOR"] = "1"

system "cargo", "install", *std_cargo_args
end

test do
assert_match version.to_s, shell_output("#{bin}/prj --version")

# Fails in Linux CI with "No such device or address (os error 6)"
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]

begin
output_log = testpath/"output.log"
pid = spawn bin/"prj", testpath, [:out, :err] => output_log.to_s
sleep 1
assert_match "output.log", output_log.read
ensure
Process.kill("TERM", pid)
Process.wait(pid)
end
end
end
Loading