summaryrefslogtreecommitdiff
path: root/homebrew/pigz
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/pigz')
-rw-r--r--homebrew/pigz/.beer22
-rw-r--r--homebrew/pigz/.make.sh-auto8
-rw-r--r--homebrew/pigz/_metadata/description1
-rw-r--r--homebrew/pigz/_metadata/homepage1
-rw-r--r--homebrew/pigz/_metadata/name1
-rw-r--r--homebrew/pigz/_metadata/version1
-rwxr-xr-xhomebrew/pigz/download.sh1
7 files changed, 35 insertions, 0 deletions
diff --git a/homebrew/pigz/.beer b/homebrew/pigz/.beer
new file mode 100644
index 000000000..1f8652f73
--- /dev/null
+++ b/homebrew/pigz/.beer
@@ -0,0 +1,22 @@
+{
+ "name": "Pigz",
+ "description": "Parallel gzip",
+ "url": "https://zlib.net/pigz/pigz-2.4.tar.gz",
+ "mirror": null,
+ "homepage": "https://zlib.net/pigz/",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "if MacOS.version == :el_capitan && MacOS::Xcode.version >= \"8.0\"",
+ "inreplace \"pigz.c\", \"ZLIB_VERNUM >= 0x1260\", \"ZLIB_VERNUM >= 0x9999\"",
+ "end",
+ "system \"make\", \"CC=#{ENV.cc}\", \"CFLAGS=#{ENV.cflags}\"",
+ "bin.install \"pigz\", \"unpigz\"",
+ "man1.install \"pigz.1\"",
+ "man1.install_symlink \"pigz.1\" => \"unpigz.1\""
+ ],
+ "version": "2.4",
+ "file": "pigz.rb"
+} \ No newline at end of file
diff --git a/homebrew/pigz/.make.sh-auto b/homebrew/pigz/.make.sh-auto
new file mode 100644
index 000000000..2de04bc08
--- /dev/null
+++ b/homebrew/pigz/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+if MacOS.version == :el_capitan && MacOS::Xcode.version >= "8.0"
+inreplace "pigz.c", "ZLIB_VERNUM >= 0x1260", "ZLIB_VERNUM >= 0x9999"
+end
+make CC=${PKG_TARG}-clang CFLAGS=${CFLAGS}
+bin.install "pigz", "unpigz"
+man1.install "pigz.1"
+man1.install_symlink "pigz.1" => "unpigz.1"
diff --git a/homebrew/pigz/_metadata/description b/homebrew/pigz/_metadata/description
new file mode 100644
index 000000000..31b8c7d90
--- /dev/null
+++ b/homebrew/pigz/_metadata/description
@@ -0,0 +1 @@
+Parallel gzip
diff --git a/homebrew/pigz/_metadata/homepage b/homebrew/pigz/_metadata/homepage
new file mode 100644
index 000000000..b249706da
--- /dev/null
+++ b/homebrew/pigz/_metadata/homepage
@@ -0,0 +1 @@
+https://zlib.net/pigz/
diff --git a/homebrew/pigz/_metadata/name b/homebrew/pigz/_metadata/name
new file mode 100644
index 000000000..0e8197f18
--- /dev/null
+++ b/homebrew/pigz/_metadata/name
@@ -0,0 +1 @@
+Pigz
diff --git a/homebrew/pigz/_metadata/version b/homebrew/pigz/_metadata/version
new file mode 100644
index 000000000..6b4950e3d
--- /dev/null
+++ b/homebrew/pigz/_metadata/version
@@ -0,0 +1 @@
+2.4
diff --git a/homebrew/pigz/download.sh b/homebrew/pigz/download.sh
new file mode 100755
index 000000000..31e919212
--- /dev/null
+++ b/homebrew/pigz/download.sh
@@ -0,0 +1 @@
+wget https://zlib.net/pigz/pigz-2.4.tar.gz \ No newline at end of file