Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/427

Submitted by:   max@kruschwitz.biz (Max Kruschwitz)
Reviewed by:
Approved by:
Obtained from:

new Port: bvi.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@2397 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Felix Kronlage
Felix Kronlage committed Apr 3, 2003
1 parent 27f4826 commit 8cee05f009bc72e7c5864cc0c518b2d53c2e8388
Showing with 45 additions and 0 deletions.
  1. +23 −0 editors/bvi/Portfile
  2. +11 −0 editors/bvi/files/patch-bmore.h
  3. +11 −0 editors/bvi/files/patch-io.c
@@ -0,0 +1,23 @@
PortSystem 1.0
name bvi
version 1.3.1
platforms darwin freebsd
categories editors
maintainers max@kruschwitz.biz
description A vi-like binary file (hex)editor
long_description Bvi is a display oriented (hex)editor for binary \
files based on those of the vi(1) texteditor.

homepage http://bvi.sourceforge.net/
master_sites http://us.dl.sourceforge.net/bvi/ \
http://eu.dl.sourceforge.net/bvi/ \
ftp://us.dl.sourceforge.net/pub/sourceforge/bvi/ \
ftp://ftp.kddlabs.co.jp/sourceforge/bvi/ \
ftp://ftp.chg.ru/pub/sourceforge/bvi/

checksums md5 b9d77c57bda2e019207a1874d9bb4dea
extract.sufx .src.tar.gz
patchfiles patch-bmore.h patch-io.c
configure.type gnu
configure.args --datadir=${destroot}/${prefix}/share/${name}
install.destroot prefix=${destroot}/${prefix}
@@ -0,0 +1,11 @@
--- bmore.h.orig Mon Jan 6 04:28:07 2003
+++ bmore.h Mon Jan 6 04:28:21 2003
@@ -48,7 +48,7 @@
# include <unistd.h>
#if HAVE_NCURSES_H
# include <ncurses.h>
-# include <ncurses/term.h>
+# include <term.h>
#else
# include <curses.h>
# include <term.h>
@@ -0,0 +1,11 @@
--- io.c.orig Mon Jan 6 04:31:45 2003
+++ io.c Mon Jan 6 04:32:23 2003
@@ -158,7 +158,7 @@
filemode = ERROR;
}
} else if (S_ISREG(buf.st_mode)) {
- if ((unsigned long)buf.st_size > (unsigned long)SIZE_T_MAX) {
+ if (buf.st_size > SIZE_T_MAX) {
move(maxy, 0);
endwin();
printf("File too large\n");

0 comments on commit 8cee05f

Please sign in to comment.
You can’t perform that action at this time.