arcade-learning-environment: fix dylib install name

Closes #35432.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
Chongyu Zhu 2018-12-25 16:28:54 +08:00
parent 4bdc1ce828
commit 05a6edf9f2
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -3,7 +3,7 @@ class ArcadeLearningEnvironment < Formula
homepage "https://github.com/mgbellemare/Arcade-Learning-Environment"
url "https://github.com/mgbellemare/Arcade-Learning-Environment/archive/v0.6.0.tar.gz"
sha256 "da4597edf8ebef99961394daca44fa30148c778adff59ee5aec073ea94dcc175"
revision 2
revision 3
head "https://github.com/mgbellemare/Arcade-Learning-Environment.git"
bottle do
@ -19,7 +19,11 @@ class ArcadeLearningEnvironment < Formula
depends_on "sdl"
def install
system "cmake", ".", *std_cmake_args
args = std_cmake_args + %W[
-DCMAKE_INSTALL_NAME_DIR=#{opt_lib}
-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON
]
system "cmake", ".", *args
system "make", "install"
system "python3", *Language::Python.setup_install_args(prefix)
end