Skip to content

Commit

Permalink
clingon: set install location for python package
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekker1 committed Feb 21, 2024
1 parent 1453674 commit a639686
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Formula/clingcon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,19 @@ class Clingcon < Formula
end

depends_on "cmake" => :build
depends_on "[email protected]" => :build
depends_on "clingo"

def python
deps.map(&:to_formula)
.find { |f| f.name.match?(/^python@\d\.\d+$/) }
.opt_libexec/"bin/python"
end

def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "-S", ".", "-B", "build",
"-DPYCLINGCON_INSTALL_DIR=#{prefix/Language::Python.site_packages(python)}/lib/python3.9/site-packages",
*std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
Expand Down

0 comments on commit a639686

Please sign in to comment.