mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
development/mg-troglobit: Added (Emacs-like Editor).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
4cfed7ece1
commit
35d4cbec72
6 changed files with 153 additions and 0 deletions
21
development/mg-troglobit/LICENSE
Normal file
21
development/mg-troglobit/LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2019 Marco Marini
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
9
development/mg-troglobit/README
Normal file
9
development/mg-troglobit/README
Normal file
|
@ -0,0 +1,9 @@
|
|||
mg-troglobit (Portable self hosting version of the mg-openbsd editor)
|
||||
|
||||
The intention is to be a small, fast, and portable Emacs-like editor
|
||||
for users who cannot, or do not want to, run the real Emacs for one
|
||||
reason or another.
|
||||
|
||||
Compatibility with GNU Emacs is key for Mg, separating it from other
|
||||
ErsatzEmacs clones, because there should never be any reason to learn
|
||||
more than one Emacs flavor.
|
9
development/mg-troglobit/README.md
Normal file
9
development/mg-troglobit/README.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# mg-troglobit.SlackBuild
|
||||
|
||||
A SlackBuild for Joachim Nilsson (troglobit)'s fork of OpenBSD Mg (https://github.com/troglobit/mg)
|
||||
|
||||
The usage is the very same of https://slackbuilds.org/howto/
|
||||
|
||||
Get the Mg source code here: https://ftp.troglobit.com/mg/
|
||||
|
||||
![Mg-troglobit on Slackware 14.0](https://i.postimg.cc/jdHmCKhz/mg-troglobit.png "Mg-troglobit on Slackware 14.0")
|
85
development/mg-troglobit/mg-troglobit.SlackBuild
Normal file
85
development/mg-troglobit/mg-troglobit.SlackBuild
Normal file
|
@ -0,0 +1,85 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# Slackware build script for Joachim Nilsson (troglobit)'s fork of OpenBSD Mg
|
||||
# saidone@saidone.org revision date 2019/08/11
|
||||
# license (of this script and its accessories, not that of the application it will package): see LICENSE
|
||||
|
||||
PRGNAM=mg-troglobit
|
||||
VERSION=${VERSION:-3.2}
|
||||
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 -Wno-unused-result"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -Wno-unused-result"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC -Wno-unused-result"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2 -Wno-unused-result"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/${PRGNAM/troglobit/}$VERSION.tar.gz
|
||||
mv ${PRGNAM/troglobit/}$VERSION $PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
# override SLKCFLAGS if CFLAGS is set
|
||||
if [ -n "$(echo $CFLAGS|tr -d '[:space:]')" ]; then SLKCFLAGS="$CFLAGS"; fi
|
||||
|
||||
SLKCFLAGS="$SLKCFLAGS -lcurses"
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
make
|
||||
|
||||
make install PREFIX=/usr DESTDIR=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
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
|
||||
|
||||
rm $PKG/usr/doc/$PRGNAM-$VERSION/*.md
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
10
development/mg-troglobit/mg-troglobit.info
Normal file
10
development/mg-troglobit/mg-troglobit.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="mg-troglobit"
|
||||
VERSION="3.2"
|
||||
HOMEPAGE="https://github.com/troglobit/mg"
|
||||
DOWNLOAD="https://ftp.troglobit.com/mg/mg-3.2.tar.gz"
|
||||
MD5SUM="59ef99ebdb738e804e752d1586abed73"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Marco Marini"
|
||||
EMAIL="saidone@saidone.org"
|
19
development/mg-troglobit/slack-desc
Normal file
19
development/mg-troglobit/slack-desc
Normal 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------------------------------------------------------|
|
||||
mg-troglobit: mg-troglobit (Portable self hosting version of the mg-openbsd editor)
|
||||
mg-troglobit:
|
||||
mg-troglobit: The intention is to be a small, fast, and portable Emacs-like editor
|
||||
mg-troglobit: for users who cannot, or do not want to, run the real Emacs for one
|
||||
mg-troglobit: reason or another.
|
||||
mg-troglobit:
|
||||
mg-troglobit: Compatibility with GNU Emacs is key for Mg, separating it from other
|
||||
mg-troglobit: ErsatzEmacs clones, because there should never be any reason to learn
|
||||
mg-troglobit: more than one Emacs flavor.
|
||||
mg-troglobit:
|
||||
mg-troglobit: homepage: https://github.com/troglobit/mg
|
Loading…
Reference in a new issue