-
Notifications
You must be signed in to change notification settings - Fork 2
/
jpseditor.rb
29 lines (24 loc) · 841 Bytes
/
jpseditor.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class Jpseditor < Formula
desc "A graphical user interface to create the geometry of a scenario simulated by JuPedSim"
homepage "https://www.jupedsim.org/"
head "https://github.com/JuPedSim/jpseditor.git"
option "with-demos", "Add demo files"
depends_on "cmake" => :build
depends_on "qt"
def install
ohai "start compilation"
Dir.mkdir "build"
ohai "Change to build"
Dir.chdir "build"
system "cmake", ".."
system "make", "install"
bin.install "#{buildpath}/bin/JPSeditor.app/Contents/MacOS/JPSeditor"
prefix.install "#{buildpath}/bin/JPSeditor.app"
ohai "JPSeditor install in #{prefix}/JPSeditor.app"
ohai ".. and linked to #{bin}"
if build.with? "demos"
doc.install Dir["#{buildpath}/examples"]
ohai "Additional demo files are installed in #{doc}"
end
end
end