Skip to content

Commit 37c787f

Browse files
committed
poac 0.7.0
1 parent 2d28e82 commit 37c787f

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

Formula/p/poac.rb

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
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
@@ -19,15 +18,6 @@ class Poac < Formula
1918
sha256 cellar: :any_skip_relocation, x86_64_linux: "5861b764ec78792acd2aa3853b275b1eec71279d09cd659fa9432e9271d69d2a"
2019
end
2120

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-
3121
on_macos do
3222
depends_on "llvm" => [:build, :test] if DevelopmentTools.clang_build_version <= 1200
3323
end
@@ -41,23 +31,13 @@ class Poac < Formula
4131

4232
def install
4333
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"
34+
system "make", "RELEASE=1"
35+
bin.install "build-out/poac"
5636
end
5737

5838
test do
5939
ENV.clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1200)
60-
system bin/"poac", "create", "hello_world"
40+
system bin/"poac", "new", "hello_world"
6141
cd "hello_world" do
6242
assert_match "Hello, world!", shell_output("#{bin}/poac run")
6343
end

0 commit comments

Comments
 (0)