1
1
class Poac < Formula
2
- desc "Package Manager for C++"
2
+ desc "Package manager and build system for C++"
3
3
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 "
6
6
license "Apache-2.0"
7
- revision 4
8
7
head "https://github.com/poac-dev/poac.git" , branch : "main"
9
8
10
9
bottle do
@@ -19,15 +18,6 @@ class Poac < Formula
19
18
sha256 cellar : :any_skip_relocation , x86_64_linux : "5861b764ec78792acd2aa3853b275b1eec71279d09cd659fa9432e9271d69d2a"
20
19
end
21
20
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
-
31
21
on_macos do
32
22
depends_on "llvm" => [ :build , :test ] if DevelopmentTools . clang_build_version <= 1200
33
23
end
@@ -41,23 +31,13 @@ class Poac < Formula
41
31
42
32
def install
43
33
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"
56
36
end
57
37
58
38
test do
59
39
ENV . clang if OS . mac? && ( DevelopmentTools . clang_build_version <= 1200 )
60
- system bin /"poac" , "create " , "hello_world"
40
+ system bin /"poac" , "new " , "hello_world"
61
41
cd "hello_world" do
62
42
assert_match "Hello, world!" , shell_output ( "#{ bin } /poac run" )
63
43
end
0 commit comments