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.1.2 (new formula) #36880
poac 0.1.2 (new formula) #36880
Conversation
|
@fxcoudert |
Formula/poac.rb
Outdated
depends_on "yaml-cpp" | ||
|
||
def install | ||
mkdir "bulid" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, thank you!
|
||
def install | ||
mkdir "bulid" do | ||
system "cmake", "..", *std_cmake_args |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow it looks like it is hardcoding the compiler path?
/usr/local/opt/llvm/bin/clang++ -DPOAC_PROJECT_ROOT=\"/tmp/poac-20190211-22098-1vavzz3\" -DPOAC_VERSION=\"0.1.2\" -I/usr/local/include -I/usr/local/opt/openssl/include -std=c++17 -pthread -I/usr/local/opt/llvm/include -DNDEBUG -fdiagnostics-color -Wall -Wextra -Werror -o CMakeFiles/poac.dir/main.cpp.o -c /tmp/poac-20190211-22098-1vavzz3/main.cpp
make[2]: /usr/local/opt/llvm/bin/clang++: No such file or directory
make[2]: *** [CMakeFiles/poac.dir/main.cpp.o] Error 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the following error in case of no hardcoding the compiler path.
Call to unavailable function 'visit': introduced in macOS 10.14
Therefore, if macOS is not 10.14, able to build by using to llvm.
end | ||
|
||
test do | ||
assert_match /Usage/, shell_output("#{bin}/poac --help") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a test that exercises the some of the functionality of the app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@fxcoudert |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?