11class UutilsCoreutils < Formula
22 desc "Cross-platform Rust rewrite of the GNU coreutils"
33 homepage "https://uutils.github.io/coreutils/"
4- url "https://github.com/uutils/coreutils/archive/refs/tags/0.1 .0.tar.gz"
5- sha256 "55c528f2b53c1b30cb704550131a806e84721c87b3707b588a961a6c97f110d8 "
4+ url "https://github.com/uutils/coreutils/archive/refs/tags/0.2 .0.tar.gz"
5+ sha256 "185be1670bb5091f48d29524c6f81326f12aef5e599fcdb122967a95d017f32a "
66 license "MIT"
77 head "https://github.com/uutils/coreutils.git" , branch : "main"
88
@@ -31,18 +31,19 @@ class UutilsCoreutils < Formula
3131
3232 conflicts_with "unp" , because : "both install `ucat` binaries"
3333
34- # Temporary patch to fix the error; Failed to find 'selinux/selinux.h'
35- # Issue ref: https://github.com/uutils/coreutils/issues/7996
36- patch :DATA
37-
3834 def install
3935 man1 . mkpath
4036
37+ # Prevent to add a feature for `selinux`
38+ inreplace "GNUmakefile" , "SELINUX_ENABLED" , "0"
39+
40+ args = %W[
41+ PROG_PREFIX=u
42+ PREFIX=#{ prefix }
43+ SPHINXBUILD=#{ Formula [ "sphinx-doc" ] . opt_bin } /sphinx-build
44+ ]
4145 # Call `make` as `gmake` to use Homebrew `make`.
42- system "gmake" , "install" ,
43- "PROG_PREFIX=u" ,
44- "PREFIX=#{ prefix } " ,
45- "SPHINXBUILD=#{ Formula [ "sphinx-doc" ] . opt_bin } /sphinx-build"
46+ system "gmake" , "install" , *args
4647
4748 # Symlink all commands into libexec/uubin without the 'u' prefix
4849 coreutils_filenames ( bin ) . each do |cmd |
@@ -101,18 +102,3 @@ def coreutils_filenames(dir)
101102 system bin /"uln" , "-f" , "test" , "test.sha1"
102103 end
103104end
104-
105- __END__
106- diff --git a/GNUmakefile b/GNUmakefile
107- index f46126a82..58bf7fbdd 100644
108- --- a/GNUmakefile
109- +++ b/GNUmakefile
110- @@ -181,8 +181,6 @@ SELINUX_PROGS := \
111-
112- ifneq ($(OS),Windows_NT)
113- PROGS := $(PROGS) $(UNIX_PROGS)
114- -# Build the selinux command even if not on the system
115- - PROGS := $(PROGS) $(SELINUX_PROGS)
116- endif
117-
118- UTILS ?= $(PROGS)
0 commit comments