diff options
author | B. Watson <yalhcru@gmail.com> | 2020-11-20 13:27:23 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-11-22 01:14:17 +0700 |
commit | 2c6182031bb3bdf1965914247103b255abbb8f62 (patch) | |
tree | fc188dd9a511b966ef35bd7573baa21c94090794 /development/bviplus | |
parent | 8507c11e5a57715c9078eabd9d64b3995e1f6504 (diff) |
development/bviplus: Added (hex editor with vi-style UI)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/bviplus')
-rw-r--r-- | development/bviplus/README | 16 | ||||
-rw-r--r-- | development/bviplus/bviplus.1 | 77 | ||||
-rw-r--r-- | development/bviplus/bviplus.SlackBuild | 78 | ||||
-rw-r--r-- | development/bviplus/bviplus.info | 10 | ||||
-rw-r--r-- | development/bviplus/bviplus.rst | 68 | ||||
-rw-r--r-- | development/bviplus/slack-desc | 19 |
6 files changed, 268 insertions, 0 deletions
diff --git a/development/bviplus/README b/development/bviplus/README new file mode 100644 index 000000000000..664ae4bfa363 --- /dev/null +++ b/development/bviplus/README @@ -0,0 +1,16 @@ +bviplus (hex editor with vi-style user interface) + +Bviplus is an ncurses based hex editor with a vim-like interface. It +was originally a fork of Binary VIsual editor (bvi) by Gerhard +Burgmann, but has now been completely rewritten (since version 0.3). + +Additions include: + - Quickly open/edit/save very large files + - Search highlighting + - Multiple undo/redo + - Visual select + - Cut/paste (works between files as well) + - Multiple file tabbed interface + - Run external programs on selected data + - Blob coloring + - And much more to come. diff --git a/development/bviplus/bviplus.1 b/development/bviplus/bviplus.1 new file mode 100644 index 000000000000..3a91d9574e53 --- /dev/null +++ b/development/bviplus/bviplus.1 @@ -0,0 +1,77 @@ +.\" Man page generated from reStructuredText. +. +.TH BVIPLUS 1 "2020-11-16" "1.0" "SlackBuilds.org" +.SH NAME +bviplus \- hex editor with vi-style user interface +. +.nr rst2man-indent-level 0 +. +.de1 rstReportMargin +\\$1 \\n[an-margin] +level \\n[rst2man-indent-level] +level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] +- +\\n[rst2man-indent0] +\\n[rst2man-indent1] +\\n[rst2man-indent2] +.. +.de1 INDENT +.\" .rstReportMargin pre: +. RS \\$1 +. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] +. nr rst2man-indent-level +1 +.\" .rstReportMargin post: +.. +.de UNINDENT +. RE +.\" indent \\n[an-margin] +.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] +.nr rst2man-indent-level -1 +.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] +.in \\n[rst2man-indent\\n[rst2man-indent-level]]u +.. +.\" RST source for bviplus(1) man page. Convert with: +. +.\" rst2man.py bviplus.rst > bviplus.1 +. +.\" rst2man.py comes from the SBo development/docutils package. +. +.SH SYNOPSIS +.sp +bviplus [ [\fIfile\fP] ... ] +.SH DESCRIPTION +.sp +Bviplus is an ncurses based hex editor with a vim\-like interface. It +was originally a fork of Binary VIsual editor (bvi) by Gerhard +Burgmann, but has now been completely rewritten (since version 0.3). +.sp +There are no command\-line options. For usage instructions, enter +":help" from within \fBbviplus\fP\&. +.SH FILES +.INDENT 0.0 +.TP +.B \fB~/.bviplusrc\fP +Startup script for \fBbviplus\fP, as described in the help. +.UNINDENT +.SH BUGS +.sp +Running \fBbviplus\fP with a nonexistant filename will always create the +file, even if the :w (write) command is never used. This, combined +with the fact that there are no options, may result in empty files +named things like \fI\-\-help\fP or \fI\-h\fP\&. +.SH COPYRIGHT +.sp +See the file /usr/doc/bviplus\-1.0/COPYING for license information. +.SH AUTHORS +.sp +bviplus was written by David Kelley. +.sp +This man page written for the SlackBuilds.org project +by B. Watson, and is licensed under the WTFPL. +.SH SEE ALSO +.sp +bvi(1), hexer(1), vim(1), xxd(1), vi(1) +.sp +The bviplus homepage: \fI\%http://bviplus.sourceforge.net/\fP +.\" Generated by docutils manpage writer. +. diff --git a/development/bviplus/bviplus.SlackBuild b/development/bviplus/bviplus.SlackBuild new file mode 100644 index 000000000000..9fc8faa0b2df --- /dev/null +++ b/development/bviplus/bviplus.SlackBuild @@ -0,0 +1,78 @@ +#!/bin/sh + +# Slackware build script for bviplus + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=bviplus +VERSION=${VERSION:-1.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tgz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +# Fix compile failure: +sed -i 's,\<inline\>,,' *.c *.h + +# Fix warning: +sed -i '/int *is_bin(c)/s,\<c\>,int c,' key_handler.c + +# Quiet debug output at startup: +sed -i '/printf.*argv\[%d\]/d' main.c + +make V=1 EXTRA_CFLAGS="-Wall -Wno-unused $SLKCFLAGS -Wl,-s" +mkdir -p $PKG/usr/bin +cp -a $PRGNAM $PKG/usr/bin + +# man page by SlackBuild author +mkdir -p $PKG/usr/man/man1 +gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/bviplus/bviplus.info b/development/bviplus/bviplus.info new file mode 100644 index 000000000000..dc8f0ad6ed75 --- /dev/null +++ b/development/bviplus/bviplus.info @@ -0,0 +1,10 @@ +PRGNAM="bviplus" +VERSION="1.0" +HOMEPAGE="http://bviplus.sourceforge.net/" +DOWNLOAD="https://downloads.sourceforge.net/project/bviplus/bviplus/1.0/bviplus-1.0.tgz" +MD5SUM="7e9f588679ecd200c64881396c302b8b" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/development/bviplus/bviplus.rst b/development/bviplus/bviplus.rst new file mode 100644 index 000000000000..94a10041d64a --- /dev/null +++ b/development/bviplus/bviplus.rst @@ -0,0 +1,68 @@ +.. RST source for bviplus(1) man page. Convert with: +.. rst2man.py bviplus.rst > bviplus.1 +.. rst2man.py comes from the SBo development/docutils package. + +.. |version| replace:: 1.0 +.. |date| date:: + +======= +bviplus +======= + +--------------------------------------- +hex editor with vi-style user interface +--------------------------------------- + +:Manual section: 1 +:Manual group: SlackBuilds.org +:Date: |date| +:Version: |version| + +SYNOPSIS +======== + +bviplus [ [*file*] ... ] + +DESCRIPTION +=========== + +Bviplus is an ncurses based hex editor with a vim-like interface. It +was originally a fork of Binary VIsual editor (bvi) by Gerhard +Burgmann, but has now been completely rewritten (since version 0.3). + +There are no command-line options. For usage instructions, enter +":help" from within **bviplus**. + +FILES +===== + +**~/.bviplusrc** + Startup script for **bviplus**, as described in the help. + +BUGS +==== + +Running **bviplus** with a nonexistant filename will always create the +file, even if the :w (write) command is never used. This, combined +with the fact that there are no options, may result in empty files +named things like *--help* or *-h*. + +COPYRIGHT +========= + +See the file /usr/doc/bviplus-|version|/COPYING for license information. + +AUTHORS +======= + +bviplus was written by David Kelley. + +This man page written for the SlackBuilds.org project +by B. Watson, and is licensed under the WTFPL. + +SEE ALSO +======== + +bvi(1), hexer(1), vim(1), xxd(1), vi(1) + +The bviplus homepage: http://bviplus.sourceforge.net/ diff --git a/development/bviplus/slack-desc b/development/bviplus/slack-desc new file mode 100644 index 000000000000..30b1e0a97735 --- /dev/null +++ b/development/bviplus/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +bviplus: bviplus (hex editor with vi-style user interface) +bviplus: +bviplus: Bviplus is an ncurses based hex editor with a vim-like interface. It +bviplus: was originally a fork of Binary VIsual editor (bvi) by Gerhard +bviplus: Burgmann, but has now been completely rewritten (since version 0.3). +bviplus: +bviplus: +bviplus: +bviplus: +bviplus: +bviplus: |