Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim 9.1.0080 #1078

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 3 additions & 34 deletions Library/Formula/vim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ class Vim < Formula
desc "Vi \"workalike\" with many additional features"
homepage "http://www.vim.org/"
# *** Vim should be updated no more than once every 7 days ***
url "https://github.com/vim/vim/archive/refs/tags/v9.0.1907.tar.gz"
sha256 "6b908a868bad5fd4af7b82390dbd371f5d13bcb7c8a913025831cfb3b03b1224"
version "9.0.1907"
url "https://github.com/vim/vim/archive/refs/tags/v9.1.0080.tar.gz"
sha256 "f66a0eb3b07581348f81493615ffcbb6f3498e4e073da067a63c511d2c9e6875"
version "9.1.0080"
head "https://github.com/vim/vim.git"
revision 1

bottle do
sha256 "e2eadd794a7eaea32fda90406e5c8d8f284af7edcf88ec89630a348b7c0a57d0" => :tiger_altivec
end

# We only have special support for finding depends_on :python, but not yet for
Expand Down Expand Up @@ -42,9 +40,6 @@ class Vim < Formula
conflicts_with "ex-vi",
:because => "vim and ex-vi both install bin/ex and bin/view"

# Enable sound support on El Capitan or newer, build breaks on 10.6 & prior.
patch :p0, :DATA

def install
ENV["LUA_PREFIX"] = HOMEBREW_PREFIX if build.with?("lua") || build.with?("luajit")

Expand Down Expand Up @@ -125,29 +120,3 @@ def install
end
end
end
__END__
--- src/vim.h.orig 2023-09-17 22:41:28.000000000 +0100
+++ src/vim.h 2023-09-17 22:44:27.000000000 +0100
@@ -102,6 +102,11 @@
# define ROOT_UID 0
#endif

+/* Include MAC_OS_X_VERSION_* macros */
+#ifdef HAVE_AVAILABILITYMACROS_H
+# include <AvailabilityMacros.h>
+#endif
+
/*
* MACOS_X compiling for Mac OS X
* MACOS_X_DARWIN integrating the darwin feature into MACOS_X
@@ -167,7 +172,9 @@
# if defined(FEAT_NORMAL) && !defined(FEAT_CLIPBOARD)
# define FEAT_CLIPBOARD
# endif
-# if defined(FEAT_HUGE) && !defined(FEAT_SOUND)
+# if defined(FEAT_HUGE) && !defined(FEAT_SOUND) && \
+ defined(MAC_OS_X_VERSION_MIN_REQUIRED) && \
+ MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
# define FEAT_SOUND
# endif
# if defined(FEAT_SOUND)