8000 objfw 1.0.1 · ArduinoBot/homebrew-core@5156bb8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5156bb8

Browse files
committed
objfw 1.0.1
1 parent 5c1b86b commit 5156bb8

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

Formula/o/objfw.rb

Lines changed: 25 additions & 8 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
@@ -26,27 +26,44 @@ class Objfw < Formula
2626

2727
head do
2828
url "https://github.com/ObjFW/ObjFW.git", branch: "master"
29-
30-
depends_on "autoconf" => :build
31-
depends_on "automake" => :build
3229
end
3330

31+
depends_on "autoconf" => :build
32+
depends_on "automake" => :build
33+
3434
on_linux do
3535
depends_on "llvm"
3636
end
3737

3838
fails_with :gcc
3939

40+
patch :DATA
41+
4042
def install
41-
system "./autogen.sh" if build.head?
43+
system "./autogen.sh"
4244
system "./configure", "--prefix=#{prefix}"
4345
system "make", "install"
4446
inreplace bin/"objfw-config", "llvm_clang", "clang" if OS.linux?
4547
end
4648

4749
test do
48-
system "#{bin}/objfw-new", "app", "Test"
50+
system "#{bin}/objfw-new", "--app", "Test"
4951
system "#{bin}/objfw-compile", "-o", "t", "Test.m"
5052
system "./t"
5153
end
5254
end
55+
56+
__END__
57+
diff --git a/build-aux/m4/buildsys.m4 b/build-aux/m4/buildsys.m4
58+
index b4f03a72..5ca65cb2 100644
59+
--- a/build-aux/m4/buildsys.m4
60+
+++ b/build-aux/m4/buildsys.m4
61+
@@ -323,7 +323,7 @@ AC_DEFUN([BUILDSYS_FRAMEWORK], [
62+
FRAMEWORK_LDFLAGS_INSTALL_NAME='-Wl,-install_name,@executable_path/Frameworks/$$out/$${out%.framework}'
63+
], [
64+
FRAMEWORK_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR}'
65+
- FRAMEWORK_LDFLAGS_INSTALL_NAME='-Wl,-install_name,@executable_path/../Frameworks/$$out/$${out%.framework}'
66+
+ FRAMEWORK_LDFLAGS_INSTALL_NAME='-Wl,-install_name,${prefix}/Library/Frameworks/$$out/$${out%.framework}'
67+
])
68+
69+
AC_SUBST(FRAMEWORK_LDFLAGS)

0 commit comments

Comments
 (0)
0