diff options
Diffstat (limited to 'homebrew/bsdsfv')
-rw-r--r-- | homebrew/bsdsfv/.beer | 35 | ||||
-rw-r--r-- | homebrew/bsdsfv/.make.sh-auto | 6 | ||||
-rw-r--r-- | homebrew/bsdsfv/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/bsdsfv/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/bsdsfv/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/bsdsfv/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/bsdsfv/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/bsdsfv/patches.sh | 12 |
8 files changed, 58 insertions, 0 deletions
diff --git a/homebrew/bsdsfv/.beer b/homebrew/bsdsfv/.beer new file mode 100644 index 000000000..3170e459c --- /dev/null +++ b/homebrew/bsdsfv/.beer @@ -0,0 +1,35 @@ +{ + "name": "Bsdsfv", + "description": "SFV utility tools", + "url": "https://downloads.sourceforge.net/project/bsdsfv/bsdsfv/1.18/bsdsfv-1.18.tar.gz", + "mirror": null, + "homepage": "https://bsdsfv.sourceforge.io/", + "depends": [], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "--- a/bsdsfv.c\t2012-09-25 07:31:03.000000000 -0500\n", + "+++ b/bsdsfv.c\t2012-09-25 07:31:08.000000000 -0500\n", + "@@ -44,5 +44,5 @@\n", + " typedef struct sfvtable {\n", + "\tchar filename[FNAMELEN];\n", + "-\tint crc;\n", + "+\tunsigned int crc;\n", + "\tint found;\n", + " } SFVTABLE;\n" + ] + } + ], + "install": [ + "bin.mkpath", + "inreplace \"Makefile\" do |s|", + "s.change_make_var! \"INSTALL_PREFIX\", prefix", + "s.change_make_var! \"INDENT\", \"indent\"", + "s.gsub! \"\t${INSTALL_PROGRAM} bsdsfv ${INSTALL_PREFIX}/bin\", \"\t${INSTALL_PROGRAM} bsdsfv #{bin}/\"" + ], + "version": "1.18", + "file": "bsdsfv.rb" +}
\ No newline at end of file diff --git a/homebrew/bsdsfv/.make.sh-auto b/homebrew/bsdsfv/.make.sh-auto new file mode 100644 index 000000000..764716fb5 --- /dev/null +++ b/homebrew/bsdsfv/.make.sh-auto @@ -0,0 +1,6 @@ +pkg:setup +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}/" diff --git a/homebrew/bsdsfv/_metadata/description b/homebrew/bsdsfv/_metadata/description new file mode 100644 index 000000000..0bb653eb0 --- /dev/null +++ b/homebrew/bsdsfv/_metadata/description @@ -0,0 +1 @@ +SFV utility tools diff --git a/homebrew/bsdsfv/_metadata/homepage b/homebrew/bsdsfv/_metadata/homepage new file mode 100644 index 000000000..7bfde7463 --- /dev/null +++ b/homebrew/bsdsfv/_metadata/homepage @@ -0,0 +1 @@ +https://bsdsfv.sourceforge.io/ diff --git a/homebrew/bsdsfv/_metadata/name b/homebrew/bsdsfv/_metadata/name new file mode 100644 index 000000000..635851478 --- /dev/null +++ b/homebrew/bsdsfv/_metadata/name @@ -0,0 +1 @@ +Bsdsfv diff --git a/homebrew/bsdsfv/_metadata/version b/homebrew/bsdsfv/_metadata/version new file mode 100644 index 000000000..adc97d8e2 --- /dev/null +++ b/homebrew/bsdsfv/_metadata/version @@ -0,0 +1 @@ +1.18 diff --git a/homebrew/bsdsfv/download.sh b/homebrew/bsdsfv/download.sh new file mode 100755 index 000000000..bd0b8939f --- /dev/null +++ b/homebrew/bsdsfv/download.sh @@ -0,0 +1 @@ +wget https://downloads.sourceforge.net/project/bsdsfv/bsdsfv/1.18/bsdsfv-1.18.tar.gz
\ No newline at end of file diff --git a/homebrew/bsdsfv/patches.sh b/homebrew/bsdsfv/patches.sh new file mode 100755 index 000000000..ad1d0c103 --- /dev/null +++ b/homebrew/bsdsfv/patches.sh @@ -0,0 +1,12 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +--- 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; +EOF |