diff options
Diffstat (limited to 'homebrew/grep')
-rw-r--r-- | homebrew/grep/.beer | 39 | ||||
-rw-r--r-- | homebrew/grep/.make.sh-auto | 8 | ||||
-rw-r--r-- | homebrew/grep/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/grep/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/grep/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/grep/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/grep/download.sh | 1 |
7 files changed, 52 insertions, 0 deletions
diff --git a/homebrew/grep/.beer b/homebrew/grep/.beer new file mode 100644 index 000000000..5428ced93 --- /dev/null +++ b/homebrew/grep/.beer @@ -0,0 +1,39 @@ +{ + "name": "Grep", + "description": "GNU grep, egrep and fgrep", + "url": "https://ftp.gnu.org/gnu/grep/grep-3.3.tar.xz", + "mirror": "https://ftpmirror.gnu.org/grep/grep-3.3.tar.xz", + "homepage": "https://www.gnu.org/software/grep/", + "depends": [ + { + "depend": "pkg-config", + "build-depend": true + }, + { + "depend": "pcre", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [], + "install": [ + "args = %W[", + "--disable-dependency-tracking", + "--disable-nls", + "--prefix=#{prefix}", + "--infodir=#{info}", + "--mandir=#{man}", + "--with-packager=Homebrew", + "--program-prefix=g", + "]", + "system \"./configure\", *args", + "system \"make\"", + "system \"make\", \"install\"", + "%w[grep egrep fgrep].each do |prog|", + "(libexec/\"gnubin\").install_symlink bin/\"g#{prog}\" => prog", + "(libexec/\"gnuman/man1\").install_symlink man1/\"g#{prog}.1\" => \"#{prog}.1\"" + ], + "version": "3.3", + "file": "grep.rb" +}
\ No newline at end of file diff --git a/homebrew/grep/.make.sh-auto b/homebrew/grep/.make.sh-auto new file mode 100644 index 000000000..8896e2c62 --- /dev/null +++ b/homebrew/grep/.make.sh-auto @@ -0,0 +1,8 @@ +pkg:setup +args = %W[--disable-dependency-tracking --disable-nls --prefix=#{prefix} --infodir=#{info} --mandir=#{man} --with-packager=Homebrew --program-prefix=g ] +pkg:configure *args +make +make DESTDIR=${PKG_DEST} install +%w[grep egrep fgrep].each do |prog| +(libexec/"gnubin").install_symlink bin/"g#{prog}" => prog +(libexec/"gnuman/man1").install_symlink man1/"g#{prog}.1" => "#{prog}.1" diff --git a/homebrew/grep/_metadata/description b/homebrew/grep/_metadata/description new file mode 100644 index 000000000..872b1a6f8 --- /dev/null +++ b/homebrew/grep/_metadata/description @@ -0,0 +1 @@ +GNU grep, egrep and fgrep diff --git a/homebrew/grep/_metadata/homepage b/homebrew/grep/_metadata/homepage new file mode 100644 index 000000000..d115bfac7 --- /dev/null +++ b/homebrew/grep/_metadata/homepage @@ -0,0 +1 @@ +https://www.gnu.org/software/grep/ diff --git a/homebrew/grep/_metadata/name b/homebrew/grep/_metadata/name new file mode 100644 index 000000000..0b1a3b699 --- /dev/null +++ b/homebrew/grep/_metadata/name @@ -0,0 +1 @@ +Grep diff --git a/homebrew/grep/_metadata/version b/homebrew/grep/_metadata/version new file mode 100644 index 000000000..eb39e5382 --- /dev/null +++ b/homebrew/grep/_metadata/version @@ -0,0 +1 @@ +3.3 diff --git a/homebrew/grep/download.sh b/homebrew/grep/download.sh new file mode 100755 index 000000000..d0c63ca43 --- /dev/null +++ b/homebrew/grep/download.sh @@ -0,0 +1 @@ +wget https://ftp.gnu.org/gnu/grep/grep-3.3.tar.xz || wget https://ftpmirror.gnu.org/grep/grep-3.3.tar.xz
\ No newline at end of file |