-
Notifications
You must be signed in to change notification settings - Fork 129
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
gettext: assorted minor but vital improvements #1099
base: master
Are you sure you want to change the base?
Conversation
make `keg-only` state conditional on OS version; remove unused `--with-examples` option; use the Homebrew `make` routine instead of `system "make"`
@@ -9,10 +9,11 @@ class Gettext < Formula | |||
sha256 "c64bb31029e29599442653fe1e0f2216ae8fe144451a0541896f6e367df0018f" => :tiger_altivec | |||
end | |||
|
|||
keg_only :shadowed_by_osx, "OS X provides the BSD gettext library and some software gets confused if both are in the library path." | |||
unless MacOS.version <= :leopard # what Mac OS version would be correct here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, does Tiger not include gettext? I don't think I knew that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiger does not include gettext, nor any fragment thereof. Neither does Leopard. I have no idea when it became a standard component, nor indeed whether it ever actually did.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I posted a bug report to that effect months ago.
Library/Formula/gettext.rb
Outdated
"--without-xz" | ||
system "make" | ||
system "make", "check" | ||
args = %W[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind leaving the args and make
sections alone in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I shall do so at my earliest convenience. Sorry for the mix-up about the purpose of the "make" convenience function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edits made. Is it possible to accept the revised PR against HEAD, or do I need to figure out some hocus-pocus to delete the sub-par first attempt that's currently in between them on this branch?
Leopard doesn't either.On Mar 24, 2024, at 5:53 PM, Misty De Méo ***@***.***> wrote:
@mistydemeo commented on this pull request.
In Library/Formula/gettext.rb:
@@ -9,10 +9,11 @@ class Gettext < Formula
sha256 "c64bb31029e29599442653fe1e0f2216ae8fe144451a0541896f6e367df0018f" => :tiger_altivec
end
- keg_only :shadowed_by_osx, "OS X provides the BSD gettext library and some software gets confused if both are in the library path."
+ unless MacOS.version <= :leopard # what Mac OS version would be correct here?
Huh, does Tiger not include gettext? I don't think I knew that!
In Library/Formula/gettext.rb:
- "--prefix=#{prefix}",
- "--with-included-gettext",
- "--with-included-glib",
- "--with-included-libcroco",
- "--with-included-libunistring",
- "--with-emacs",
- "--with-lispdir=#{share}/emacs/site-lisp/gettext",
- "--disable-java",
- "--disable-csharp",
- # Don't use VCS systems to create these archives
- "--without-git",
- "--without-cvs",
- "--without-xz"
- system "make"
- system "make", "check"
+ args = %W[
Mind leaving the args and make sections alone in this PR?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
…ed option; fixed missing blank line
I wrote an experimental version of the formula for my own use, to upgrade the version and better enable :universal builds, and discovered that the without-tests option HAS to be left out because the gettext package itself no longer offers it. |
make
keg-only
state conditional on OS version; remove unused--with-examples
option; use the Homebrewmake
routine instead ofsystem "make"