Skip to content
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

picosat: also install picosat.h #9

Merged
merged 1 commit into from
Nov 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Formula/picosat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Picosat < Formula
homepage "http://fmv.jku.at/picosat/"
url "http://fmv.jku.at/picosat/picosat-965.tar.gz"
sha256 "15169b4f28ba8f628f353f6f75a100845cdef4a2244f101a02b6e5a26e46a754"
revision 1
revision 2

bottle do
root_url "https://dl.bintray.com/touist/bottles-touist"
Expand All @@ -17,8 +17,9 @@ class Picosat < Formula
def install
system "./configure.sh"
system "make"
bin.install "picosat","picomcs","picogcnf"
bin.install "picosat", "picomcs", "picogcnf", "picomus"
lib.install "libpicosat.a"
lib.install "picosat.h" # because quantor expects everything in one dir
end

test do
Expand All @@ -28,4 +29,12 @@ def install
EOS
assert_equal "s SATISFIABLE\nv 1 2 0", shell_output("#{bin}/picosat #{testpath}/test.dimacs", result = 10).strip
end

def caveats
<<~EOS
Because Quantor (and apparently also other solvers) expects both
the header and the library to be in one folder, `picosat.h` is
installed along with `libpicosat.a` in the lib/ folder.
EOS
end
end