1
1
class UutilsCoreutils < Formula
2
2
desc "Cross-platform Rust rewrite of the GNU coreutils"
3
3
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 "
6
6
license "MIT"
7
7
head "https://github.com/uutils/coreutils.git" , branch : "main"
8
8
@@ -31,18 +31,17 @@ class UutilsCoreutils < Formula
31
31
32
32
conflicts_with "unp" , because : "both install `ucat` binaries"
33
33
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
-
38
34
def install
39
35
man1 . mkpath
40
36
37
+ args = %W[
38
+ PROG_PREFIX=u
39
+ PREFIX=#{ prefix }
40
+ SPHINXBUILD=#{ Formula [ "sphinx-doc" ] . opt_bin } /sphinx-build
41
+ SELINUX_ENABLED=0
42
+ ]
41
43
# 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"
44
+ system "gmake" , "install" , *args
46
45
47
46
# Symlink all commands into libexec/uubin without the 'u' prefix
48
47
coreutils_filenames ( bin ) . each do |cmd |
@@ -101,18 +100,3 @@ def coreutils_filenames(dir)
101
100
system bin /"uln" , "-f" , "test" , "test.sha1"
102
101
end
103
102
end
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