diff options
Diffstat (limited to 'homebrew/aview')
-rw-r--r-- | homebrew/aview/.beer | 56 | ||||
-rw-r--r-- | homebrew/aview/.make.sh-auto | 3 | ||||
-rw-r--r-- | homebrew/aview/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/aview/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/aview/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/aview/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/aview/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/aview/patches.sh | 28 |
8 files changed, 92 insertions, 0 deletions
diff --git a/homebrew/aview/.beer b/homebrew/aview/.beer new file mode 100644 index 000000000..5434b34ad --- /dev/null +++ b/homebrew/aview/.beer @@ -0,0 +1,56 @@ +{ + "name": "Aview", + "description": "ASCII-art image browser and animation viewer", + "url": "https://downloads.sourceforge.net/aa-project/aview-1.3.0rc1.tar.gz", + "mirror": null, + "homepage": "https://aa-project.sourceforge.io/", + "depends": [ + { + "depend": "aalib", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/image.c b/image.c\n", + "index 232b838..9780e61 100644\n", + "--- a/image.c\n", + "+++ b/image.c\n", + "@@ -1,6 +1,6 @@\n", + " #include <stdio.h>\n", + " #include <unistd.h>\n", + "-#include <malloc.h>\n", + "+#include <stdlib.h>\n", + " #include \"config.h\"\n", + " \n", + " int imgwidth, imgheight;\n", + "diff --git a/ui.c b/ui.c\n", + "index d316f7a..134a4ca 100644\n", + "--- a/ui.c\n", + "+++ b/ui.c\n", + "@@ -1,6 +1,6 @@\n", + " #include <stdio.h>\n", + " #include <ctype.h>\n", + "-#include <malloc.h>\n", + "+#include <stdlib.h>\n", + " #include <string.h>\n", + " #include <aalib.h>\n", + " #include \"shrink.h\"\n", + "\n" + ] + } + ], + "install": [ + "system \"./configure\", \"--disable-debug\",", + "\"--disable-dependency-tracking\",", + "\"--prefix=#{prefix}\",", + "\"--mandir=#{man}\"", + "system \"make\", \"install\"" + ], + "version": "1.3.0", + "file": "aview.rb" +}
\ No newline at end of file diff --git a/homebrew/aview/.make.sh-auto b/homebrew/aview/.make.sh-auto new file mode 100644 index 000000000..557a9e0d1 --- /dev/null +++ b/homebrew/aview/.make.sh-auto @@ -0,0 +1,3 @@ +pkg:setup +pkg:configure --disable-dependency-tracking +make DESTDIR=${PKG_DEST} install diff --git a/homebrew/aview/_metadata/description b/homebrew/aview/_metadata/description new file mode 100644 index 000000000..8ae563ac5 --- /dev/null +++ b/homebrew/aview/_metadata/description @@ -0,0 +1 @@ +ASCII-art image browser and animation viewer diff --git a/homebrew/aview/_metadata/homepage b/homebrew/aview/_metadata/homepage new file mode 100644 index 000000000..1ed130a8d --- /dev/null +++ b/homebrew/aview/_metadata/homepage @@ -0,0 +1 @@ +https://aa-project.sourceforge.io/ diff --git a/homebrew/aview/_metadata/name b/homebrew/aview/_metadata/name new file mode 100644 index 000000000..95675dbc0 --- /dev/null +++ b/homebrew/aview/_metadata/name @@ -0,0 +1 @@ +Aview diff --git a/homebrew/aview/_metadata/version b/homebrew/aview/_metadata/version new file mode 100644 index 000000000..f0bb29e76 --- /dev/null +++ b/homebrew/aview/_metadata/version @@ -0,0 +1 @@ +1.3.0 diff --git a/homebrew/aview/download.sh b/homebrew/aview/download.sh new file mode 100755 index 000000000..79366a597 --- /dev/null +++ b/homebrew/aview/download.sh @@ -0,0 +1 @@ +wget https://downloads.sourceforge.net/aa-project/aview-1.3.0rc1.tar.gz
\ No newline at end of file diff --git a/homebrew/aview/patches.sh b/homebrew/aview/patches.sh new file mode 100755 index 000000000..c7e13637d --- /dev/null +++ b/homebrew/aview/patches.sh @@ -0,0 +1,28 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git a/image.c b/image.c +index 232b838..9780e61 100644 +--- a/image.c ++++ b/image.c +@@ -1,6 +1,6 @@ + #include <stdio.h> + #include <unistd.h> +-#include <malloc.h> ++#include <stdlib.h> + #include "config.h" + + int imgwidth, imgheight; +diff --git a/ui.c b/ui.c +index d316f7a..134a4ca 100644 +--- a/ui.c ++++ b/ui.c +@@ -1,6 +1,6 @@ + #include <stdio.h> + #include <ctype.h> +-#include <malloc.h> ++#include <stdlib.h> + #include <string.h> + #include <aalib.h> + #include "shrink.h" + +EOF |