summaryrefslogtreecommitdiff
path: root/development/jasspa
diff options
context:
space:
mode:
authorFerenc Deak <ferenc.deak@gmail.com>2010-12-26 17:40:39 -0200
committerNiels Horn <niels.horn@slackbuilds.org>2010-12-27 19:22:52 -0200
commit5019fcc7b54d7ef9326a1bf903131ddf619240db (patch)
treee92d722a8e0ad75eebff6a82b21e762d4e6c621e /development/jasspa
parentf6791a8cc99406c76f01da7df1fce1538bfedb78 (diff)
downloadslackbuilds-5019fcc7b54d7ef9326a1bf903131ddf619240db.tar.gz
development/jasspa: Added (enhanced microemacs text editor)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'development/jasspa')
-rw-r--r--development/jasspa/README28
-rw-r--r--development/jasspa/doinst.sh4
-rw-r--r--development/jasspa/jasspa.SlackBuild108
-rw-r--r--development/jasspa/jasspa.desktop10
-rw-r--r--development/jasspa/jasspa.info12
-rw-r--r--development/jasspa/slack-desc19
6 files changed, 181 insertions, 0 deletions
diff --git a/development/jasspa/README b/development/jasspa/README
new file mode 100644
index 0000000000..a43db5f68f
--- /dev/null
+++ b/development/jasspa/README
@@ -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.
diff --git a/development/jasspa/doinst.sh b/development/jasspa/doinst.sh
new file mode 100644
index 0000000000..4e8ba7071d
--- /dev/null
+++ b/development/jasspa/doinst.sh
@@ -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
+
diff --git a/development/jasspa/jasspa.SlackBuild b/development/jasspa/jasspa.SlackBuild
new file mode 100644
index 0000000000..8c6ea34a8c
--- /dev/null
+++ b/development/jasspa/jasspa.SlackBuild
@@ -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}
diff --git a/development/jasspa/jasspa.desktop b/development/jasspa/jasspa.desktop
new file mode 100644
index 0000000000..665ae38c26
--- /dev/null
+++ b/development/jasspa/jasspa.desktop
@@ -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
diff --git a/development/jasspa/jasspa.info b/development/jasspa/jasspa.info
new file mode 100644
index 0000000000..554de2cf6f
--- /dev/null
+++ b/development/jasspa/jasspa.info
@@ -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"
diff --git a/development/jasspa/slack-desc b/development/jasspa/slack-desc
new file mode 100644
index 0000000000..37aa55fcc3
--- /dev/null
+++ b/development/jasspa/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 ':'.
+
+ |-----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: