diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-07-02 07:46:46 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-07-02 07:46:46 -0500 |
commit | e59713189d604d5a294fc7e417a5ed68b809f34e (patch) | |
tree | 430052465d8a2549fcfc06cb39979b08d24ca046 | |
parent | 5e8dce29b4b6f64c5abea2c033f29adaf8780912 (diff) |
development/medit: Added (text editor)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r-- | development/medit/README | 3 | ||||
-rw-r--r-- | development/medit/doinst.sh | 10 | ||||
-rw-r--r-- | development/medit/help-path.patch | 10 | ||||
-rw-r--r-- | development/medit/medit.SlackBuild | 97 | ||||
-rw-r--r-- | development/medit/medit.info | 10 | ||||
-rw-r--r-- | development/medit/slack-desc | 19 |
6 files changed, 149 insertions, 0 deletions
diff --git a/development/medit/README b/development/medit/README new file mode 100644 index 0000000000000..6d8d37d41c76a --- /dev/null +++ b/development/medit/README @@ -0,0 +1,3 @@ +medit - it started originally as a simple built-in editor component in GGAP, +it grew up to a real text editor. The intention now is to make it a useful +programming and around-programming text editor. diff --git a/development/medit/doinst.sh b/development/medit/doinst.sh new file mode 100644 index 0000000000000..9f1846bc38ccf --- /dev/null +++ b/development/medit/doinst.sh @@ -0,0 +1,10 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications &> /dev/null +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/development/medit/help-path.patch b/development/medit/help-path.patch new file mode 100644 index 0000000000000..2685125a8de1c --- /dev/null +++ b/development/medit/help-path.patch @@ -0,0 +1,10 @@ +--- medit-0.10.4/config-dirs.h.in 2010-04-29 03:43:23.000000000 -0300 ++++ medit-0.10.4_patched/config-dirs.h.in 2010-06-27 22:04:27.000000000 -0300 +@@ -6,6 +6,6 @@ + #define MOO_DATA_DIR "@MOO_DATA_DIR_ABS@" + #define MOO_LIB_DIR "@MOO_LIB_DIR_ABS@" + #define MOO_LOCALE_DIR "@LOCALEDIR_ABS@" +-#define MOO_HELP_DIR "@MOO_HELP_DIR_ABS@" ++#define MOO_HELP_DIR "@MOO_HELP_DIR@" + + #endif /* CONFIG_DIRS_H */ diff --git a/development/medit/medit.SlackBuild b/development/medit/medit.SlackBuild new file mode 100644 index 0000000000000..ac3d5e473021a --- /dev/null +++ b/development/medit/medit.SlackBuild @@ -0,0 +1,97 @@ +#!/bin/sh +# +# Slackware build script for medit +# +# Copyright 2009-2010 Erik W. Hanson, Minneapolis, MN, USA +# 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=medit +VERSION=${VERSION:-0.10.4} +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} + +set -eu + +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 + +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 . +chmod -R u+w,go+r-w,a-s . + +patch -p1 < $CWD/help-path.patch + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DMANDIR=/usr/man \ + -DMOO_DOC_DIR=/usr/doc/$PRGNAM-$VERSION \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install/strip DESTDIR=$PKG +cd .. + +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 AUTHORS COPYING* INSTALL LICENSE NEWS README THANKS \ + $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} diff --git a/development/medit/medit.info b/development/medit/medit.info new file mode 100644 index 0000000000000..f2fafa5cf0bb2 --- /dev/null +++ b/development/medit/medit.info @@ -0,0 +1,10 @@ +PRGNAM="medit" +VERSION="0.10.4" +HOMEPAGE="http://mooedit.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/mooedit/medit-0.10.4.tar.bz2" +MD5SUM="5cfaab52303c0c8a7911ee3c39197136" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Erik Hanson" +EMAIL="erik@slackbuilds.org" +APPROVED="rworkman" diff --git a/development/medit/slack-desc b/development/medit/slack-desc new file mode 100644 index 0000000000000..41836df958507 --- /dev/null +++ b/development/medit/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------------------------------------------------------| +medit: medit (Multiplatform GTK text editor) +medit: +medit: It features: Configurable syntax highlighting, keyboard accelerators, +medit: and tools available from the main and context menus that can be written +medit: in Python, MooScript (simple builtin scripting lanugage) or shell +medit: script. Plugins can be written in C or Python. Incremental search, +medit: regular expression search/replace, grep and find frontends, builtin +medit: file selector and whatnot. +medit: +medit: http://mooedit.sourceforge.net/ +medit: |