summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
Diffstat (limited to 'development')
-rw-r--r--development/scite/README9
-rw-r--r--development/scite/SciTEUser.properties43
-rw-r--r--development/scite/scite.SlackBuild67
-rw-r--r--development/scite/scite.info8
-rw-r--r--development/scite/slack-desc19
5 files changed, 146 insertions, 0 deletions
diff --git a/development/scite/README b/development/scite/README
new file mode 100644
index 0000000000..d2201cdc33
--- /dev/null
+++ b/development/scite/README
@@ -0,0 +1,9 @@
+SciTE is a SCIntilla based Text Editor. Originally built to demonstrate
+Scintilla, it has grown to be a generally useful editor with facilities
+for building and running programs. It is best used for jobs with simple
+configurations.
+
+There is an example configuration file (SciTEUser.properties) provided
+with the tarball. If you'd like to use it (at your own risk), learn the
+different options, rename it to .SciTEUser.properties and place it under
+your user's home directory.
diff --git a/development/scite/SciTEUser.properties b/development/scite/SciTEUser.properties
new file mode 100644
index 0000000000..a654cc15be
--- /dev/null
+++ b/development/scite/SciTEUser.properties
@@ -0,0 +1,43 @@
+if PLAT_GTK
+ position.left=0
+ position.top=0
+position.width=1015
+position.height=717
+
+minimize.to.tray=1
+
+horizontal.scrollbar=1
+horizontal.scroll.width=700
+
+tabbar.visible=1
+statusbar.visible=1
+check.if.already.open=1
+
+tabsize=3
+indent.size=3
+
+autocompleteword.automatic=1
+
+# if you want to be able to edit Unicode files, uncomment this:
+#code.page=65001
+#LC_CTYPE=en_US.UTF-8
+
+if PLAT_GTK
+ font.base=font:!Bitstream Vera Sans Mono,size:12
+ # font.base=font:Arial,size:12
+ font.small=$(font.base)
+ font.comment=$(font.base)
+ font.code.comment.box=$(font.comment)
+ font.code.comment.line=$(font.comment)
+ font.code.comment.doc=$(font.comment)
+ font.text=$(font.base)
+ font.text.comment=$(font.base)
+ font.embedded.base=$(font.base)
+ font.embedded.comment=$(font.base)
+ font.monospace=$(font.base)
+ font.vbs=$(font.base)
+font.js=$(font.comment)
+
+comment.block.hypertext=//~
+comment.block.sql=--~
+xml.auto.close.tags=1
diff --git a/development/scite/scite.SlackBuild b/development/scite/scite.SlackBuild
new file mode 100644
index 0000000000..83fb60f873
--- /dev/null
+++ b/development/scite/scite.SlackBuild
@@ -0,0 +1,67 @@
+#!/bin/sh
+
+# Slackware build script for SciTE
+# Written by Iskar Enev <iskar.enev[@]gmail.com>
+
+PRGNAM=scite
+VERSION=1.75
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf scite/ scintilla/
+tar xvf $CWD/${PRGNAM}$(echo $VERSION | tr -d .).tgz
+chown -R root:root scite/ scintilla/
+chmod -R u+w,go+r-w,a-s scite/ scintilla/
+
+# Build Scintilla first
+cd $TMP/scintilla/gtk
+sed -i "s%CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -pedantic -Os %CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -pedantic %" makefile
+sed -i "s%CXXFLAGS=-DNDEBUG -Os %CXXFLAGS=-DNDEBUG $SLKCFLAGS %" makefile
+make prefix=/usr
+
+cd $TMP/scite/gtk
+sed -i "s%CXXBASEFLAGS=-W -Wall -Wno-char-subscripts -pedantic -Os %CXXBASEFLAGS=-W -Wall -Wno-char-subscripts -pedantic %" makefile
+sed -i "s%CXXTFLAGS=-DNDEBUG -Os %CXXTFLAGS=-DNDEBUG $SLKCFLAGS %" makefile
+sed -i "s%INSTALL=install -o root -g root%INSTALL=install%" makefile
+make prefix=/usr
+make install DESTDIR=$PKG
+
+( cd $PKG/usr/bin ; ln -sf SciTE scite )
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+cd $TMP/scite
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
+cp -a README License.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $PKG/usr/share/scite/*.html $PKG/usr/share/scite/*.png \
+ $PKG/usr/doc/$PRGNAM-$VERSION/html
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/usr/man/man1
+cat doc/scite.1 | gzip -9c > $PKG/usr/man/man1/scite.1.gz
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/development/scite/scite.info b/development/scite/scite.info
new file mode 100644
index 0000000000..f2e536e6a8
--- /dev/null
+++ b/development/scite/scite.info
@@ -0,0 +1,8 @@
+PRGNAM="scite"
+VERSION="1.75"
+HOMEPAGE="http://scintilla.org/SciTE.html"
+DOWNLOAD="http://downloads.sourceforge.net/scintilla/scite175.tgz"
+MD5SUM="18a4525c4962f1cdbd298a379cc865b7"
+MAINTAINER="Iskar Enev"
+EMAIL="<iskar.enev[@]gmail.com>"
+APPROVED="rworkman"
diff --git a/development/scite/slack-desc b/development/scite/slack-desc
new file mode 100644
index 0000000000..3ea6a0bfee
--- /dev/null
+++ b/development/scite/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------------------------------------------------------|
+scite: SciTE (SCIntilla based Text Editor)
+scite:
+scite: SciTE is a SCIntilla based Text Editor. Originally built to
+scite: demonstrate Scintilla, it has grown to be a generally useful
+scite: editor with facilities for building and running programs.
+scite:
+scite:
+scite:
+scite:
+scite:
+scite: