development/jasspa: Added (enhanced microemacs text editor)

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Ferenc Deak 2010-12-26 17:40:39 -02:00 committed by Niels Horn
parent f6791a8cc9
commit 5019fcc7b5
6 changed files with 181 additions and 0 deletions

28
development/jasspa/README Normal file
View file

@ -0,0 +1,28 @@
jasspa (enhanced microemacs text editor)
Jasspa's MicroEmacs is an Emacs editor biased towards UNIX users,
working across platforms by providing a consistent interface under
UNIX, Microsoft Windows 3.1/'95/'98/NT/2K/XP and DOS operating systems.
It features syntax highlighling, folding, multiple undo/redo, macro
languge, organizer, mailer, calendar, multiple frames and windows and
much more See it's internal help for full list of features.
Jasspa is a descendant of the original microemacs, with a lot of
additions.
About the slackbuild script:
- The official way to build jasspa is to use the script named 'build'
from the source distribution which autodetects a few things, so I use
this script, but if I use this script I have to patch linux2.gmk
and linux26.gmk.
- there is a special version called nanoemacs (ne) which is a small
macro-less minimal version, only useful for extremly minimal
installations, so I do not provide a build variant for it, because I
think it is not so useful.
- Note, that while the package contains an updated macros collection
from 2009.10.17, the version is 091011. This is intentional, the
macros collection contains some minor fixes, but according to
http://www.jasspa.com/downsrc.html: "The official baseline for 2009
is 2009.10.11 ...", so the VERSION is 091011.

View file

@ -0,0 +1,4 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View file

@ -0,0 +1,108 @@
#!/bin/sh
# Slackware build script for jasspa
#
# Copyright 2007-2010 Ferenc Deak <ferenc.deak@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=jasspa
VERSION=091011
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -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 me$VERSION
tar xzf $CWD/$PRGNAM-mesrc-20$VERSION.tar.gz
cd me$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
cd src
sed -i -e "s/\\(COPTIMISE\\s*=\\s*\\)-O3\\(.*\\)/\\1$SLKCFLAGS\\2/" linux2.gmk
sed -i -e "s/\\(COPTIMISE\\s*=\\s*\\)-O3\\(.*\\)/\\1$SLKCFLAGS\\2/" linux26.gmk
./build
install -D -m 755 me $PKG/usr/bin/me
mkdir -p $PKG/usr/share
# extract macros under /usr/share
# NOTE $PRGNAM-metree-20091017.tar.gz is newer than VERSION. This is
# intentional, the macros collection contains some minor fixes,
# but according to http://www.jasspa.com/downsrc.html: "The official
# baseline for 2009 is 2009.10.11 ...", so VERSION is 091011
tar xzf $CWD/$PRGNAM-metree-20091017.tar.gz -C $PKG/usr/share
chown -R root:root $PKG/usr/share/$PRGNAM
chmod -R u+w,go+r-w,a-s $PKG/usr/share/$PRGNAM
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# jasspa has no manpage (yet)
#find $PKG/usr/man -type f -exec gzip -9 {} \;
#for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ../{COPYING,change.log,faq.txt,license.txt,readme.txt} \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
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,10 @@
[Desktop Entry]
Name=Jasspa
Comment=Enhanced Microemacs Text Editor
Exec=me
Icon=/usr/share/jasspa/pixmaps/me_l.png
Terminal=false
Type=Application
Categories=Application;Development
StartupNotify=false
Encoding=UTF-8

View file

@ -0,0 +1,12 @@
PRGNAM="jasspa"
VERSION="091011"
HOMEPAGE="http://www.jasspa.com/"
DOWNLOAD="http://www.jasspa.com/release_20090909/jasspa-mesrc-20091011.tar.gz \
http://www.jasspa.com/release_20090909/jasspa-metree-20091017.tar.gz"
MD5SUM="a4db0f1b9bf6fd9699d13366e15305b9 \
82f250e7dbfc5ae2917230de76a24826"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Ferenc Deak"
EMAIL="ferenc.deak@gmail.com"
APPROVED="Niels Horn"

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 ':'.
|-----handy-ruler------------------------------------------------------|
jasspa: jasspa (enhanced microemacs text editor)
jasspa:
jasspa: Jasspa's MicroEmacs is an Emacs editor biased towards UNIX users,
jasspa: working across platforms by providing a consistent interface under
jasspa: UNIX, Microsoft Windows 3.1/'95/'98/NT/2K/XP and DOS operating
jasspa: systems.
jasspa: It features syntax highlighling, folding, multiple undo/redo, macro
jasspa: languge, organizer, mailer, calendar, multiple frames and windows and
jasspa: much more See it's internal help for full list of features.
jasspa:
jasspa: