-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
autobump: add usbutils Signed-off-by: Rui Chen <[email protected]> usbutils: remove build patch Signed-off-by: Rui Chen <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2913,6 +2913,7 @@ uriparser | |
urlscan | ||
usb.ids | ||
usbredir | ||
usbutils | ||
userspace-rcu | ||
util-linux | ||
util-macros | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ class Usbutils < Formula | |
desc "List detailed info about USB devices" | ||
# Homepage for multiple Linux USB tools, 'usbutils' is one of them. | ||
homepage "http://www.linux-usb.org/" | ||
url "https://mirrors.edge.kernel.org/pub/linux/utils/usb/usbutils/usbutils-017.tar.gz" | ||
sha256 "f704c4cb78a060db88b43aac6ebfd3d93c2c5cf1d6dd0e42936faaf00814ab00" | ||
url "https://mirrors.edge.kernel.org/pub/linux/utils/usb/usbutils/usbutils-018.tar.gz" | ||
sha256 "0048d2d8518fb0cc7c0516e16e52af023e52b55ddb3b2068a77041b5ef285768" | ||
license all_of: [ | ||
"GPL-2.0-only", | ||
"GPL-2.0-or-later", | ||
|
@@ -26,9 +26,8 @@ class Usbutils < Formula | |
sha256 cellar: :any_skip_relocation, x86_64_linux: "17f5961f3ebd783d33e4851654070498c44c65c2bf235754ce8dcd704063dcaa" | ||
end | ||
|
||
depends_on "autoconf" => :build | ||
depends_on "automake" => :build | ||
depends_on "libtool" => :build | ||
depends_on "meson" => :build | ||
depends_on "ninja" => :build | ||
depends_on "pkg-config" => :build | ||
depends_on "libusb" | ||
|
||
|
@@ -39,14 +38,14 @@ class Usbutils < Formula | |
conflicts_with "lsusb", "lsusb-laniksj", because: "both provide an `lsusb` binary" | ||
|
||
patch do | ||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/12f3d34/usbutils/portable.patch" | ||
sha256 "0f504a173191a1e1e2f56b41584fcc0468eab7b7dfefd225910b91b5ea65cfbe" | ||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/5938fe00b5c160a5fabef4592b6a0c992281492b/usbutils/portable.patch" | ||
sha256 "ce9bd59364d2e851867a72180b8cca299e0bcd579970ff2d6620e32968897e7e" | ||
end | ||
|
||
def install | ||
Check failure on line 45 in Formula/u/usbutils.rb GitHub Actions / Linux`brew install --verbose --formula --build-bottle usbutils` failed on Linux!
Check failure on line 45 in Formula/u/usbutils.rb GitHub Actions / macOS 15-arm64`brew install --verbose --formula --build-bottle usbutils` failed on macOS Sequoia (15) on Apple Silicon!
Check failure on line 45 in Formula/u/usbutils.rb GitHub Actions / macOS 14-arm64`brew install --verbose --formula --build-bottle usbutils` failed on macOS Sonoma (14) on Apple Silicon!
Check failure on line 45 in Formula/u/usbutils.rb GitHub Actions / macOS 13-arm64`brew install --verbose --formula --build-bottle usbutils` failed on macOS Ventura (13) on Apple Silicon!
|
||
system "autoreconf", "--force", "--install", "--verbose" | ||
system "./configure", "--disable-silent-rules", *std_configure_args | ||
system "make", "install" | ||
system "meson", "setup", "build", *std_meson_args | ||
system "meson", "build", "-C", "build", "--verbose" | ||
system "meson", "install", "-C", "build" | ||
end | ||
|
||
def caveats | ||
|