diff options
| author | Austin Seipp | 2012-09-17 01:23:34 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-20 22:42:58 -0700 |
| commit | 4644b2f8e92321f3c673e906f3d5846a39fcd89d (patch) | |
| tree | 3d5b4f8891aa8eb917cf8e7fddf8f925c4b92daf /Library/Formula | |
| parent | e137f0e1fc6a13e42510e1cd4fae3818f442a49c (diff) | |
| download | homebrew-4644b2f8e92321f3c673e906f3d5846a39fcd89d.tar.bz2 | |
pxz v4.999.9beta
Closes #14979.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pxz.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/pxz.rb b/Library/Formula/pxz.rb new file mode 100644 index 000000000..8a590c215 --- /dev/null +++ b/Library/Formula/pxz.rb @@ -0,0 +1,34 @@ +require 'formula' + +class Pxz < Formula + homepage 'http://jnovy.fedorapeople.org/pxz/' + url 'http://jnovy.fedorapeople.org/pxz/pxz-4.999.9beta.20091201git.tar.xz' + version '4.999.9' + sha1 'fe352d3e076183be95609497b1102a5a49a65b4f' + + depends_on 'xz' + + def patches + DATA # Fixes usage of MAP_POPULATE for mmap (linux only) + end + + def install + system "make", "CC=#{ENV.cc}" + bin.install 'pxz' + end +end + +__END__ +diff --git a/pxz.c b/pxz.c +index b54f3fc..3e7e86a 100644 +--- a/pxz.c ++++ b/pxz.c +@@ -259,7 +259,7 @@ int main( int argc, char **argv ) { + exit(EXIT_FAILURE); + } + +- m = mmap(NULL, s.st_size, PROT_READ, MAP_SHARED|MAP_POPULATE, fileno(f), 0); ++ m = mmap(NULL, s.st_size, PROT_READ, MAP_SHARED, fileno(f), 0); + if (m == MAP_FAILED) { + perror("mmap failed"); + exit(EXIT_FAILURE); |
