From 1fa84d66bbd66eb1cfff7367cd86d29f6adf3444 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 8 Sep 2024 01:04:23 -0400 Subject: [PATCH 1/2] argp-standalone 1.5.0 This switches to a maintained fork, which is used by: * Alpine Linux * Gentoo * NixOS * FreeBSD Ports * OpenBSD Ports MacPorts, pkgsrc and Spack still use prior 1.3. Cygwin directly extracts code from gnulib. Packaging status --- Formula/a/argp-standalone.rb | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/Formula/a/argp-standalone.rb b/Formula/a/argp-standalone.rb index 76fe7f64c9de6..77b9f948656a9 100644 --- a/Formula/a/argp-standalone.rb +++ b/Formula/a/argp-standalone.rb @@ -1,14 +1,13 @@ class ArgpStandalone < Formula desc "Standalone version of arguments parsing functions from GLIBC" - homepage "https://www.lysator.liu.se/~nisse/misc/" - url "https://www.lysator.liu.se/~nisse/misc/argp-standalone-1.3.tar.gz" - sha256 "dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be" - license "LGPL-2.1-or-later" - - livecheck do - url :homepage - regex(/href=.*?argp-standalone[._-]v?(\d+(?:\.\d+)+)\.t/i) - end + homepage "https://github.com/argp-standalone/argp-standalone" + url "https://github.com/argp-standalone/argp-standalone/archive/refs/tags/1.5.0.tar.gz" + sha256 "c29eae929dfebd575c38174f2c8c315766092cec99a8f987569d0cad3c6d64f6" + license all_of: [ + "LGPL-2.1-or-later", + "LGPL-2.0-or-later", # argp.h, argp-parse.c + :public_domain, # mempcpy.c, strchrnul.c + ] bottle do rebuild 1 @@ -27,19 +26,14 @@ class ArgpStandalone < Formula sha256 cellar: :any_skip_relocation, el_capitan: "798e6ddb78957f9ad33662287b5971aaf3a43f3646e84691d56b3b85ca06d47f" end + depends_on "meson" => :build + depends_on "ninja" => :build depends_on :macos # argp is provided by glibc on Linux - # This patch fixes compilation with Clang. - patch :p0 do - url "https://raw.githubusercontent.com/Homebrew/formula-patches/b5f0ad3/argp-standalone/patch-argp-fmtstream.h" - sha256 "5656273f622fdb7ca7cf1f98c0c9529bed461d23718bc2a6a85986e4f8ed1cb8" - end - def install - system "./configure", "--prefix=#{prefix}" - system "make", "install" - lib.install "libargp.a" - include.install "argp.h" + system "meson", "setup", "build", *std_meson_args + system "meson", "compile", "-C", "build", "--verbose" + system "meson", "install", "-C", "build" end test do From 94df9f9be20acd88ba85348c714557e763bbccfd Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Sun, 8 Sep 2024 22:44:38 +0000 Subject: [PATCH 2/2] argp-standalone: update 1.5.0 bottle. --- Formula/a/argp-standalone.rb | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/Formula/a/argp-standalone.rb b/Formula/a/argp-standalone.rb index 77b9f948656a9..e3cfe1836f653 100644 --- a/Formula/a/argp-standalone.rb +++ b/Formula/a/argp-standalone.rb @@ -10,20 +10,12 @@ class ArgpStandalone < Formula ] bottle do - rebuild 1 - sha256 cellar: :any_skip_relocation, arm64_sonoma: "88b85bef2eec548b9fc529359bb389449b781659ef08e65bc7e1bc2d72b918ba" - sha256 cellar: :any_skip_relocation, arm64_ventura: "34e7f7393c3ceb901ca2a3d9b9b306db734dd5cbfc168da7976ebf9bcd02d1f3" - sha256 cellar: :any_skip_relocation, arm64_monterey: "d538d7be595c57c757670fbcd922b9335f9a4a47ef16662233e84b2260eb387b" - sha256 cellar: :any_skip_relocation, arm64_big_sur: "88d3f4bfb3ab27ec4105a6853fa34b94342ab2ad0d7b79248461b3bea52649a6" - sha256 cellar: :any_skip_relocation, sonoma: "b5c202821e24b6fc6f4228fb2f56ee9038689affcdd509aba131cb94b1f184fa" - sha256 cellar: :any_skip_relocation, ventura: "f8f4bde836513ed713a4c9ceb2ea072c8271138de48f992366d058466e8782a0" - sha256 cellar: :any_skip_relocation, monterey: "f0ed596672be7b1b893ea07d341bce448470b3448b55e0b5d90f68e7895de7b2" - sha256 cellar: :any_skip_relocation, big_sur: "65a3586ad4399576aeb46e497b4ec08577f84764b7a28448ae6882a2c422068d" - sha256 cellar: :any_skip_relocation, catalina: "560e1829dce7113479d755380e0e65318a996f0d04d8e0761f24810e9e019e7d" - sha256 cellar: :any_skip_relocation, mojave: "fb60d10ba68efda61d1dfdb161bcf9bfa0474c82b03e0579517cb10608aa9aea" - sha256 cellar: :any_skip_relocation, high_sierra: "92532fafd8c2cc86b33de0f347496746d8049bb4d1a6ce0948148e0f3c4bca5a" - sha256 cellar: :any_skip_relocation, sierra: "10627e72c0e0eb66cbd03a2beb767c06b8edad4bef01914de7f7c6c1be33a356" - sha256 cellar: :any_skip_relocation, el_capitan: "798e6ddb78957f9ad33662287b5971aaf3a43f3646e84691d56b3b85ca06d47f" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "ded4333901f512960d2087fd1177a70c82af78f296d858e517b52d94a2585520" + sha256 cellar: :any_skip_relocation, arm64_ventura: "7f24ae027fbc894e59972455cf569fd3676dc90d87ab93e4919df9fce0698ec1" + sha256 cellar: :any_skip_relocation, arm64_monterey: "52318bf7231650f9e0a5f956ee4ec133e34355d15c137267c6dbbc27f426d080" + sha256 cellar: :any_skip_relocation, sonoma: "4fa315b100b5d38eb5bf4c8fdaff61075c58f78a029434ccb1e9beb32c44c640" + sha256 cellar: :any_skip_relocation, ventura: "e274c57f48b316cfbd5fd3d13f560d85f9e62ae1cc44483565ddd73d90d31a21" + sha256 cellar: :any_skip_relocation, monterey: "207d701bc2983741c8bbe79297945eb4982ad58ba5597557d3216aa99e90a543" end depends_on "meson" => :build