mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/scite: Added to 12.0 repository
This commit is contained in:
parent
0778812b65
commit
1687ee07c2
5 changed files with 146 additions and 0 deletions
9
development/scite/README
Normal file
9
development/scite/README
Normal file
|
@ -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.
|
43
development/scite/SciTEUser.properties
Normal file
43
development/scite/SciTEUser.properties
Normal file
|
@ -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
|
67
development/scite/scite.SlackBuild
Normal file
67
development/scite/scite.SlackBuild
Normal file
|
@ -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
|
8
development/scite/scite.info
Normal file
8
development/scite/scite.info
Normal file
|
@ -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"
|
19
development/scite/slack-desc
Normal file
19
development/scite/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------------------------------------------------------|
|
||||
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:
|
Loading…
Reference in a new issue