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

autoconf-archive 2024.10.16 #200853

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 144,7 @@ auditbeat
auditwheel
austin
autobrr
autoconf-archive
autodiff
automake
autopep8
Expand Down
44 changes: 16 additions & 28 deletions Formula/a/autoconf-archive.rb
Original file line number Diff line number Diff line change
@@ -1,22 1,18 @@
class AutoconfArchive < Formula
desc "Collection of over 500 reusable autoconf macros"
homepage "https://savannah.gnu.org/projects/autoconf-archive/"
url "https://ftp.gnu.org/gnu/autoconf-archive/autoconf-archive-2023.02.20.tar.xz"
mirror "https://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-2023.02.20.tar.xz"
sha256 "71d4048479ae28f1f5794619c3d72df9c01df49b1c628ef85fde37596dc31a33"
url "https://ftp.gnu.org/gnu/autoconf-archive/autoconf-archive-2024.10.16.tar.xz"
mirror "https://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-2024.10.16.tar.xz"
sha256 "7bcd5d001916f3a50ed7436f4f700e3d2b1bade3ed803219c592d62502a57363"
license "GPL-3.0-or-later"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ad375a956bd246edd6a9f6a08118572a33d2c0c4732e56343eb557e81ef9e762"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "ea643bc91c9234ccfe254e4a510ef3da869c6a7497203b01a94c1c984b25dccc"
sha256 cellar: :any_skip_relocation, arm64_ventura: "eff12d495e12588faaececedf65651baef736dd31af94bb3025998a2dcc35ee4"
sha256 cellar: :any_skip_relocation, arm64_monterey: "eff12d495e12588faaececedf65651baef736dd31af94bb3025998a2dcc35ee4"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "eff12d495e12588faaececedf65651baef736dd31af94bb3025998a2dcc35ee4"
sha256 cellar: :any_skip_relocation, sonoma: "57d43fd96d81578fe46bc6ddcfe4c0d79be9e50d7704b7ad0a2509ee5b5f95cd"
sha256 cellar: :any_skip_relocation, ventura: "241f7af27fa98b3cde170df669f5041e1af971fb4846890269d01df8ab26e74b"
sha256 cellar: :any_skip_relocation, monterey: "241f7af27fa98b3cde170df669f5041e1af971fb4846890269d01df8ab26e74b"
sha256 cellar: :any_skip_relocation, big_sur: "241f7af27fa98b3cde170df669f5041e1af971fb4846890269d01df8ab26e74b"
sha256 cellar: :any_skip_relocation, x86_64_linux: "270f3e443b7e742f7cd0c6e2c1882d1f6d2912008549a9f8166ea4c0a501b7e2"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "7f12265a7c9b810622a120fd397fed95c5b8d4f690df105f842a227f0e6be8f1"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "7f12265a7c9b810622a120fd397fed95c5b8d4f690df105f842a227f0e6be8f1"
sha256 cellar: :any_skip_relocation, arm64_ventura: "7f12265a7c9b810622a120fd397fed95c5b8d4f690df105f842a227f0e6be8f1"
sha256 cellar: :any_skip_relocation, sonoma: "a20b687cb4ce1878faa361fa1fc4c466b9450a027a6875cfa982ab754d4206c1"
sha256 cellar: :any_skip_relocation, ventura: "a20b687cb4ce1878faa361fa1fc4c466b9450a027a6875cfa982ab754d4206c1"
sha256 cellar: :any_skip_relocation, x86_64_linux: "146d9b404292ff71f731bac5517d404fd541a6483c0ecbf334eacf35d3cb0d18"
end

# autoconf-archive is useless without autoconf
Expand All @@ -25,26 21,18 @@ class AutoconfArchive < Formula
conflicts_with "gnome-common", because: "both install ax_check_enable_debug.m4 and ax_code_coverage.m4"

def install
system "./configure", "--prefix=#{prefix}"
system "./configure", *std_configure_args
system "make", "install"
end

test do
(testpath/"test.m4").write <<~EOS
AC_INIT(myconfig, version-0.1)
AC_MSG_NOTICE([Hello, world.])

m4_include([#{share}/aclocal/ax_have_select.m4])

# from https://www.gnu.org/software/autoconf-archive/ax_have_select.html
AX_HAVE_SELECT(
[AX_CONFIG_FEATURE_ENABLE(select)],
[AX_CONFIG_FEATURE_DISABLE(select)])
AX_CONFIG_FEATURE(
[select], [This platform supports select(7)],
[HAVE_SELECT], [This platform supports select(7).])
(testpath/"configure.ac").write <<~EOS
AC_INIT([test], [0.1])
AX_CHECK_ENABLE_DEBUG
AC_OUTPUT
EOS

system "#{Formula["autoconf"].bin}/autoconf", "test.m4"
system Formula["autoconf"].bin/"autoconf", "configure.ac"
assert_path_exists testpath/"autom4te.cache"
end
end
Loading