summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2011-12-28 05:26:22 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-31 00:24:39 -0600
commit6b5bc4454a1e18e053e539997e36db0f6e0ce145 (patch)
treef951371c003e988433e9d13ee84ddca197f0fed7
parentc8637bac133f054e4e47e023b6f873b64811e6cc (diff)
downloadslackbuilds-6b5bc4454a1e18e053e539997e36db0f6e0ce145.tar.gz
office/juffed: Added (light qt editor)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
-rw-r--r--office/juffed/README6
-rw-r--r--office/juffed/doinst.sh3
-rw-r--r--office/juffed/juffed.SlackBuild94
-rw-r--r--office/juffed/juffed.info10
-rw-r--r--office/juffed/slack-desc19
5 files changed, 132 insertions, 0 deletions
diff --git a/office/juffed/README b/office/juffed/README
new file mode 100644
index 0000000000..59e54037f4
--- /dev/null
+++ b/office/juffed/README
@@ -0,0 +1,6 @@
+juffed (light qt editor)
+
+JuffEd is a free, cross-platform text editor for programmers and
+advanced users. Has syntax highlighting for many languages, code
+folding, find/replace using plain text and regexps, code completion,
+multiple charsets and many other useful features.
diff --git a/office/juffed/doinst.sh b/office/juffed/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/office/juffed/doinst.sh
@@ -0,0 +1,3 @@
+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/office/juffed/juffed.SlackBuild b/office/juffed/juffed.SlackBuild
new file mode 100644
index 0000000000..721357fbd6
--- /dev/null
+++ b/office/juffed/juffed.SlackBuild
@@ -0,0 +1,94 @@
+#!/bin/sh
+
+# Slackware build script for juffed
+# Written by ponce <matteo.bernardini@gmail.com>
+
+PRGNAM=juffed
+VERSION=${VERSION:-0.8.1}
+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
+
+DOCS="COPYING ChangeLog README"
+
+set -e # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/${PRGNAM}_${VERSION}.tar.?z*
+cd $PRGNAM-$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 {} \;
+
+# respect our $LIBDIRSUFFIX
+sed -i \
+ "s|\${CMAKE_INSTALL_PREFIX}/lib|\${CMAKE_INSTALL_PREFIX}/lib${LIBDIRSUFFIX}|" \
+ CMakeLists.txt
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
+
+# the binary isn't able to find libQscintilla, I guess because it should be have a link
+# in /usr/lib${LIBDIRSUFFIX}. Try a workaround with a simple wrapper that calls the
+# original binary renamed -orig.
+mv $PKG/usr/bin/$PRGNAM $PKG/usr/bin/$PRGNAM-orig
+cat <<EOF > $PKG/usr/bin/$PRGNAM
+#!/bin/sh
+export LD_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX}/qt/lib/:\${LD_LIBRARY_PATH}
+exec $PRGNAM-orig "\$@"
+EOF
+chmod +x $PKG/usr/bin/$PRGNAM
+
+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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $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/office/juffed/juffed.info b/office/juffed/juffed.info
new file mode 100644
index 0000000000..6ef98c04cf
--- /dev/null
+++ b/office/juffed/juffed.info
@@ -0,0 +1,10 @@
+PRGNAM="juffed"
+VERSION="0.8.1"
+HOMEPAGE="http://juffed.com"
+DOWNLOAD="http://downloads.sourceforge.net/juffed/juffed_0.8.1.tar.bz2"
+MD5SUM="bf012e468e22e945230e5ddb8c94d740"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="ponce"
+EMAIL="matteo.bernardini@gmail.com"
+APPROVED="Erik Hanson"
diff --git a/office/juffed/slack-desc b/office/juffed/slack-desc
new file mode 100644
index 0000000000..dd5e4f1637
--- /dev/null
+++ b/office/juffed/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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+juffed: juffed (light qt editor)
+juffed:
+juffed: JuffEd is a free, cross-platform text editor for programmers and
+juffed: advanced users. Has syntax highlighting for many languages, code
+juffed: folding, find/replace using plain text and regexps, code completion,
+juffed: multiple charsets and many other useful features.
+juffed:
+juffed: homepage: http://juffed.com
+juffed:
+juffed:
+juffed: