summaryrefslogtreecommitdiffstats
path: root/source/x/scim/scim.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/scim/scim.SlackBuild')
-rwxr-xr-xsource/x/scim/scim.SlackBuild83
1 files changed, 21 insertions, 62 deletions
diff --git a/source/x/scim/scim.SlackBuild b/source/x/scim/scim.SlackBuild
index d03adc6e6..816a50018 100755
--- a/source/x/scim/scim.SlackBuild
+++ b/source/x/scim/scim.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Copyright 2006, 2007, 2008 Eric Hameleers, Eindhoven, NL
-# Copyright 2008, 2009, 2011, 2012 Patrick J. Volkerding, Sebeka, MN USA
+# Copyright 2008, 2009, 2011, 2012, 2013 Patrick J. Volkerding, Sebeka, MN USA
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -35,7 +35,7 @@
PKGNAM=scim
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-4}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -90,14 +90,15 @@ echo Building ...
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --localstatedir=/var \
- --sysconfdir=/etc \
- --disable-static \
- --with-gtk-version=2 \
- --program-prefix= \
- --program-suffix= \
- --build=$ARCH-slackware-linux
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --disable-static \
+ --with-gtk-version=2 \
+ --with-qt4-im-module-dir=/usr/lib${LIBDIRSUFFIX}/qt/plugins/inputmethods \
+ --program-prefix= \
+ --program-suffix= \
+ --build=$ARCH-slackware-linux || exit 1
make $NUMJOBS || make || exit 1
make DESTDIR=$PKG install || exit 1
@@ -120,20 +121,15 @@ cat <<EOT > $PKG/etc/profile.d/scim.sh.new
if [ -x /usr/bin/scim ]; then
# Enable legacy X applications to use scim:
export XMODIFIERS="@im=SCIM"
- ## Enable Qt/KDE applications to use scim (not working with kde4):
- #export QT_IM_MODULE="scim"
+ # Let GTK applications like Firefox/Thunderbird use scim as
+ # default immodule:
+ export GTK_IM_MODULE="scim"
+ # Enable Qt/KDE applications to use scim:
+ export QT_IM_MODULE="scim"
# Make scim start automatically if the "magic key" Ctrl-Space is pressed:
export XIM_PROGRAM="/usr/bin/scim -d"
fi
-if [ -x /usr/bin/scim-bridge ]; then
- # Let GTK applications like Firefox/Thunderbird use scim-bridge as
- # default immodule:
- export GTK_IM_MODULE="scim-bridge"
- # Enable Qt4/KDE4 applications to use scim:
- export QT_IM_MODULE="scim-bridge"
-fi
-
# This ensures scim starts when you logon.
# This will only work if you login through runlevel 4 (graphical login)!!!
# Better is to have it start through Ctrl-Space like configured higher up ^^.
@@ -141,21 +137,6 @@ fi
# /usr/bin/scim -d
#fi
-# GTK+ environments such as XFce should support SCIM automatically, BUT
-# if the first app you run is a Qt one, you'll run into problems. This
-# can be avoided by going into Menu -> Settings -> Autostarted Applications
-# and adding SCIM: /usr/bin/scim -d
-
-# KDE will not start SCIM automatically, so you will need a script such as
-# this one in your $HOME/.kde/Autostart:
-
-#!/bin/bash
-#if [ -x /usr/bin/scim ]; then
-# /usr/bin/scim -d &
-#fi
-
-# Obviously, uncomment all but the first line. :-)
-
EOT
cat <<EOT > $PKG/etc/profile.d/scim.csh.new
@@ -174,21 +155,15 @@ cat <<EOT > $PKG/etc/profile.d/scim.csh.new
if (\$status == 0) then
# Enable legacy X applications to use scim:
setenv XMODIFIERS "@im=SCIM"
- ## Enable Qt/KDE applications to use scim (does not work for kde4):
- #setenv QT_IM_MODULE "scim"
+ # Let GTK applications like Firefox/Thunderbird use scim as
+ # default immodule:
+ setenv GTK_IM_MODULE "scim"
+ # Enable Qt/KDE applications to use scim (does not work for kde4):
+ setenv QT_IM_MODULE "scim"
# Make scim start automatically if the "magic key" Ctrl-Space is pressed:
setenv XIM_PROGRAM "/usr/bin/scim -d"
endif
-[ -x /usr/bin/scim-bridge ]
-if (\$status == 0) then
- # Let GTK applications like Firefox/Thunderbird use scim-bridge as
- # default immodule:
- setenv GTK_IM_MODULE "scim-bridge"
- # Enable Qt4/KDE4 applications to use scim:
- setenv QT_IM_MODULE "scim-bridge"
-endif
-
# This ensures scim starts when you logon.
# This will only work if you login through runlevel 4 (graphical login)!!!
# Better is to have it start through Ctrl-Space like configured higher up ^^.
@@ -197,22 +172,6 @@ endif
# /usr/bin/scim -d
#endif
-# GTK+ environments such as XFce should support SCIM automatically, BUT
-# if the first app you run is a Qt one, you'll run into problems. This
-# can be avoided by going into Menu -> Settings -> Autostarted Applications
-# and adding SCIM: /usr/bin/scim -d
-
-# KDE will not start SCIM automatically, so you will need a script such as
-# this one in your $HOME/.kde/Autostart:
-
-#!/bin/csh
-#[ -x /usr/bin/scim ]
-#if (\$status == 0) then
-# /usr/bin/scim -d &
-#endif
-
-# Obviously, uncomment all but the first line. :-)
-
EOT
chmod 755 $PKG/etc/profile.d/scim.sh.new