Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ruoyu Zhong <[email protected]>
Co-authored-by: Patrick Linnane <[email protected]>
  • Loading branch information
3 people authored Oct 6, 2024
1 parent ac2ddd7 commit cc7895e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Formula/a/argtable3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ class Argtable3 < Formula
desc "ANSI C library for parsing GNU-style command-line options"
homepage "https://www.argtable.org"
url "https://github.com/argtable/argtable3/archive/refs/tags/v3.2.2.f25c624.tar.gz"
version "3.2.2"
sha256 "a5c66d819fa0be0435f37ed2fb3f23e371091722ff74219de97b65f6b9914e51"
license "BSD-3-Clause"
head "https://github.com/argtable/argtable3.git", branch: "master"


depends_on "cmake" => :build

def install
system "cmake", "-S", ".", "-B", "build", "-DBUILD_SHARED_LIBS=ON", *std_cmake_args
system "cmake", "--build", "build"
system "ctest", "--test-dir", "build"
system "cmake", "--install", "build"
end

Expand All @@ -33,6 +35,7 @@ def install
}
}
EOS

system ENV.cc, "test.c", "-L#{lib}", "-I#{include}", "-largtable3",
"-o", "test"
assert_match "Received option", shell_output("./test -a")
Expand Down

0 comments on commit cc7895e

Please sign in to comment.