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

sumo formula 1.20.0 #22

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
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
File renamed without changes.
15 changes: 2 additions & 13 deletions Formula/sumo.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
class Sumo < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.dev/sumo"
url "https://sumo.dlr.de/releases/1.20.0/sumo-src-1.20.0.tar.gz"
sha256 "34320ba1695db74c769d6b4931cb6bc6ec5b26c37e556451ab29d3963d6af8ec"
license "EPL-2.0"
head "https://github.com/eclipse-sumo/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.19.0/sumo-src-1.19.0.tar.gz"
sha256 "7643b1f8a3d7144f181542c9c7b8c72f3e8e45ba9c627912665083db0fe106cd"
end

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.19.0"
sha256 cellar: :any, arm64_sonoma: "6e4d383eb4129a14d64c87abd594585f23e93a2992f09e6501854d9b7dee3a6b"
sha256 cellar: :any, arm64_ventura: "f3ec3a9c845548b0ca7e5c3da6089ac1541b39df96120b83239a6e3eb947ec6d"
sha256 cellar: :any, ventura: "0a99e836fe17386eab741544f6a0659d311879e917168d6593680178cd8b25a3"
sha256 cellar: :any, monterey: "69c36af294f7f54255f1231dc121bf1143953a106614c3eabb559ec71a66ba66"
end

option "with-examples", "Install docs/examples and docs/tutorial folder"

depends_on "cmake" => :build
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.1.0.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
class SumoAT110 < Formula
desc "Simulation of Urban MObility"
homepage "http://sumo.dlr.de"
url "https://downloads.sourceforge.net/project/sumo/sumo/version%201.1.0/sumo-src-1.1.0.tar.gz"
sha256 "68630b6879a3331683443e8044cb0a81e5919f9e4cfb80722933da85b84e542e"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://downloads.sourceforge.net/project/sumo/sumo/version%201.1.0/sumo-src-1.1.0.tar.gz"
sha256 "68630b6879a3331683443e8044cb0a81e5919f9e4cfb80722933da85b84e542e"
end

depends_on "cmake" => :build
depends_on "fox"
depends_on "libx11"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.10.0.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
class SumoAT1100 < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.org/sumo"
url "https://sumo.dlr.de/releases/1.10.0/sumo-src-1.10.0.tar.gz"
sha256 "4c6c1de915225e21bc5b2bda9a9d8d4aad6572f62bfeab90af96e840da234da9"
license "EPL-2.0"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.10.0/sumo-src-1.10.0.tar.gz"
sha256 "4c6c1de915225e21bc5b2bda9a9d8d4aad6572f62bfeab90af96e840da234da9"
end

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.10.0"
sha256 cellar: :any, catalina: "5c80a424d624ab9434775c1c40fecb19bb568f557aa934b708b1ff0222774b1e"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.11.0.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
class SumoAT1110 < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.org/sumo"
url "https://sumo.dlr.de/releases/1.11.0/sumo-src-1.11.0.tar.gz"
sha256 "24edb00c99ae2a930640ff296c98c4d98b6e4ba8e274a2f233af1a442ae36200"
license "EPL-2.0"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.11.0/sumo-src-1.11.0.tar.gz"
sha256 "24edb00c99ae2a930640ff296c98c4d98b6e4ba8e274a2f233af1a442ae36200"
end

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.11.0"
sha256 cellar: :any, big_sur: "ce62a20250c665e878f981fb3afc002d03d29298ff9ba06a90df2dcb6f9f5ef1"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.13.0.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
class SumoAT1130 < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.org/sumo"
url "https://sumo.dlr.de/releases/1.13.0/sumo-src-1.13.0.tar.gz"
sha256 "71bfc0162a0bf77eeec962d7c851d87e6a148c5040cb1d0ba6715936363897af"
license "EPL-2.0"
revision 1
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.13.0/sumo-src-1.13.0.tar.gz"
sha256 "71bfc0162a0bf77eeec962d7c851d87e6a148c5040cb1d0ba6715936363897af"
end

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.13.0_1"
sha256 cellar: :any, big_sur: "b2c2b43b71514131fc3c3b5f60ece2c36f8bbf3dccb7c298857f2ba5a100aa5a"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.14.0.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
class SumoAT1140 < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.org/sumo"
url "https://sumo.dlr.de/releases/1.14.0/sumo-src-1.14.0.tar.gz"
sha256 "0e7643c89c819683d5dd3e895f4312df1f37da278b782c16eb9cec0cc280f678"
license "EPL-2.0"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.14.0/sumo-src-1.14.0.tar.gz"
sha256 "0e7643c89c819683d5dd3e895f4312df1f37da278b782c16eb9cec0cc280f678"
end

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.14.0"
sha256 cellar: :any, big_sur: "06b86aaaacb5ec0c900204e53c71bb887d3af27605e92a7fa9ee58c57c82b487"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.14.1.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
class SumoAT1141 < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.org/sumo"
url "https://sumo.dlr.de/releases/1.14.1/sumo-src-1.14.1.tar.gz"
sha256 "f84b9facac49d301c4ea7e34f5880425250487be296830d783c8a5d738ab979d"
license "EPL-2.0"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.14.1/sumo-src-1.14.1.tar.gz"
sha256 "f84b9facac49d301c4ea7e34f5880425250487be296830d783c8a5d738ab979d"
end

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.14.1"
sha256 cellar: :any, big_sur: "fd34e7e2bd55c4b178f088cc298854aa31f97e17edda28a2c5f6b1075350fafd"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.15.0.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
class SumoAT1150 < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.org/sumo"
url "https://sumo.dlr.de/releases/1.15.0/sumo-src-1.15.0.tar.gz"
sha256 "b4c2c18f5f6df90bec7c3f7aa360bc5a682221ea6a3fa02b7e1c8dd9976733bd"
license "EPL-2.0"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.15.0/sumo-src-1.15.0.tar.gz"
sha256 "b4c2c18f5f6df90bec7c3f7aa360bc5a682221ea6a3fa02b7e1c8dd9976733bd"
end

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.15.0"
sha256 cellar: :any, big_sur: "ad4e1d1c5b877b90c21a299635c215b7df9a92d530240966195fe32d38040d49"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.16.0.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
class SumoAT1160 < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.org/sumo"
url "https://sumo.dlr.de/releases/1.16.0/sumo-src-1.16.0.tar.gz"
sha256 "33694b554a8c661ec407d04cc7c6534c473ccb2fbe7bf2ea97e1faddc70654fa"
license "EPL-2.0"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.16.0/sumo-src-1.16.0.tar.gz"
sha256 "33694b554a8c661ec407d04cc7c6534c473ccb2fbe7bf2ea97e1faddc70654fa"
end

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.16.0"
sha256 cellar: :any, arm64_ventura: "c3a05b783f45f5e1860c51d73cda163203a7cb14f006f30c1daa55789964da31"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.17.0.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
class SumoAT1170 < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.org/sumo"
url "https://sumo.dlr.de/releases/1.17.0/sumo-src-1.17.0.tar.gz"
sha256 "9985732cfb51f1b40f0dc8dc46772e684947d84a6c79fc61cf137fa08ec0988b"
license "EPL-2.0"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.17.0/sumo-src-1.17.0.tar.gz"
sha256 "9985732cfb51f1b40f0dc8dc46772e684947d84a6c79fc61cf137fa08ec0988b"
end

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.17.0"
sha256 cellar: :any, arm64_ventura: "c031bda20afd2021d6b8cf9902ff4ec10f5c5d0e3d41af77b69b3b6e264ae0e5"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.18.0.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
class SumoAT1180 < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.org/sumo"
url "https://sumo.dlr.de/releases/1.18.0/sumo-src-1.18.0.tar.gz"
sha256 "46b9c0f12416ab5a757a6e6d06c6d14432937b47d87a7abafafaab363fdfbc83"
license "EPL-2.0"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.18.0/sumo-src-1.18.0.tar.gz"
sha256 "46b9c0f12416ab5a757a6e6d06c6d14432937b47d87a7abafafaab363fdfbc83"
end

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.18.0"
sha256 cellar: :any, arm64_ventura: "bbbf60a04f47fac70d377644d6a554c7fcf712c98b6049f506293c2528760900"
Expand Down
125 changes: 125 additions & 0 deletions Formula/sumo@1.19.0.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
class SumoAT1190 < Formula
desc "Simulation of Urban MObility"
homepage "https://www.eclipse.dev/sumo"
url "https://sumo.dlr.de/releases/1.19.0/sumo-src-1.19.0.tar.gz"
sha256 "7643b1f8a3d7144f181542c9c7b8c72f3e8e45ba9c627912665083db0fe106cd"
license "EPL-2.0"
head "https://github.com/eclipse-sumo/sumo.git", branch: "main"

bottle do
root_url "https://github.com/DLR-TS/homebrew-sumo/releases/download/sumo-1.19.0"
sha256 cellar: :any, arm64_sonoma: "6e4d383eb4129a14d64c87abd594585f23e93a2992f09e6501854d9b7dee3a6b"
sha256 cellar: :any, arm64_ventura: "f3ec3a9c845548b0ca7e5c3da6089ac1541b39df96120b83239a6e3eb947ec6d"
sha256 cellar: :any, ventura: "0a99e836fe17386eab741544f6a0659d311879e917168d6593680178cd8b25a3"
sha256 cellar: :any, monterey: "69c36af294f7f54255f1231dc121bf1143953a106614c3eabb559ec71a66ba66"
end

option "with-examples", "Install docs/examples and docs/tutorial folder"

depends_on "cmake" => :build
depends_on "fox"
depends_on "libice"
depends_on "libx11"
depends_on "libxcursor"
depends_on "libxext"
depends_on "libxfixes"
depends_on "libxft"
depends_on "libxi"
depends_on "libxrandr"
depends_on "libxrender"
depends_on "proj"
depends_on "python" if build.head? && build.with?("examples")
depends_on "xerces-c"
depends_on "ffmpeg" => :optional
depends_on "gdal" => :optional
depends_on "gl2ps" => :optional
depends_on "open-scene-graph" => :optional
depends_on "swig" => :optional

# workaround due to dependency gdal -> numpy -> openblas -> gcc (originally gfortran)
# (use 'brew deps --tree sumo' to see dependencies of higher levels)
# also see: https://github.com/davidchall/homebrew-hep/issues/28
cxxstdlib_check :skip

def install
# cf. https://rubydoc.brew.sh/Formula.html#std_cmake_args-instance_method
cmake_args = *std_cmake_args(find_framework: "LAST")

# bottling uses default formula options and we want minimal requirement bottles,
# therefore, by default, do not check for optional libs
if build.with?("ffmpeg") ||
build.with?("gdal") ||
build.with?("gl2ps") ||
build.with?("open-scene-graph")
ohai "Enabling check for optional libraries..."
cmake_args << "-DCHECK_OPTIONAL_LIBS=ON"
else
cmake_args << "-DCHECK_OPTIONAL_LIBS=OFF"
end

# If found, SWIG is enabled by default by sumo cmake config step
# but Java/Python library paths found by cmake might still be broken,
# so we disable SWIG by default here.
cmake_args << "-DSWIG_EXECUTABLE=\"\"" if build.without?("swig")
# XXX: pointers for getting '--with-swig' to work:
# cmake_args << "-DJAVA_HOME=#{Formula["openjdk"].opt_prefix}/libexec/openjdk.jdk/Contents/Home"
# cmake_args << "-DPython_ROOT_DIR=#{Formula["python"].opt_prefix}"

mkdir "build/cmake-build" do # creates and changes to dir in block
system "cmake", "../..", *cmake_args
system "make"
system "make", "install"
system "make", "examples" if build.head? && build.with?("examples")
end

if build.with?("examples")
(pkgshare/"docs").install "docs/examples"
(pkgshare/"docs").install "docs/tutorial"
end
end

def caveats
<<~EOS
In order to let X11 start automatically whenever a GUI-based SUMO application
(e.g., "sumo-gui") is called, you need to log out and in again.
Alternatively, start X11 manually by pressing cmd-space and entering "XQuartz".

Don't forget to set your SUMO_HOME environment variable:
export SUMO_HOME="#{prefix}/share/sumo"

Please report any problems with this formula directly to the eclipse-sumo/sumo issue tracker:
https://github.com/eclipse-sumo/sumo/issues

EOS
end

test do # will create, run in and delete a temporary directory
# This small test verifies the functionality of SUMO.
# Run with 'brew test sumo'.
# Options passed to 'brew install' such as '--HEAD' also need to be provided to 'brew test'.

(testpath/"nodes.xml").write <<~EOS
<nodes>
<node id="0" x="0.0" y="0.0"/>
<node id="1" x="500.0" y="0.0"/>
</nodes>
EOS

(testpath/"edges.xml").write <<~EOS
<edges>
<edge id="0to1" from="0" to="1" numLanes="2" speed="30"/>
</edges>
EOS

system "#{bin}/netconvert", "-n", "#{testpath}/nodes.xml", "-e", "#{testpath}/edges.xml", "-o",
"#{testpath}/net.xml"

(testpath/"flows.xml").write <<~EOS
<routes>
<flow id="0to1" from="0to1" to="0to1" end="3600" vehsPerHour="1000"/>
</routes>
EOS

system "#{bin}/sumo", "-n", "#{testpath}/net.xml", "-r", "#{testpath}/flows.xml"
end
end
7 changes: 2 additions & 5 deletions Formula/sumo@1.2.0.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
class SumoAT120 < Formula
desc "Simulation of Urban MObility"
homepage "https://projects.eclipse.org/projects/technology.sumo"
url "https://sumo.dlr.de/releases/1.2.0/sumo-src-1.2.0.tar.gz"
sha256 "361ca67ba08b01499b1474e5949b4ddb9b6de3f9ded4bdba18c1da18bcf00190"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.2.0/sumo-src-1.2.0.tar.gz"
sha256 "361ca67ba08b01499b1474e5949b4ddb9b6de3f9ded4bdba18c1da18bcf00190"
end

depends_on "cmake" => :build
depends_on "fox"
depends_on "libx11"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.3.1.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
class SumoAT131 < Formula
desc "Simulation of Urban MObility"
homepage "https://projects.eclipse.org/projects/technology.sumo"
url "https://sumo.dlr.de/releases/1.3.1/sumo-src-1.3.1.tar.gz"
sha256 "dd089814499cc8d21ea90ab506adbb01e7fda9d9685d9d90a1a41cc3fe680505"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.3.1/sumo-src-1.3.1.tar.gz"
sha256 "dd089814499cc8d21ea90ab506adbb01e7fda9d9685d9d90a1a41cc3fe680505"
end

depends_on "cmake" => :build
depends_on "fox"
depends_on "libx11"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.4.0.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
class SumoAT140 < Formula
desc "Simulation of Urban MObility"
homepage "https://projects.eclipse.org/projects/technology.sumo"
url "https://sumo.dlr.de/releases/1.4.0/sumo-src-1.4.0.tar.gz"
sha256 "9ce3d71100b498d861c74d7e5e013cd3d9fd8eaf092c9cdfb63b3b18ada0b2fc"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.4.0/sumo-src-1.4.0.tar.gz"
sha256 "9ce3d71100b498d861c74d7e5e013cd3d9fd8eaf092c9cdfb63b3b18ada0b2fc"
end

depends_on "cmake" => :build
depends_on "fox"
depends_on "libx11"
Expand Down
7 changes: 2 additions & 5 deletions Formula/sumo@1.5.0.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
class SumoAT150 < Formula
desc "Simulation of Urban MObility"
homepage "https://projects.eclipse.org/projects/technology.sumo"
url "https://sumo.dlr.de/releases/1.5.0/sumo-src-1.5.0.tar.gz"
sha256 "dcf5339fdda0659fa44fcfd69fe3f4e03009aa9a59849624f2a3cfe72eda9f8e"
head "https://github.com/eclipse/sumo.git", branch: "main"

stable do
url "https://sumo.dlr.de/releases/1.5.0/sumo-src-1.5.0.tar.gz"
sha256 "dcf5339fdda0659fa44fcfd69fe3f4e03009aa9a59849624f2a3cfe72eda9f8e"
end

depends_on "cmake" => :build
depends_on "fox"
depends_on "libx11"
Expand Down
Loading
Loading