Skip to content

Commit 4bfeacd

Browse files
authored
Merge pull request #158086 from ken-matsui/bump-poac-0.7.0
poac 0.7.0
2 parents 61ad9f3 + 919d5bb commit 4bfeacd

File tree

1 file changed

+13
-35
lines changed

1 file changed

+13
-35
lines changed

Formula/p/poac.rb

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,21 @@
11
class Poac < Formula
2-
desc "Package Manager for C++"
2+
desc "Package manager and build system for C++"
33
homepage "https://github.com/poac-dev/poac"
4-
url "https://github.com/poac-dev/poac/archive/refs/tags/0.6.0.tar.gz"
5-
sha256 "40f55553f7cca3bdad39599ce8c9049aeecf8f6140cfebac28c51d7d9abbbb78"
4+
url "https://github.com/poac-dev/poac/archive/refs/tags/0.7.0.tar.gz"
5+
sha256 "8ed0189e3fbb4b1326cb2678f80db1652a77399f5b944c57895ce2e00f2d031e"
66
license "Apache-2.0"
7-
revision 4
87
head "https://github.com/poac-dev/poac.git", branch: "main"
98

109
bottle do
11-
sha256 cellar: :any, arm64_sonoma: "9ffe2bbbec16b994b36efb4d5ae00f402ac995bffccd584d80f976fe94d72c4c"
12-
sha256 cellar: :any, arm64_ventura: "f7264c6ec7cde08cab75221bda05747b0158e8bd84194dd99bc8002ae0e22a7f"
13-
sha256 cellar: :any, arm64_monterey: "7a4308dae0c519cca092333b242a284c3e0f12f50957f999ccb2f0064996aae9"
14-
sha256 cellar: :any, arm64_big_sur: "f18740594d83e20f9738846fcaf2f9681f6ac33ff559e95aa8c4cb3f7e70047a"
15-
sha256 cellar: :any, sonoma: "7ae7681aa2d500429c3a0983fbdd8d5c35b85cf4329a62329ee751cff8e44d22"
16-
sha256 cellar: :any, ventura: "b1cda02d8561d37821cb1a78c9e69d17e9efa283e046f4f713a8be1baf01bf77"
17-
sha256 cellar: :any, monterey: "036be47724682d90f5d7baf82fdb2e5e6c637128c2995d7584d2c0b5bc7f683c"
18-
sha256 cellar: :any, big_sur: "aad661ddcf4a5754a5c93ca6d2daf2e794a715a09a2f7cfa107d3ddefd79f4d7"
19-
sha256 cellar: :any_skip_relocation, x86_64_linux: "5861b764ec78792acd2aa3853b275b1eec71279d09cd659fa9432e9271d69d2a"
10+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "49ee867cb80509d2c32016ba661b885bdee69d7c82c9c18b048b6f38b5ad1870"
11+
sha256 cellar: :any_skip_relocation, arm64_ventura: "4744423cd3e1f5b5886a021f4d522800be16a1b228618cace3a39118d75e81cb"
12+
sha256 cellar: :any_skip_relocation, arm64_monterey: "b1570bb3585d5992a5b80e7e39729137339a91ca332aa52ddd245d5727e61a9a"
13+
sha256 cellar: :any_skip_relocation, sonoma: "11188f417a6298fbeb39599a6d93c670360bd2e87b0a5dea9026e3d49ca5f8e0"
14+
sha256 cellar: :any_skip_relocation, ventura: "63e3d0e082baa978f1fdea0b605e168ce57cea1fd1dbc4c46bfa22af7ebad766"
15+
sha256 cellar: :any_skip_relocation, monterey: "9ac4f686e4dc3cf92e4c80ad9a52186f57ab03272323b8e78a9b0b433276f95c"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "902689bc9c40c5d9ac2c51fa4006f45ad7703a8c3f1cec033d2f0fd4d9c6012b"
2017
end
2118

22-
depends_on "cmake" => :build
23-
depends_on "boost"
24-
depends_on "fmt"
25-
depends_on "libgit2"
26-
depends_on "openssl@3"
27-
depends_on "spdlog"
28-
29-
uses_from_macos "libarchive"
30-
3119
on_macos do
3220
depends_on "llvm" => [:build, :test] if DevelopmentTools.clang_build_version <= 1200
3321
end
@@ -41,23 +29,13 @@ class Poac < Formula
4129

4230
def install
4331
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1200)
44-
45-
# Help to find OpenSSL.
46-
inreplace "cmake/AddOpenSSL.cmake", "${POAC_HOMEBREW_ROOT_PATH}/openssl",
47-
Formula["openssl@3"].opt_prefix
48-
49-
system "cmake", "-S", ".", "-B", "build", "-DPOAC_BUILD_TESTING=OFF", *std_cmake_args
50-
system "cmake", "--build", "build"
51-
system "cmake", "--install", "build"
52-
53-
man.install "src/etc/man/man1"
54-
bash_completion.install "src/etc/poac.bash" => "poac"
55-
zsh_completion.install_symlink bash_completion/"poac" => "_poac"
32+
system "make", "RELEASE=1"
33+
bin.install "build-out/poac"
5634
end
5735

5836
test do
5937
ENV.clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1200)
60-
system bin/"poac", "create", "hello_world"
38+
system bin/"poac", "new", "hello_world"
6139
cd "hello_world" do
6240
assert_match "Hello, world!", shell_output("#{bin}/poac run")
6341
end

0 commit comments

Comments
 (0)