summaryrefslogtreecommitdiff
path: root/homebrew/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/coreutils')
-rw-r--r--homebrew/coreutils/.beer83
-rw-r--r--homebrew/coreutils/.make.sh-auto6
-rw-r--r--homebrew/coreutils/_metadata/description1
-rw-r--r--homebrew/coreutils/_metadata/homepage1
-rw-r--r--homebrew/coreutils/_metadata/name1
-rw-r--r--homebrew/coreutils/_metadata/version1
-rwxr-xr-xhomebrew/coreutils/download.sh1
7 files changed, 94 insertions, 0 deletions
diff --git a/homebrew/coreutils/.beer b/homebrew/coreutils/.beer
new file mode 100644
index 000000000..082c18ae6
--- /dev/null
+++ b/homebrew/coreutils/.beer
@@ -0,0 +1,83 @@
+{
+ "name": "Coreutils",
+ "description": "GNU File, Shell, and Text utilities",
+ "url": "https://ftp.gnu.org/gnu/coreutils/coreutils-8.31.tar.xz",
+ "mirror": "https://ftpmirror.gnu.org/coreutils/coreutils-8.31.tar.xz",
+ "homepage": "https://www.gnu.org/software/coreutils",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "automake",
+ "build-depend": true
+ },
+ {
+ "depend": "bison",
+ "build-depend": true
+ },
+ {
+ "depend": "gettext",
+ "build-depend": true
+ },
+ {
+ "depend": "texinfo",
+ "build-depend": true
+ },
+ {
+ "depend": "wget",
+ "build-depend": true
+ },
+ {
+ "depend": "xz",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [
+ {
+ "conflict": "aardvark_shell_utils",
+ "reason": "both install `realpath` binaries"
+ },
+ {
+ "conflict": "b2sum",
+ "reason": "both install `b2sum` binaries"
+ },
+ {
+ "conflict": "ganglia",
+ "reason": "both install `gstat` binaries"
+ },
+ {
+ "conflict": "gegl",
+ "reason": "both install `gcut` binaries"
+ },
+ {
+ "conflict": "idutils",
+ "reason": "both install `gid` and `gid.1`"
+ },
+ {
+ "conflict": "md5sha1sum",
+ "reason": "both install `md5sum` and `sha1sum` binaries"
+ },
+ {
+ "conflict": "truncate",
+ "reason": "both install `truncate` binaries"
+ }
+ ],
+ "patches": [],
+ "install": [
+ "system \"./bootstrap\" if build.head?",
+ "args = %W[",
+ "--prefix=#{prefix}",
+ "--program-prefix=g",
+ "--without-gmp",
+ "]",
+ "system \"./configure\", *args",
+ "system \"make\", \"install\"",
+ "coreutils_filenames(bin).each do |cmd|",
+ "(libexec/\"gnubin\").install_symlink bin/\"g#{cmd}\" => cmd"
+ ],
+ "version": "8.31",
+ "file": "coreutils.rb"
+} \ No newline at end of file
diff --git a/homebrew/coreutils/.make.sh-auto b/homebrew/coreutils/.make.sh-auto
new file mode 100644
index 000000000..aa958e764
--- /dev/null
+++ b/homebrew/coreutils/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+args = %W[--prefix=#{prefix} --program-prefix=g --without-gmp ]
+pkg:configure *args
+make DESTDIR=${PKG_DEST} install
+coreutils_filenames(bin).each do |cmd|
+(libexec/"gnubin").install_symlink bin/"g#{cmd}" => cmd
diff --git a/homebrew/coreutils/_metadata/description b/homebrew/coreutils/_metadata/description
new file mode 100644
index 000000000..f23515575
--- /dev/null
+++ b/homebrew/coreutils/_metadata/description
@@ -0,0 +1 @@
+GNU File, Shell, and Text utilities
diff --git a/homebrew/coreutils/_metadata/homepage b/homebrew/coreutils/_metadata/homepage
new file mode 100644
index 000000000..bd50b5f12
--- /dev/null
+++ b/homebrew/coreutils/_metadata/homepage
@@ -0,0 +1 @@
+https://www.gnu.org/software/coreutils
diff --git a/homebrew/coreutils/_metadata/name b/homebrew/coreutils/_metadata/name
new file mode 100644
index 000000000..d639da409
--- /dev/null
+++ b/homebrew/coreutils/_metadata/name
@@ -0,0 +1 @@
+Coreutils
diff --git a/homebrew/coreutils/_metadata/version b/homebrew/coreutils/_metadata/version
new file mode 100644
index 000000000..72b9b4216
--- /dev/null
+++ b/homebrew/coreutils/_metadata/version
@@ -0,0 +1 @@
+8.31
diff --git a/homebrew/coreutils/download.sh b/homebrew/coreutils/download.sh
new file mode 100755
index 000000000..eb45de875
--- /dev/null
+++ b/homebrew/coreutils/download.sh
@@ -0,0 +1 @@
+wget https://ftp.gnu.org/gnu/coreutils/coreutils-8.31.tar.xz || wget https://ftpmirror.gnu.org/coreutils/coreutils-8.31.tar.xz \ No newline at end of file