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

poac 0.7.0 #158086

Merged
merged 2 commits into from
Dec 23, 2023
Merged

poac 0.7.0 #158086

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
48 changes: 13 additions & 35 deletions Formula/p/poac.rb
Original file line number Diff line number Diff line change
@@ -1,33 +1,21 @@
class Poac < Formula
desc "Package Manager for C++"
desc "Package manager and build system for C++"
homepage "https://github.com/poac-dev/poac"
url "https://github.com/poac-dev/poac/archive/refs/tags/0.6.0.tar.gz"
sha256 "40f55553f7cca3bdad39599ce8c9049aeecf8f6140cfebac28c51d7d9abbbb78"
url "https://github.com/poac-dev/poac/archive/refs/tags/0.7.0.tar.gz"
sha256 "8ed0189e3fbb4b1326cb2678f80db1652a77399f5b944c57895ce2e00f2d031e"
license "Apache-2.0"
revision 4
head "https://github.com/poac-dev/poac.git", branch: "main"

bottle do
sha256 cellar: :any, arm64_sonoma: "9ffe2bbbec16b994b36efb4d5ae00f402ac995bffccd584d80f976fe94d72c4c"
sha256 cellar: :any, arm64_ventura: "f7264c6ec7cde08cab75221bda05747b0158e8bd84194dd99bc8002ae0e22a7f"
sha256 cellar: :any, arm64_monterey: "7a4308dae0c519cca092333b242a284c3e0f12f50957f999ccb2f0064996aae9"
sha256 cellar: :any, arm64_big_sur: "f18740594d83e20f9738846fcaf2f9681f6ac33ff559e95aa8c4cb3f7e70047a"
sha256 cellar: :any, sonoma: "7ae7681aa2d500429c3a0983fbdd8d5c35b85cf4329a62329ee751cff8e44d22"
sha256 cellar: :any, ventura: "b1cda02d8561d37821cb1a78c9e69d17e9efa283e046f4f713a8be1baf01bf77"
sha256 cellar: :any, monterey: "036be47724682d90f5d7baf82fdb2e5e6c637128c2995d7584d2c0b5bc7f683c"
sha256 cellar: :any, big_sur: "aad661ddcf4a5754a5c93ca6d2daf2e794a715a09a2f7cfa107d3ddefd79f4d7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "5861b764ec78792acd2aa3853b275b1eec71279d09cd659fa9432e9271d69d2a"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "49ee867cb80509d2c32016ba661b885bdee69d7c82c9c18b048b6f38b5ad1870"
sha256 cellar: :any_skip_relocation, arm64_ventura: "4744423cd3e1f5b5886a021f4d522800be16a1b228618cace3a39118d75e81cb"
sha256 cellar: :any_skip_relocation, arm64_monterey: "b1570bb3585d5992a5b80e7e39729137339a91ca332aa52ddd245d5727e61a9a"
sha256 cellar: :any_skip_relocation, sonoma: "11188f417a6298fbeb39599a6d93c670360bd2e87b0a5dea9026e3d49ca5f8e0"
sha256 cellar: :any_skip_relocation, ventura: "63e3d0e082baa978f1fdea0b605e168ce57cea1fd1dbc4c46bfa22af7ebad766"
sha256 cellar: :any_skip_relocation, monterey: "9ac4f686e4dc3cf92e4c80ad9a52186f57ab03272323b8e78a9b0b433276f95c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "902689bc9c40c5d9ac2c51fa4006f45ad7703a8c3f1cec033d2f0fd4d9c6012b"
end

depends_on "cmake" => :build
depends_on "boost"
depends_on "fmt"
depends_on "libgit2"
depends_on "openssl@3"
depends_on "spdlog"

uses_from_macos "libarchive"
chenrui333 marked this conversation as resolved.
Show resolved Hide resolved

on_macos do
depends_on "llvm" => [:build, :test] if DevelopmentTools.clang_build_version <= 1200
end
Expand All @@ -41,23 +29,13 @@ class Poac < Formula

def install
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1200)

# Help to find OpenSSL.
inreplace "cmake/AddOpenSSL.cmake", "${POAC_HOMEBREW_ROOT_PATH}/openssl",
Formula["openssl@3"].opt_prefix

system "cmake", "-S", ".", "-B", "build", "-DPOAC_BUILD_TESTING=OFF", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"

man.install "src/etc/man/man1"
bash_completion.install "src/etc/poac.bash" => "poac"
zsh_completion.install_symlink bash_completion/"poac" => "_poac"
Comment on lines -53 to -55
Copy link
Member

Choose a reason for hiding this comment

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

Are these supported in the new build?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@chenrui333 Unfortunately, these are removed to reduce maintenance costs. That said, I am willing to support these in future releases.

Copy link
Member

Choose a reason for hiding this comment

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

got you, thanks!

system "make", "RELEASE=1"
bin.install "build-out/poac"
end

test do
ENV.clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1200)
system bin/"poac", "create", "hello_world"
system bin/"poac", "new", "hello_world"
cd "hello_world" do
assert_match "Hello, world!", shell_output("#{bin}/poac run")
end
Expand Down
Loading