# GtkSourceView
# =============
# Slackware 9.1's 'gedit' package includes gtksourceview 0.6.0, 9.0's just
# includes gedit itself, and 10.0 and 10.1's include gtksourceview 1.0.1
# As of Slackware 10.2, Gnome is no longer included (and neither is gedit).
# If you plan on replacing the Slackware package, you should 'removepkg
# gedit', then run through this howto, then reinstall gedit.
# I include two releases below, 1.0.x and 1.4.x, both for different Gnome
# releases. I will keep both updated, but keep in mind that I only use
# the Gnome 2.12.x version.
# If you ever want to uninstall GtkSourceView, cd into the source directory,
# run 'make uninstall', remove the source directory, and remove the tarball.
# GtkSourceView 1.0.1 (for Gnome 2.6.x, 2.8.x, or 2.10.x)
# ===================
# Prerequisites:
# gawk
# sed
# grep
# intltool >= 0.30
# perl
# glib
# pkg-config
# gtk+-2.0 >= 2.4.0
# libxml-2.0 >= 2.5.0
# libgnomeprint-2.2 >= 2.2.0
# gnome-vfs-2.0 >= 2.2.0
# libgnomeprintui-2.2 >= 2.2.0
# gettext
# gtk-doc >= 1.0 (Slack 9.0 includes 'sgml-tools' in extra, 9.1, 10.0, 10.1,
# and 10.2 include it as a regular package in 'ap', they're all version
# 1.0.9)
cd
test -f installed/gtksourceview-1.0.1.tar.bz2 &&
mv installed/gtksourceview-1.0.1.tar.bz2 .
test ! -f gtksourceview-1.0.1.tar.bz2 &&
wget http://ftp.gnome.org/pub/gnome/sources/gtksourceview/1.0/\
gtksourceview-1.0.1.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gtksourceview-*" -exec rm -r {} \;
tar xjvf ~/gtksourceview-1.0.1.tar.bz2
cd gtksourceview-1.0.1
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
--enable-gtk-doc
## If make fails with an error like this:
# /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:
# cannot find -lssl
## re-run make like this:
# make LDFLAGS=-L/usr/local/ssl/lib
make
# Become root to install it
su
rm -f /usr/lib/libgtksourceview-1.*
make install
ldconfig
find /usr/share/locale -type f -name "gtksourceview-1.0.mo" -exec rm {} \;
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gtksourceview-*" -exec rm -r {} \;
tar xjvf ~/gtksourceview-1.4.2.tar.bz2
cd gtksourceview-1.4.2
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib \
--enable-gtk-doc
## If make fails with an error like this:
# /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:
# cannot find -lssl
## re-run make like this:
# make LDFLAGS=-L/usr/local/ssl/lib
make
# Become root to install it
su
rm -f /usr/lib/libgtksourceview-1.*
make install
ldconfig
find /usr/share/locale -type f -name "gtksourceview-1.0.mo" -exec rm {} \;