2011-03-10 05:11:03 +00:00
|
|
|
class Bsdsfv < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "SFV utility tools"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://bsdsfv.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/bsdsfv/bsdsfv/1.18/bsdsfv-1.18.tar.gz"
|
|
|
|
sha256 "577245da123d1ea95266c1628e66a6cf87b8046e1a902ddd408671baecf88495"
|
2011-01-25 21:23:58 +00:00
|
|
|
|
2012-09-25 12:38:46 +00:00
|
|
|
# bug report:
|
|
|
|
# http://sourceforge.net/tracker/?func=detail&aid=2887842&group_id=7211&atid=107211
|
|
|
|
# Patch from MacPorts
|
2014-03-18 03:44:55 +00:00
|
|
|
patch :DATA
|
2012-09-25 12:38:46 +00:00
|
|
|
|
2011-01-25 21:23:58 +00:00
|
|
|
def install
|
|
|
|
bin.mkpath
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
inreplace "Makefile" do |s|
|
2011-01-25 21:23:58 +00:00
|
|
|
s.change_make_var! "INSTALL_PREFIX", prefix
|
|
|
|
s.change_make_var! "INDENT", "indent"
|
2015-08-03 12:55:31 +00:00
|
|
|
s.gsub! " ${INSTALL_PROGRAM} bsdsfv ${INSTALL_PREFIX}/bin", " ${INSTALL_PROGRAM} bsdsfv #{bin}/"
|
2011-01-25 21:23:58 +00:00
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "all"
|
|
|
|
system "make", "install"
|
2011-01-25 21:23:58 +00:00
|
|
|
end
|
|
|
|
end
|
2012-09-25 12:38:46 +00:00
|
|
|
|
|
|
|
__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;
|