diff options
Diffstat (limited to 'homebrew/vip')
-rw-r--r-- | homebrew/vip/.beer | 53 | ||||
-rw-r--r-- | homebrew/vip/.make.sh-auto | 4 | ||||
-rw-r--r-- | homebrew/vip/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/vip/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/vip/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/vip/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/vip/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/vip/patches.sh | 27 |
8 files changed, 89 insertions, 0 deletions
diff --git a/homebrew/vip/.beer b/homebrew/vip/.beer new file mode 100644 index 000000000..2a49c5fc6 --- /dev/null +++ b/homebrew/vip/.beer @@ -0,0 +1,53 @@ +{ + "name": "Vip", + "description": "Program that provides for interactive editing in a pipeline", + "url": "https://www.cs.duke.edu/~des/scripts/vip", + "mirror": null, + "homepage": "https://www.cs.duke.edu/~des/vip.html", + "depends": [], + "resource": [ + { + "name": "man", + "url": "https://www.cs.duke.edu/~des/scripts/vip.man" + } + ], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/vip b/vip\n", + "index f150167..e517675 100644\n", + "--- a/vip\n", + "+++ b/vip\n", + "@@ -66,7 +66,7 @@ Usage: $PROG [ -no ] [ command ]\n", + " \t\t\totherwise stdin is used;\n", + " \"\n", + " \n", + "-: ${TMPDIR:=\"/usr/tmp\"}\t\t# where temp. files go\n", + "+: ${TMPDIR:=\"/var/tmp\"}\t\t# where temp. files go\n", + " TEMP_FILE=\"$TMPDIR/$PROG.$$\"\t# temp. file to hold data to edit\n", + " COMMAND=\"cat\"\t\t\t# default command to produce input\n", + " DFLT_ED=\"vi\"\t\t\t# default editor\n", + "@@ -81,6 +81,10 @@ case \"$SYS\" in\n", + " \t;;\n", + " \"HP-UX \"*)\n", + " \tAWK=awk\n", + "+\t;;\n", + "+ \"Darwin \"*)\n", + "+\tAWK=awk\n", + "+\t;;\n", + " esac\n", + " \n", + " #\n" + ] + } + ], + "install": [ + "bin.install \"vip\"", + "resource(\"man\").stage do", + "man1.install \"vip.man\" => \"vip.1\"" + ], + "version": "1.0-unknown", + "file": "vip.rb" +}
\ No newline at end of file diff --git a/homebrew/vip/.make.sh-auto b/homebrew/vip/.make.sh-auto new file mode 100644 index 000000000..cecaa1db4 --- /dev/null +++ b/homebrew/vip/.make.sh-auto @@ -0,0 +1,4 @@ +pkg:setup +bin.install "vip" +resource("man").stage do +man1.install "vip.man" => "vip.1" diff --git a/homebrew/vip/_metadata/description b/homebrew/vip/_metadata/description new file mode 100644 index 000000000..efd8cd272 --- /dev/null +++ b/homebrew/vip/_metadata/description @@ -0,0 +1 @@ +Program that provides for interactive editing in a pipeline diff --git a/homebrew/vip/_metadata/homepage b/homebrew/vip/_metadata/homepage new file mode 100644 index 000000000..f9eb12c7f --- /dev/null +++ b/homebrew/vip/_metadata/homepage @@ -0,0 +1 @@ +https://www.cs.duke.edu/~des/vip.html diff --git a/homebrew/vip/_metadata/name b/homebrew/vip/_metadata/name new file mode 100644 index 000000000..c05f6c542 --- /dev/null +++ b/homebrew/vip/_metadata/name @@ -0,0 +1 @@ +Vip diff --git a/homebrew/vip/_metadata/version b/homebrew/vip/_metadata/version new file mode 100644 index 000000000..88fd7f442 --- /dev/null +++ b/homebrew/vip/_metadata/version @@ -0,0 +1 @@ +1.0-unknown diff --git a/homebrew/vip/download.sh b/homebrew/vip/download.sh new file mode 100755 index 000000000..651a93dad --- /dev/null +++ b/homebrew/vip/download.sh @@ -0,0 +1 @@ +wget https://www.cs.duke.edu/~des/scripts/vip
\ No newline at end of file diff --git a/homebrew/vip/patches.sh b/homebrew/vip/patches.sh new file mode 100755 index 000000000..0a95f884a --- /dev/null +++ b/homebrew/vip/patches.sh @@ -0,0 +1,27 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git a/vip b/vip +index f150167..e517675 100644 +--- a/vip ++++ b/vip +@@ -66,7 +66,7 @@ Usage: $PROG [ -no ] [ command ] + otherwise stdin is used; + " + +-: ${TMPDIR:="/usr/tmp"} # where temp. files go ++: ${TMPDIR:="/var/tmp"} # where temp. files go + TEMP_FILE="$TMPDIR/$PROG.$$" # temp. file to hold data to edit + COMMAND="cat" # default command to produce input + DFLT_ED="vi" # default editor +@@ -81,6 +81,10 @@ case "$SYS" in + ;; + "HP-UX "*) + AWK=awk ++ ;; ++ "Darwin "*) ++ AWK=awk ++ ;; + esac + + # +EOF |