Date: Sat, 4 Mar 2000 16:41:41 +0200 (EET) From: acid@stu.cn.ua To: FreeBSD-gnats-submit@freebsd.org Subject: ports/17179: BIEW (binary viewer+editor) port Message-ID: <200003041441.QAA74461@stalker.stu.cn.ua>
next in thread | raw e-mail | index | archive | help
>Number: 17179 >Category: ports >Synopsis: BIEW (binary viewer+editor) port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Mar 4 06:50:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Michael Vasilenko >Release: FreeBSD 3.4-STABLE i386 >Organization: Chernigiv State Technological University >Environment: >Description: Biew is Binary vIEWer with built-in editor for binary, hexadecimal and disassembler modes. The program also has text viewer with different Russia codepages support (Windows-1251, MSDOS-866, etc.). Run the program with -? or without arguments for help on program switches. Port has been tested on 3.4 and 4.0-CURRENT >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # editors/biew # editors/biew/Makefile # editors/biew/files # editors/biew/files/md5 # editors/biew/patches # editors/biew/patches/patch-aa # editors/biew/patches/patch-ab # editors/biew/patches/patch-ac # editors/biew/patches/patch-ad # editors/biew/patches/patch-ae # editors/biew/patches/patch-af # editors/biew/patches/patch-ag # editors/biew/patches/patch-ah # editors/biew/pkg # editors/biew/pkg/COMMENT # editors/biew/pkg/DESCR # editors/biew/pkg/PLIST # echo c - editors/biew mkdir -p editors/biew > /dev/null 2>&1 echo x - editors/biew/Makefile sed 's/^X//' >editors/biew/Makefile << 'END-of-editors/biew/Makefile' X# New ports collection makefile for: biew X# Version required: 5.0.1 X# Date created: 04 February 2000 X# Whom: Michael Vasilenko <acid@stu.cn.ua> X# X# $FreeBSD$ X# X XDISTNAME= biew-501 XPKGNAME= biew-5.01 XCATEGORIES= editors XMASTER_SITES= ftp://biew.sourceforge.net/pub/biew/5.x/src/ \ X http://download.sourceforge.net/biew/ X XMAINTAINER= ports@FreeBSD.org X XUSE_BZIP2= yes XUSE_GMAKE= yes X X.include <bsd.port.pre.mk> X.if ${OSVERSION} < 400010 XLIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses X.endif X Xpre-build: X ln -s ${WRKSRC}/makefile ${WRKSRC}/Makefile X Xpost-build: X @ ln -s ${WRKSRC}/tools/biewhlp/makefile ${WRKSRC}/tools/biewhlp/Makefile X @ ln -s ${WRKSRC}/tools/lzss/makefile ${WRKSRC}/tools/lzss/Makefile X @ ln -s ${WRKSRC}/lib ${WRKSRC}/tools/biewhlp/lib X @ ln -s ${WRKSRC}/lib ${WRKSRC}/tools/lzss/lib X @ (cd ${WRKSRC}/tools/biewhlp;${GMAKE}) X @ (cd ${WRKSRC}/tools/lzss;${GMAKE}) X @ (cd ${WRKSRC}/hlp;ln -s ../tools/biewhlp/biewhlp ./;\ X ln -s ../tools/lzss/lzss ./;./biewhlp biewhlp.prj) X Xdo-install: X @ ${INSTALL_PROGRAM} ${WRKSRC}/biew ${PREFIX}/bin X @ ${MKDIR} ${PREFIX}/share/biew X @ ${INSTALL_DATA} ${WRKSRC}/hlp/biew.hlp ${PREFIX}/share/biew X X.include <bsd.port.post.mk> END-of-editors/biew/Makefile echo c - editors/biew/files mkdir -p editors/biew/files > /dev/null 2>&1 echo x - editors/biew/files/md5 sed 's/^X//' >editors/biew/files/md5 << 'END-of-editors/biew/files/md5' XMD5 (biew-501.tar.bz2) = b2ce070901ee1e0b2949a595bf3c087f END-of-editors/biew/files/md5 echo c - editors/biew/patches mkdir -p editors/biew/patches > /dev/null 2>&1 echo x - editors/biew/patches/patch-aa sed 's/^X//' >editors/biew/patches/patch-aa << 'END-of-editors/biew/patches/patch-aa' X--- lib/sysdep/generic/unix/os_dep.c.orig Fri Mar 3 11:08:20 2000 X+++ lib/sysdep/generic/unix/os_dep.c Sat Mar 4 14:35:49 2000 X@@ -46,7 +46,7 @@ X X char * __get_help_name(void) X { X- return "/usr/lib/biew/biew.hlp"; X+ return "/usr/local/share/biew/biew.hlp"; X } X X static void cleanup(int sig) END-of-editors/biew/patches/patch-aa echo x - editors/biew/patches/patch-ab sed 's/^X//' >editors/biew/patches/patch-ab << 'END-of-editors/biew/patches/patch-ab' X--- tools/biewhlp/biewhlp.c.orig Fri Mar 3 11:08:24 2000 X+++ tools/biewhlp/biewhlp.c Sat Mar 4 15:00:57 2000 X@@ -29,7 +29,7 @@ X BGLOBAL bOutput; X X #define BBIO_CACHE_SIZE 0x1000 X-#define ARCHIVER "lzss e" X+#define ARCHIVER "./lzss e" X #define TEMPFNAME "temp_hlp.tmp" X X void MyCallBack(IniInfo *ini) END-of-editors/biew/patches/patch-ab echo x - editors/biew/patches/patch-ac sed 's/^X//' >editors/biew/patches/patch-ac << 'END-of-editors/biew/patches/patch-ac' X--- makefile.inc.orig Fri Mar 3 11:02:14 2000 X+++ makefile.inc Sat Mar 4 15:17:21 2000 X@@ -72,7 +72,7 @@ X ### NCURSES VERSION X X USE_NCURSES = y # if system has ncurses library X-#USE_NCURSES_PSEUDO = y # ncurses pseudographics support X+USE_NCURSES_PSEUDO = y # ncurses pseudographics support X #USE_MOUSE = y # use ncurses mouse (doesnot work yet) X X ### VT100 VERSION X@@ -162,3 +162,6 @@ X #-ffunction-sections X LDFLAGS = -s $(OSLDEF) X X+#if _FreeBSD_version < 40010 X+LDFLAGS+= -L/usr/local/lib X+#endif END-of-editors/biew/patches/patch-ac echo x - editors/biew/patches/patch-ad sed 's/^X//' >editors/biew/patches/patch-ad << 'END-of-editors/biew/patches/patch-ad' X--- makefile.orig Fri Mar 3 12:33:02 2000 X+++ makefile Sat Mar 4 15:41:12 2000 X@@ -51,6 +51,9 @@ X ########################################################################## X X INCS = -I. -I./lib -I./lib/sysdep -I./plugins/bin -I./plugins/mod X+#if __FreeBSD_version < 400010 X+INCS += -I/usr/local/include X+#endif X LIBS = $(OS_LIBS) X OBJS = \ X addendum.o\ END-of-editors/biew/patches/patch-ad echo x - editors/biew/patches/patch-ae sed 's/^X//' >editors/biew/patches/patch-ae << 'END-of-editors/biew/patches/patch-ae' X--- lib/sysdep/generic/unix/kbd_code.h Fri Mar 3 11:02:00 2000 X+++ lib/sysdep/generic/unix/kbd_code.h Sat Mar 4 15:59:28 2000 X@@ -58,8 +58,11 @@ X */ X X #ifdef HAVE_NCURSES X- X+#if defined(__FreeBSD__) && __FreeBSD_version < 400010 X+#include <ncurses/curses.h> X+#else X #include <curses.h> X+#endif X X /* X All non-symbol keys (function keys, arrows, etc) must be xx00 END-of-editors/biew/patches/patch-ae echo x - editors/biew/patches/patch-af sed 's/^X//' >editors/biew/patches/patch-af << 'END-of-editors/biew/patches/patch-af' X--- lib/sysdep/generic/unix/keyboard.c Fri Mar 3 11:08:20 2000 X+++ lib/sysdep/generic/unix/keyboard.c Sat Mar 4 15:36:23 2000 X@@ -25,7 +25,11 @@ X X #ifdef HAVE_NCURSES X X+#if defined(__FreeBSD__) && __FreeBSD_version < 400010 X+#include <ncurses/curses.h> X+#else X #include <curses.h> X+#endif X X #ifdef HAVE_MOUSE X #include <limits.h> END-of-editors/biew/patches/patch-af echo x - editors/biew/patches/patch-ag sed 's/^X//' >editors/biew/patches/patch-ag << 'END-of-editors/biew/patches/patch-ag' X--- lib/sysdep/generic/unix/mouse.c Fri Mar 3 11:08:20 2000 X+++ lib/sysdep/generic/unix/mouse.c Sat Mar 4 15:44:04 2000 X@@ -19,7 +19,11 @@ X #include <string.h> X X #ifdef HAVE_NCURSES X+#if defined (__FreeBSD__) &&__FreeBSD_version < 400010 X+#include <ncurses/curses.h> X+#else X #include <curses.h> X+#endif X #endif X X #ifdef HAVE_MOUSE END-of-editors/biew/patches/patch-ag echo x - editors/biew/patches/patch-ah sed 's/^X//' >editors/biew/patches/patch-ah << 'END-of-editors/biew/patches/patch-ah' X--- lib/sysdep/generic/unix/vio.c Fri Mar 3 11:08:20 2000 X+++ lib/sysdep/generic/unix/vio.c Sat Mar 4 15:36:46 2000 X@@ -32,8 +32,11 @@ X #define VMAX_Y 100 X X #ifdef HAVE_NCURSES X- X+#if defined(__FreeBSD__) && __FreeBSD_version < 400010 X+#include <ncurses/curses.h> X+#else X #include <curses.h> X+#endif X X const static int __ncurses_color[8] = { X COLOR_BLACK, END-of-editors/biew/patches/patch-ah echo c - editors/biew/pkg mkdir -p editors/biew/pkg > /dev/null 2>&1 echo x - editors/biew/pkg/COMMENT sed 's/^X//' >editors/biew/pkg/COMMENT << 'END-of-editors/biew/pkg/COMMENT' XBinary vIEWer + editor for binary, hexadecimal and dis-asm modes. END-of-editors/biew/pkg/COMMENT echo x - editors/biew/pkg/DESCR sed 's/^X//' >editors/biew/pkg/DESCR << 'END-of-editors/biew/pkg/DESCR' X Biew is Binary vIEWer with built-in editor for binary, Xhexadecimal and disassembler modes. The program also has text viewer Xwith different Russia codepages support (Windows-1251, MSDOS-866, Xetc.). Run the program with -? or without arguments for help on Xprogram switches. END-of-editors/biew/pkg/DESCR echo x - editors/biew/pkg/PLIST sed 's/^X//' >editors/biew/pkg/PLIST << 'END-of-editors/biew/pkg/PLIST' Xbin/biew Xshare/biew/biew.hlp END-of-editors/biew/pkg/PLIST exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003041441.QAA74461>