development/diakonos: Added (advanced console text editor).

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Martin McConnell 2014-01-13 06:46:59 +07:00 committed by Erik Hanson
parent 6209cf0706
commit 444729b3de
5 changed files with 119 additions and 0 deletions

View file

@ -0,0 +1,18 @@
Diakonos is a customizable, usable console-based text editor written in Ruby.
It has been made with the intention of being easier to configure and use than
emacs, more powerful than pico and nano, and not as cryptic as vi or ex.
Features
* scripting in any language
* macro recording and playback
* multi-element clipboard
* multi-level undo
* parsed ("smart") indentation
* customizable multilingual syntax highlighting
* bookmarking, named and unnamed
* regular expression searching
* a customizable status line
* limited ctags support
* hooks
* code block selection and navigation modes
* line numbering

View file

@ -0,0 +1,56 @@
#!/bin/sh
# Slackware build script for diakonos
# Written by Phillip Warner <pc_warner@yahoo.com>
# Currently maintained by Martin McConnell <bancensorshipfriends@hotmail.com>
PRGNAM=diakonos
VERSION=${VERSION:-0.9.1}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
ruby install.rb \
--prefix /usr \
--conf-dir /etc \
--doc-dir /usr/doc/$PRGNAM-$VERSION \
--dest-dir $PKG \
--verbose
# Don't clobber existing config files
mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
# This really is not necessary.
rm $PKG/etc/diakonos-256-colour.conf
# Instead copy them to the docs folder
cp -a diakonos*.conf $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
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,11 @@
PRGNAM="diakonos"
VERSION="0.9.1"
HOMEPAGE="http://diakonos.pist0s.ca/"
DOWNLOAD="http://diakonos.pist0s.ca/archives/diakonos-0.9.1.tar.bz2"
MD5SUM="34189ee97432428c963d929ddfab79cf"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Martin McConnell"
EMAIL="bancensorshipfriends@hotmail.com"

View file

@ -0,0 +1,15 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD|md5sum)" = "$(cat $NEW|md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/diakonos.conf.new

View file

@ -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-----------------------------------------------------|
diakonos: diakonos (advanced console text editor)
diakonos:
diakonos: Diakonos is a customizable, usable console-based text editor written
diakonos: in Ruby. It has been made with the intention of being easier to
diakonos: configure and use than emacs, more powerful than pico and nano, and
diakonos: not as cryptic as vi or ex.
diakonos:
diakonos: http://purepistos.net/diakonos
diakonos:
diakonos:
diakonos: