blob: b83afb4d7fd1a1c24ae98b41fdf898e429f1722b (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 | require 'formula'
class Bsdsfv < Formula
  homepage 'http://bsdsfv.sourceforge.net/'
  url 'https://downloads.sourceforge.net/project/bsdsfv/bsdsfv/1.18/bsdsfv-1.18.tar.gz'
  sha1 '5e72c5e12bce2d5f77469d8f2425064a0ea6fc1e'
  # bug report:
  # http://sourceforge.net/tracker/?func=detail&aid=2887842&group_id=7211&atid=107211
  # Patch from MacPorts
  patch :DATA
  def install
    bin.mkpath
    inreplace 'Makefile' do |s|
      s.change_make_var! "INSTALL_PREFIX", prefix
      s.change_make_var! "INDENT", "indent"
      s.gsub! '	${INSTALL_PROGRAM} bsdsfv ${INSTALL_PREFIX}/bin', "	${INSTALL_PROGRAM} bsdsfv #{bin}/"
    end
    system "make all"
    system "make install"
  end
end
__END__
--- a/bsdsfv.c	2012-09-25 07:31:03.000000000 -0500
+++ b/bsdsfv.c	2012-09-25 07:31:08.000000000 -0500
@@ -44,5 +44,5 @@
 typedef struct sfvtable {
	char filename[FNAMELEN];
-	int crc;
+	unsigned int crc;
	int found;
 } SFVTABLE;
 |