Skip to content

Commit c12b534

Browse files
authored
Merge pull request Homebrew#141940 from Midar/bump-objfw-1.0.1
objfw 1.0.1
2 parents 87b45ed + ff98cd0 commit c12b534

File tree

1 file changed

+32
-19
lines changed

1 file changed

+32
-19
lines changed

Formula/o/objfw.rb

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Objfw < Formula
22
desc "Portable, lightweight framework for the Objective-C language"
3-
homepage "https://objfw.nil.im/doc/trunk/README.md"
4-
url "https://objfw.nil.im/downloads/objfw-0.90.2.tar.gz"
5-
sha256 "4de24703d45638093a5196eba278a05b3643e8be0ae2eece5c81ba3e2c20bdbb"
3+
homepage "https://objfw.nil.im/"
4+
url "https://objfw.nil.im/downloads/objfw-1.0.1.tar.gz"
5+
sha256 "953fd8a7819fdbfa3b3092b06ac7f43a74bac736c120a40f2e3724f218d215f1"
66
license any_of: ["QPL-1.0", "GPL-2.0-only", "GPL-3.0-only"]
77

88
livecheck do
@@ -11,42 +11,55 @@ class Objfw < Formula
1111
end
1212

1313
bottle do
14-
sha256 arm64_ventura: "0fd7eba37d5517c35a6088c4320513fbe96de81f592a19a7f2d54ff617317b22"
15-
sha256 arm64_monterey: "83b505efb37df36fe0dba40337409835856293328b2977f28d0ef8868e1d250e"
16-
sha256 arm64_big_sur: "59dd4798a6017b6062614f70004c87feb3bbf7aecb9ac2165b5b6f92353c6361"
17-
sha256 ventura: "e1acd1fa4297e992242864af7d3406bb7ef7b66e1035fbcf3ba66f1bc031f8e8"
18-
sha256 monterey: "af63eb9a8b2ba6a183ef1bafc61cc7a527ee1d4088e073095d625051f7ca4c79"
19-
sha256 big_sur: "d0ef5bb1b837ab3ebebc3737361bd65f739d9592f8e0b139a7786a19df8108c9"
20-
sha256 catalina: "07ede29c16dec01d6eb8dd2dca6f79ec993f99298b38a78276f6257ebfb71c6a"
21-
sha256 mojave: "abc09195b6abf66d1d638af2999abe712a41cdcbb4bbf8d7ea422443150ae637"
22-
sha256 high_sierra: "33c72d86bb5a56ff4a2c9607707edb31f7af21bf863c8d34d95f6c527d9ee483"
23-
sha256 sierra: "2369c4233bafe95aeea87f678cc5e0f0b001d36b5aeff6a7b6512f766d77eb5e"
24-
sha256 x86_64_linux: "57dcb7565015413f1fb668f18b03af564e8b631b47e051c6b98dfb57d1530fa0"
14+
sha256 arm64_ventura: "d3c3b5581d03ec4e98be3493fdf6e612eacfa8de6e9d6621ddababd45f6e1649"
15+
sha256 arm64_monterey: "99bd64c40550a77d46b94f80702b5ea4a23d06d602b851ce2912f306ed746aed"
16+
sha256 arm64_big_sur: "8b8309305bc3752ea58f7e46d4145c70518f11bd8e269708cb1cc7ef97fa914f"
17+
sha256 ventura: "f9a8bc67b44b0a383edb9f19c9eee72d69ac19f3444b54f646edfa0c4b9abfdf"
18+
sha256 monterey: "e4c3c34888fb08c99f3d45e71858641e50ba56b55596fdb69f18e680afd4546d"
19+
sha256 big_sur: "a725b773d836fd29b3ac590060037360f9851ad4464a225bf369158621b00247"
20+
sha256 x86_64_linux: "1e535f44961165f3c6df2aaf5f8867b06511d4820cc100611170d9ac58ec4ac3"
2521
end
2622

2723
head do
2824
url "https://github.com/ObjFW/ObjFW.git", branch: "master"
29-
30-
depends_on "autoconf" => :build
31-
depends_on "automake" => :build
3225
end
3326

27+
depends_on "autoconf" => :build
28+
depends_on "automake" => :build
29+
3430
on_linux do
3531
depends_on "llvm"
3632
end
3733

3834
fails_with :gcc
3935

36+
patch :DATA
37+
4038
def install
41-
system "./autogen.sh" if build.head?
39+
system "./autogen.sh"
4240
system "./configure", "--prefix=#{prefix}"
4341
system "make", "install"
4442
inreplace bin/"objfw-config", "llvm_clang", "clang" if OS.linux?
4543
end
4644

4745
test do
48-
system "#{bin}/objfw-new", "app", "Test"
46+
system "#{bin}/objfw-new", "--app", "Test"
4947
system "#{bin}/objfw-compile", "-o", "t", "Test.m"
5048
system "./t"
5149
end
5250
end
51+
52+
__END__
53+
diff --git a/build-aux/m4/buildsys.m4 b/build-aux/m4/buildsys.m4
54+
index b4f03a72..5ca65cb2 100644
55+
--- a/build-aux/m4/buildsys.m4
56+
+++ b/build-aux/m4/buildsys.m4
57+
@@ -323,7 +323,7 @@ AC_DEFUN([BUILDSYS_FRAMEWORK], [
58+
FRAMEWORK_LDFLAGS_INSTALL_NAME='-Wl,-install_name,@executable_path/Frameworks/$$out/$${out%.framework}'
59+
], [
60+
FRAMEWORK_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR}'
61+
- FRAMEWORK_LDFLAGS_INSTALL_NAME='-Wl,-install_name,@executable_path/../Frameworks/$$out/$${out%.framework}'
62+
+ FRAMEWORK_LDFLAGS_INSTALL_NAME='-Wl,-install_name,${prefix}/Library/Frameworks/$$out/$${out%.framework}'
63+
])
64+
65+
AC_SUBST(FRAMEWORK_LDFLAGS)

0 commit comments

Comments
 (0)