11class Liblcf < Formula
22 desc "Library for RPG Maker 2000/2003 games data"
33 homepage "https://easyrpg.org/"
4+ url "https://easyrpg.org/downloads/player/0.8.1/liblcf-0.8.1.tar.xz"
5+ sha256 "e827b265702cf7d9f4af24b8c10df2c608ac70754ef7468e34836201ff172273"
46 license "MIT"
5- revision 6
67 head "https://github.com/EasyRPG/liblcf.git" , branch : "master"
78
8- stable do
9- url "https://easyrpg.org/downloads/player/0.8/liblcf-0.8.tar.xz"
10- sha256 "6b0d8c7fefe3d66865336406f69ddf03fe59e52b5601687265a4d1e47a25c386"
11-
12- # Backport C++17 for `icu4c` 75. Remove in the next release.
13- patch do
14- url "https://github.com/EasyRPG/liblcf/commit/8c782e54ba244981141d91e7d44922952563677c.patch?full_index=1"
15- sha256 "593f729e7f9a5411e6d8548aaac0039e09eee437f525409a9ca8513a0ee15cd0"
16- end
17-
18- # Backport CMake fix when using FindEXPAT
19- patch do
20- url "https://github.com/EasyRPG/liblcf/commit/a759e18d39cd73c0d2934896ed5c9520a9e1ca94.patch?full_index=1"
21- sha256 "4b34c80fbb80f388a3c08cf9e810a13c58e79c11671fc5064a54c1b6c0d5956d"
22- end
23- end
24-
259 bottle do
2610 sha256 cellar : :any , arm64_sequoia : "e1151274ab64086b4a8aaa60158ec06b5ae873a01f509938b2f04ab61101195f"
2711 sha256 cellar : :any , arm64_sonoma : "d978147a8f8c7dbcfd7162ac2b42082fccc315f74f7e64f5f78a3271df73f77d"
@@ -34,6 +18,7 @@ class Liblcf < Formula
3418
3519 depends_on "cmake" => :build
3620 depends_on "icu4c@77"
21+ depends_on "inih"
3722
3823 uses_from_macos "expat"
3924
@@ -57,7 +42,7 @@ def install
5742 return 0;
5843 }
5944 CPP
60- system ENV . cxx , "test.cpp" , "-std=c++14 " , "-I#{ include } " , "-L#{ lib } " , "-llcf" , \
45+ system ENV . cxx , "test.cpp" , "-std=c++17 " , "-I#{ include } " , "-L#{ lib } " , "-llcf" , \
6146 "-o" , "test"
6247 system "./test"
6348 end
0 commit comments