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
26- sha256 cellar : :any , arm64_sequoia : "e1151274ab64086b4a8aaa60158ec06b5ae873a01f509938b2f04ab61101195f "
27- sha256 cellar : :any , arm64_sonoma : "d978147a8f8c7dbcfd7162ac2b42082fccc315f74f7e64f5f78a3271df73f77d "
28- sha256 cellar : :any , arm64_ventura : "88b64f5e02c66eba7184bfbecdda6dfb6f331c3ad113b89f7400e51cad4a90da "
29- sha256 cellar : :any , sonoma : "ab362e5a999bd3210a26c2c2e431135a51ae43cc7a6dd6371a3ab07a93438795 "
30- sha256 cellar : :any , ventura : "dc447f1a04732969f18f1d32f1fd6ecce02c4115f9b1031f71f0008843618bfb "
31- sha256 cellar : :any_skip_relocation , arm64_linux : "8bd73160031b08cf9fdd3b0ef32f3b47a211744bdebd0c3f8a1c0c42b884d524 "
32- sha256 cellar : :any_skip_relocation , x86_64_linux : "5415f715fd1e60c8e1cb80a633588d4afd743b309d760c12f483e0881746e646 "
10+ sha256 cellar : :any , arm64_sequoia : "3b50d8d26ad9ae4223f2b32c6e6339286076967625db097d6f59e51e301839ef "
11+ sha256 cellar : :any , arm64_sonoma : "b46ebee74b740c0c6fab8ed2c4d54126a190cb2f16d9c6528e9900e3dc51fb0e "
12+ sha256 cellar : :any , arm64_ventura : "c36ac2cb17b1d1057e197d9e2f22d8dae23d1d44142dfab5d595e46edc6cb1fd "
13+ sha256 cellar : :any , sonoma : "a043c615f9b5d1c946eeec170beebf0fcdb561ff35f7bbc34561102519e3f452 "
14+ sha256 cellar : :any , ventura : "8088af20377163a45aac512fc22a33d774d888dbe7becac630eda6ffa29cb0b3 "
15+ sha256 cellar : :any_skip_relocation , arm64_linux : "4dbcfc8241bf5efa4380109aed635b6107a0f53fb0f698bf469e3f2a50a4c6ef "
16+ sha256 cellar : :any_skip_relocation , x86_64_linux : "beefb8b7b075411dc9335ea16e330d963cf8d02f3e9d8d4b5f706ca82ecdcd03 "
3317 end
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