summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/3.5.13/trinity-base/trinity-arts/PKGBUILD37
-rw-r--r--arch/3.5.13/trinity-base/trinity-dbus-1-qt3/PKGBUILD30
-rw-r--r--arch/3.5.13/trinity-base/trinity-dbus-tqt-1/PKGBUILD52
-rw-r--r--arch/3.5.13/trinity-base/trinity-dbus-tqt/PKGBUILD54
-rw-r--r--arch/3.5.13/trinity-base/trinity-kdebase/PKGBUILD2
-rw-r--r--arch/3.5.13/trinity-base/trinity-kdelibs/PKGBUILD82
-rw-r--r--arch/3.5.13/trinity-base/trinity-pyqt3/PKGBUILD30
-rw-r--r--arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD100
-rw-r--r--arch/3.5.13/trinity-base/trinity-tqtinterface/PKGBUILD87
-rw-r--r--arch/3.5.13/trinity-extras/trinity-konversation/PKGBUILD62
-rw-r--r--arch/3.5.13/trinity-extras/trinity-lipstik/PKGBUILD51
-rw-r--r--arch/3.5.13_broken/README27
-rw-r--r--arch/3.5.13_broken/trinity-knetworkmanager8/PKGBUILD49
-rw-r--r--arch/3.5.13_broken/trinity-knetworkmanager8/knetworkmanager.patch1669
-rw-r--r--arch/3.5.13_broken/trinity-knetworkmanager9/PKGBUILD49
-rw-r--r--arch/3.5.13_broken/trinity-knetworkmanager9/knetworkmanager.patch1669
-rw-r--r--arch/3.5.13_broken/trinity-kpilot/PKGBUILD55
-rw-r--r--arch/3.5.13_broken/trinity-lipstik/PKGBUILD52
-rw-r--r--arch/3.5.13_broken/trinity-rosegarden/PKGBUILD54
-rw-r--r--arch/3.5.13_broken/trinity-wlassistant/PKGBUILD46
-rw-r--r--arch/extras/README12
-rw-r--r--arch/extras/autotools_PKGBUILD59
-rwxr-xr-xarch/extras/batchbuild (renamed from arch/scripts/buildarchbinaries)0
-rw-r--r--arch/extras/cmake_PKGBUILD66
24 files changed, 500 insertions, 3894 deletions
diff --git a/arch/3.5.13/trinity-base/trinity-arts/PKGBUILD b/arch/3.5.13/trinity-base/trinity-arts/PKGBUILD
index d8cff8a28..74b720fb5 100644
--- a/arch/3.5.13/trinity-base/trinity-arts/PKGBUILD
+++ b/arch/3.5.13/trinity-base/trinity-arts/PKGBUILD
@@ -3,45 +3,50 @@
pkgname=trinity-arts
pkgver=3513
pkgrel=1
+
arch=('i686' 'x86_64')
+
url='http://www.trinitydesktop.com'
license=('GPL')
groups=('trinity-base')
pkgdesc="Trinity - arts"
+
depends=('audiofile'
- 'alsa-lib'
- 'libmad'
- 'libvorbis'
- 'trinity-tqtinterface')
-makedepends=('pkgconfig' 'cmake' 'autoconf')
+ 'alsa-lib'
+ 'libmad'
+ 'libvorbis'
+ 'trinity-tqtinterface')
+makedepends=('pkgconfig' 'cmake')
+
provides=('trinity-arts')
conflicts=('trinity-arts')
replaces=('trinity-arts')
+
options=('libtool' '!strip')
+
source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/dependencies/arts-3.5.13.tar.gz)
md5sums=('109124dabb1aaa9d44eb32e43b549142')
# set Qt location (not needed if profile.d/q3.sh present, set prefix (not used)
-_qtdir=/opt/qt
-_prefix=${_qtdir}
+#_qtdir=/opt/qt
+_builddir=build
+_prefix="/opt/trinity"
build() {
msg "Setting PATH, CMAKE and Trinity Environment variables"
- if [[ -r /etc/profile.d/qt3.sh ]]; then
+ #if [[ -r /etc/profile.d/qt3.sh ]]; then
. /etc/profile.d/qt3.sh
- [[ -n $QTDIR ]] && _qtdir=$QTDIR
- else
- [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
- fi
+ # [[ -n $QTDIR ]] && _qtdir=$QTDIR
+ #else
+ # [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
+ #fi
# exports not required with /opt/qt/include in the right place
# export CMAKE_PREFIX_PATH=$QTDIR
# export CMAKE_INCLUDE_PATH=/opt/qt/include:/opt/qt/include/tqt
- trinity_prefix="/opt/trinity"
-
cd $srcdir
msg "Creating out-of-source build directory: ${srcdir}/build"
mkdir -p build
@@ -49,13 +54,13 @@ build() {
msg "Starting cmake..."
cmake ${srcdir}/dependencies/arts/ \
- -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
+ -DCMAKE_INSTALL_PREFIX=${_prefix} \
-DQT_VERSION=3 || return 1
# -DQT_VERSION=3 \
# -DWITH_QT3=ON \
# -DQT_LIBRARY_DIRS=/opt/qt/lib
-
+ msg "Building $pkgname..."
make VERBOSE=1
}
diff --git a/arch/3.5.13/trinity-base/trinity-dbus-1-qt3/PKGBUILD b/arch/3.5.13/trinity-base/trinity-dbus-1-qt3/PKGBUILD
index e9831f187..eaa7f19fc 100644
--- a/arch/3.5.13/trinity-base/trinity-dbus-1-qt3/PKGBUILD
+++ b/arch/3.5.13/trinity-base/trinity-dbus-1-qt3/PKGBUILD
@@ -3,28 +3,40 @@
pkgname=trinity-dbus-1-qt3
pkgver=0.9
pkgrel=8
+
arch=('i686' 'x86_64')
-pkgdesc="Trinity D-Bus/Qt3 bindings."
+
url="http://www.freedesktop.org/wiki/Software/DBusBindings"
license=('GPL')
groups=('trinity-base')
-pkgdesc="Trinity - dbus-1-qt3"
+pkgdesc="Trinity - D-Bus/Qt3 bindings."
+
depends=('dbus' 'trinity-qt3' 'networkmanager')
+
provides=('trinity-dbus-1-qt3' 'dbus-1-qt3')
conflicts=('dbus-1-qt3')
replaces=('dbus-1-qt3')
+
options=('libtool' '!strip')
+
source=(http://people.freedesktop.org/~krake/dbus-1-qt3/${pkgname#*trinity-}-${pkgver}.tar.gz)
md5sums=('8ca3d13c372126aa9b0e16beb0a9d82d')
build() {
- cd $srcdir/${pkgname#*trinity-}-$pkgver
+ cd $srcdir/${pkgname#*trinity-}-$pkgver
+ msg "Setting enviroment variables..."
+ . /etc/profile.d/qt3.sh
+ msg "Starting configure..."
+ ./configure --prefix=$QTDIR
+ msg "Building #{pkgname}..."
+ make || return 1
- . /etc/profile.d/qt3.sh
- ./configure --prefix=$QTDIR
- make || return 1
- make DESTDIR="$pkgdir/" install
+ # Libtool slay
+ # find $startdir/pkg -name *.la -exec rm {} \;
+}
- # Libtool slay
-# find $startdir/pkg -name *.la -exec rm {} \;
+package() {
+ msg "Packaging - $pkgname-$pkgver"
+ cd $srcdir/${pkgname#*trinity-}-$pkgver
+ make DESTDIR="${pkgdir}" install
}
diff --git a/arch/3.5.13/trinity-base/trinity-dbus-tqt-1/PKGBUILD b/arch/3.5.13/trinity-base/trinity-dbus-tqt-1/PKGBUILD
index ecdc82ee0..671c5d90c 100644
--- a/arch/3.5.13/trinity-base/trinity-dbus-tqt-1/PKGBUILD
+++ b/arch/3.5.13/trinity-base/trinity-dbus-tqt-1/PKGBUILD
@@ -1,50 +1,57 @@
+# Maintainer: calvin Morrison <mutantturkey@gmail.com>
+
pkgname=trinity-dbus-tqt-1
pkgver=3513
pkgrel=1
+
arch=('i686' 'x86_64')
+
url='http://www.trinitydesktop.org'
license=('GPL')
groups=('trinity-base')
pkgdesc="Trinity - D-Bus TQtInterface Wrapper"
+
depends=('trinity-tqtinterface' 'dbus')
+
provides=('trinity-dbus-tqt-1' 'dbus-tqt-1' 'dbus-1-tqt' 'trinity-dbus-1-tqt')
makedepends=('pkgconfig' 'cmake')
+
options=('libtool' '!strip')
source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/dependencies/dbus-1-tqt-3.5.13.tar.gz)
md5sums=('a7ba1071f4bf7b5930f805b4036f8a97')
-_svnmod=dependencies/dbus-1-tqt
-_qtdir=/opt/qt
+_svnmod=dependencies/dbus-1-tqt
+_builddir=build
_prefix="/opt/trinity"
-
build() {
msg "Setting PATH, CMAKE and Trinity Environment variables"
- if [[ -r /etc/profile.d/qt3.sh ]]; then
+ # if [[ -r /etc/profile.d/qt3.sh ]]; then
. /etc/profile.d/qt3.sh
- [[ -n $QTDIR ]] && _qtdir=$QTDIR
- else
- [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
- fi
- export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
- export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:\
-/usr/include/dbus-1.0:\
-/opt/trinity/include:\
-/opt/trinity/include/libkrandr
- export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:/opt/qt/lib/pkgconfig
-
+ # [[ -n $QTDIR ]] && _qtdir=$QTDIR
+ #else
+ # [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
+ #fi
+ export CMAKE_PREFIX_PATH=${QTDIR}:${_prefix}
+ export CMAKE_INCLUDE_PATH=${QTDIR}/include/tqt:\
+ /usr/include/dbus-1.0:\
+ ${_prefix}/include:\
+ ${_prefix}/include/libkrandr
+ export LD_LIBRARY_PATH=${_prefix}/lib:${_prefix}/lib/trinity:$LD_LIBRARY_PATH
+ export PKG_CONFIG_PATH=:${_prefix}/lib/pkgconfig:${QTDIR}/lib/pkgconfig
cd $srcdir
- msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
+ msg "Creating out-of-source build directory: ${srcdir}/${_builddir}"
+ mkdir -p ${_builddir}
+ cd ${_builddir}
msg "Starting cmake..."
cmake ${srcdir}/${_svnmod} \
-DCMAKE_INSTALL_PREFIX=${_prefix} \
-DCMAKE_VERBOSE_MAKEFILE=ON
+
+ msg "Building - $pkgname..."
make
# -DWITH_QT3=ON \
# -DQTDIR=/opt/qt \
@@ -54,9 +61,6 @@ build() {
package() {
msg "Packaging - $pkgname-$pkgver"
# cd ${srcdir}/${_svnmod}
- cd ${srcdir}/build
-
- make DESTDIR="$pkgdir/" install
-
- cd ${startdir}
+ cd ${srcdir}/${_builddir}
+ make DESTDIR="${pkgdir}" install
}
diff --git a/arch/3.5.13/trinity-base/trinity-dbus-tqt/PKGBUILD b/arch/3.5.13/trinity-base/trinity-dbus-tqt/PKGBUILD
index a5425bd21..adc2d5b83 100644
--- a/arch/3.5.13/trinity-base/trinity-dbus-tqt/PKGBUILD
+++ b/arch/3.5.13/trinity-base/trinity-dbus-tqt/PKGBUILD
@@ -3,65 +3,67 @@
pkgname=trinity-dbus-tqt
pkgver=3513
pkgrel=1
+
arch=('i686' 'x86_64')
+
url='http://www.trinitydesktop.org'
license=('GPL')
groups=('trinity-base')
-pkgdesc="Trinity TQt Dbus wrapper"
+pkgdesc="Trinity TQt DBus wrapper"
+
depends=('trinity-tqtinterface')
makedepends=('pkgconfig' 'cmake')
+
provides=('trinity-dbus-tqt')
conflicts=('trinity-dbus-tqt')
replaces=('trinity-dbus-tqt')
+
options=('libtool' '!strip')
+
source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/dependencies/dbus-tqt-3.5.13.tar.gz)
md5sums=('46ae165c068271485c827f6fc6687a9a')
-
_svnmod=dependencies/dbus-tqt
-_qtdir=/opt/qt
+_builddir=build
_prefix="/opt/trinity"
-
build() {
msg "Setting PATH, CMAKE and Trinity Environment variables"
- if [[ -r /etc/profile.d/qt3.sh ]]; then
+ #if [[ -r /etc/profile.d/qt3.sh ]]; then
. /etc/profile.d/qt3.sh
- [[ -n $QTDIR ]] && _qtdir=$QTDIR
- else
- [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
- fi
- export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
- export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:\
-/usr/include/dbus-1.0:\
-/opt/trinity/include:\
-/opt/trinity/include/libkrandr
- export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:/opt/qt/lib/pkgconfig
-
+ # [[ -n $QTDIR ]] && _qtdir=$QTDIR
+ #else
+ # [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
+ #fi
+ export CMAKE_PREFIX_PATH=${QTDIR}:${_prefix}
+ export CMAKE_INCLUDE_PATH=${QTDIR}/include/tqt:\
+ /usr/include/dbus-1.0:\
+ ${_prefix}/include:\
+ ${_prefix}/include/libkrandr
+ export LD_LIBRARY_PATH=${_prefix}/lib:${_prefix}/lib/trinity:$LD_LIBRARY_PATH
+ export PKG_CONFIG_PATH=${_prefix}/lib/pkgconfig:${QTDIR}/lib/pkgconfig
cd $srcdir
- msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
+ msg "Creating out-of-source build directory: ${srcdir}/${_builddir}"
+ mkdir -p ${_builddir}
+ cd ${_builddir}
msg "Starting cmake..."
cmake ${srcdir}/${_svnmod} \
-DCMAKE_INSTALL_PREFIX=${_prefix} \
-DCMAKE_VERBOSE_MAKEFILE=ON
- make
# -DWITH_QT3=ON \
# -DQTDIR=/opt/qt \
# -DQT_LIBRARY_DIRS=/opt/qt/lib \
+
+ msg "Building - $pkgname..."
+ make
}
package() {
msg "Packaging - $pkgname-$pkgver"
# cd ${srcdir}/${_svnmod}
- cd ${srcdir}/build
-
- make DESTDIR="$pkgdir/" install
-
- cd ${startdir}
+ cd ${srcdir}/${_builddir}
+ make DESTDIR="${pkgdir}" install
}
diff --git a/arch/3.5.13/trinity-base/trinity-kdebase/PKGBUILD b/arch/3.5.13/trinity-base/trinity-kdebase/PKGBUILD
index e007b3107..b4b06cbc7 100644
--- a/arch/3.5.13/trinity-base/trinity-kdebase/PKGBUILD
+++ b/arch/3.5.13/trinity-base/trinity-kdebase/PKGBUILD
@@ -35,7 +35,7 @@ options=('libtool' '!strip')
source=('http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/kdebase-3.5.13.tar.gz' 'dbusfix.diff' 'kdm-trinity')
md5sums=('d1f7e1f94eeb46b981fe1ba144179840'
'c9ce810c281002440a6de8cfd8735d07'
- '523838d16b38fc62445863ca762c17f8')
+ '376d85d213cf3c04cb0912e5cccd68bd')
_qtdir=/opt/qt
_prefix="/opt/trinity"
diff --git a/arch/3.5.13/trinity-base/trinity-kdelibs/PKGBUILD b/arch/3.5.13/trinity-base/trinity-kdelibs/PKGBUILD
index 8a9a6f194..b5cc4977c 100644
--- a/arch/3.5.13/trinity-base/trinity-kdelibs/PKGBUILD
+++ b/arch/3.5.13/trinity-base/trinity-kdelibs/PKGBUILD
@@ -3,74 +3,74 @@
pkgname=trinity-kdelibs
pkgver=3513
pkgrel=2
+
arch=('i686' 'x86_64')
+
url='http://www.trinitydesktop.org'
license=('GPL')
groups=('trinity-base')
pkgdesc="Trinity - kdelibs, core libraries"
-depends=('libical'
- 'libxslt'
- 'libltdl'
- 'avahi'
- 'pam-krb5'
- 'taglib'
- 'libxcomposite'
- 'trinity-arts')
+
+depends=('trinity-arts' 'trinity-qt3' 'trinity-tqtinterface' 'libical' 'libxslt' 'libltdl' 'avahi' 'pam-krb5' 'taglib' 'libxcomposite')
makedepends=('pkgconfig' 'cmake' 'autoconf' )
+
provides=('trinity-kdelibs' 'kdelibs3')
conflicts=('trinity-kdelibs' 'kdelibs3')
replaces=('trinity-kdelibs')
+
options=('libtool' '!strip' '!makeflags')
+
source=('http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/kdelibs-3.5.13.tar.gz' 'trinity.sh')
md5sums=('f62eefb63b4ba2141b4c576f859806dd'
'2de1886d632c8bc288befada5e1bc3b5')
-qtdir=/opt/qt
-trinity_prefix="/opt/trinity"
+_builddir=build
+_prefix="/opt/trinity"
build() {
-
- msg "Setting PATH, CMAKE and Trinity Environment variables"
- if [[ -r /etc/profile.d/qt3.sh ]]; then
+ msg "Setting PATH, CMAKE and Trinity Environment variables"
+ #if [[ -r /etc/profile.d/qt3.sh ]]; then
. /etc/profile.d/qt3.sh
- [[ -n $QTDIR ]] && _qtdir=$QTDIR
- else
- [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
- fi
- export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
- export PATH=$PATH:$trinity_prefix/bin
- export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/bin
- export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/qt/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
-
- cd $srcdir
- msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
-
- msg "Starting cmake..."
- cmake ${srcdir}/kdelibs \
- -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
+ # [[ -n $QTDIR ]] && _qtdir=$QTDIR
+ #else
+ # [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
+ #fi
+ export CMAKE_PREFIX_PATH=${QTDIR}:${_prefix}
+ export PATH=$PATH:${_prefix}/bin
+ export CMAKE_INCLUDE_PATH=${QTDIR}/include/tqt:/usr/include/dbus-1.0:${_prefix}/bin
+ export LD_LIBRARY_PATH=${_prefix}/lib:${QTDIR}/lib:${_prefix}/lib/trinity:$LD_LIBRARY_PATH
+
+ cd $srcdir
+ msg "Creating out-of-source build directory: ${srcdir}/${_builddir}"
+ mkdir -p ${_builddir}
+ cd ${_builddir}
+
+ msg "Starting cmake..."
+ cmake ${srcdir}/kdelibs \
+ -DCMAKE_INSTALL_PREFIX=${_prefix} \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DQT_VERSION=3 \
-DWITH_QT3=ON \
- -DQTDIR=/opt/qt \
- -DQT_LIBRARY_DIRS=/opt/qt/lib \
+ -DQTDIR=${QTDIR} \
+ -DQT_LIBRARY_DIRS=${QTDIR}/lib \
-DWITH_PAM=ON \
-DBUILD_ALL=ON
- make
+
+ msg "Building - $pkgname..."
+ make
}
package() {
- msg "Packaging - $pkgname-$pkgver"
- cd ${srcdir}/build
+ msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/build
- make DESTDIR="$pkgdir/" install
+ make DESTDIR="$pkgdir" install
- install -d -m755 ${pkgdir}/etc/ld.so.conf.d/
- echo "${trinity_prefix}/lib" > ${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf
+ install -d -m755 ${pkgdir}/etc/ld.so.conf.d/
+ echo "${_prefix}/lib" > ${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf
- install -d -m755 ${pkgdir}/etc/profile.d/
- install -m644 ${startdir}/trinity.sh ${pkgdir}/etc/profile.d/
+ install -d -m755 ${pkgdir}/etc/profile.d/
+ install -m644 ${startdir}/trinity.sh ${pkgdir}/etc/profile.d/
-# rm -r ${srcdir}/${_svnmod}
+ # rm -r ${srcdir}/${_svnmod}
}
diff --git a/arch/3.5.13/trinity-base/trinity-pyqt3/PKGBUILD b/arch/3.5.13/trinity-base/trinity-pyqt3/PKGBUILD
index 47a82b01c..6524e1793 100644
--- a/arch/3.5.13/trinity-base/trinity-pyqt3/PKGBUILD
+++ b/arch/3.5.13/trinity-base/trinity-pyqt3/PKGBUILD
@@ -3,31 +3,43 @@
pkgname=trinity-pyqt3
pkgver=3.18.1
pkgrel=1
-pkgdesc="A set of Python bindings for the Qt3 toolkit"
+
arch=('i686' 'x86_64')
+
url="http://www.riverbankcomputing.com/software/pyqt/intro"
+license=('GPL')
groups=('trinity-base')
+pkgdesc="A set of Python bindings for the Qt3 toolkit"
+
depends=('python2-sip' 'qscintilla-qt3' 'trinity-qt3')
-license=('GPL')
+#makedepends=()
+#optdepends=()
+
provides=('trinity-pyqt3' 'pyqt3')
conflicts=('pyqt3')
replaces=('trinity-pyqt3')
+
+#options=()
+
source=("http://www.riverbankcomputing.com/static/Downloads/PyQt3/PyQt-x11-gpl-${pkgver}.tar.gz")
md5sums=('f1d120495d1aaf393819e988c0a7bb7e')
build() {
- cd ${srcdir}/PyQt-x11-gpl-${pkgver}
+ cd ${srcdir}/PyQt-x11-gpl-${pkgver}
- . /etc/profile.d/qt3.sh
+ msg "Starting configure..."
+ . /etc/profile.d/qt3.sh
- export QMAKESPEC="/opt/qt/mkspecs/default"
+ export QMAKESPEC="/opt/qt/mkspecs/default"
- echo yes | python2.7 configure.py -q /opt/qt/
+ echo yes | python2.7 configure.py -q /opt/qt/
- make
+ msg "Building ${pkgname}..."
+ make
}
package() {
- cd ${srcdir}/PyQt-x11-gpl-${pkgver}
- make DESTDIR=${pkgdir} install
+ msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/PyQt-x11-gpl-${pkgver}
+ make DESTDIR=${pkgdir} install
}
diff --git a/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD b/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD
index fc6f77062..e44cf4c0c 100644
--- a/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD
+++ b/arch/3.5.13/trinity-base/trinity-qt3/PKGBUILD
@@ -1,74 +1,84 @@
# Maintainer: Calvin Morrison <MutantTurkey@gmail.com>
+
pkgname=trinity-qt3
pkgver=3884
pkgrel=2
-pkgdesc="The Qt3 gui toolkit - with Trinity upstream"
-_prefix="/opt/qt"
+
arch=('i686' 'x86_64')
-license=('GPL')
+
url="http://trinitydesktop.org"
-# install=qt.install
+license=('GPL')
groups=('trinity-base')
+pkgdesc="The Qt3 gui toolkit - with Trinity upstream"
+
depends=('libjpeg-turbo' 'libmng' 'libmysqlclient' 'libpng' 'libxmu' 'libxcursor' 'libxinerama' 'libxft' 'libxrandr' 'mesa' 'postgresql-libs' 'unixodbc')
makedepends=('cups' 'libxi' 'mysql' 'postgresql' 'unixodbc' 'sqlite3')
-optdepends=()
# optdepends=('libmysqlclient' 'postgresql-libs' 'unixodbc')
+
provides=('trinity-qt3' 'qt3')
conflicts=('qt3' 'qt3-enhanced')
replaces=('trinity-qt3')
-_prefix="opt/qt"
+
+options=(!libtool)
+
source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/dependencies/qt3-3.3.8.d.tar.gz)
md5sums=('78dc675e84aed595375449818cbb589a')
-options=(!libtool)
+
+_prefix="/opt/qt"
+_builddir="qt3"
+# install=qt.install
build() {
- export QTDIR="${srcdir}/qt3/"
- export PATH=${QTDIR}/bin:${PATH}
- export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
- export QMAKESPEC=$QTDIR/mkspecs/linux-g++
-
- if [ "$CARCH" = "x86_64" ]; then
+ msg "Setting enviroment variables..."
+ export QTDIR="${srcdir}/${_builddir}/"
+ export PATH=${QTDIR}/bin:${PATH}
+ export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
+ export QMAKESPEC=$QTDIR/mkspecs/linux-g++
+
+ if [ "$CARCH" = "x86_64" ]; then
export ARCH="-64"
else unset ARCH
-fi
+ fi
- cd "${srcdir}/qt3"
+ cd "${srcdir}/${_builddir}"
- rm -rf mkspecs/{*aix*,*bsd*,cygwin*,dgux*,darwin*,hpux*,hurd*,irix*,lynxos*,macx*,qnx*,reliant*,sco*,solaris*,tru64*,unixware*,win32*}
+ rm -rf mkspecs/{*aix*,*bsd*,cygwin*,dgux*,darwin*,hpux*,hurd*,irix*,lynxos*,macx*,qnx*,reliant*,sco*,solaris*,tru64*,unixware*,win32*}
- msg "Starting configure..."
- #make -C qmake || return 1
- ./configure -prefix ${_prefix} \
- -fast \
- -sysconfdir /etc/qt \
- -thread \
- -shared \
- -system-zlib \
- -platform linux-g++$ARCH \
- -system-lib{png,jpeg,mng}
- make
+ msg "Starting configure..."
+ #make -C qmake || return 1
+ ./configure \
+ -prefix ${_prefix} \
+ -fast \
+ -sysconfdir /etc/qt \
+ -thread \
+ -shared \
+ -system-zlib \
+ -platform linux-g++$ARCH \
+ -system-lib{png,jpeg,mng} \
+ -qt-gif \
+ -cups
+ msg "Building - $pkgname..."
+ make
}
-package() {
-
- cd "$srcdir/qt3"
-
- # Build ld.so.conf file
- echo "/${_prefix}" > ${srcdir}/libqt-mt.conf
- echo "/${_prefix}/lib" >> ${srcdir}/libqt-mt.conf
- echo "/opt/trinity/lib" >> ${srcdir}/libqt-mt.conf
- install -d -m755 ${pkgdir}/etc/ld.so.conf.d/
- install -D -m755 ${srcdir}/libqt-mt.conf ${pkgdir}/etc/ld.so.conf.d/libqt-mt.conf
+package() {
+ msg "Packaging - $pkgname-$pkgver"
+ cd "$srcdir/${_builddir}"
- # Build and install qt.profile
- echo "export QTDIR=/${_prefix}" > ${srcdir}/qt.profile
- echo "export QT_XFT=true" >> ${srcdir}/qt.profile
- echo 'export PATH=$PATH:$QTDIR/bin' >> ${srcdir}/qt.profile
- echo 'export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$QTDIR/pkgconfig' >> ${srcdir}/qt.profile
- install -D -m755 ${srcdir}/qt.profile ${pkgdir}/etc/profile.d/qt3.sh
-
+ # Build ld.so.conf file
+ echo "${_prefix}" > ${srcdir}/libqt-mt.conf
+ echo "${_prefix}/lib" >> ${srcdir}/libqt-mt.conf
+ echo "/opt/trinity/lib" >> ${srcdir}/libqt-mt.conf
+ # install -d -m755 ${pkgdir}/etc/ld.so.conf.d/
+ install -D -m755 ${srcdir}/libqt-mt.conf ${pkgdir}/etc/ld.so.conf.d/libqt-mt.conf
- make INSTALL_ROOT="$pkgdir/" install
+ # Build and install qt.profile
+ echo "export QTDIR=${_prefix}" > ${srcdir}/qt.profile
+ echo "export QT_XFT=true" >> ${srcdir}/qt.profile
+ echo 'export PATH=$PATH:$QTDIR/bin' >> ${srcdir}/qt.profile
+ echo 'export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$QTDIR/pkgconfig' >> ${srcdir}/qt.profile
+ install -D -m755 ${srcdir}/qt.profile ${pkgdir}/etc/profile.d/qt3.sh
+ make INSTALL_ROOT="$pkgdir" install
}
diff --git a/arch/3.5.13/trinity-base/trinity-tqtinterface/PKGBUILD b/arch/3.5.13/trinity-base/trinity-tqtinterface/PKGBUILD
index 8ab915341..2d6140af1 100644
--- a/arch/3.5.13/trinity-base/trinity-tqtinterface/PKGBUILD
+++ b/arch/3.5.13/trinity-base/trinity-tqtinterface/PKGBUILD
@@ -3,69 +3,62 @@
pkgname=trinity-tqtinterface
pkgver=3513
pkgrel=1
+
arch=('i686' 'x86_64')
+
url="http://trinity.pearsoncomputing.net"
license=('GPL2')
groups=('trinity-base')
pkgdesc="Trinity - tqtinterface"
-depends=('python2-sip'
- 'trinity-qt3'
- 'trinity-pyqt3')
-makedepends=(
- 'pkgconfig'
- 'cmake'
- 'autoconf'
- 'libxi'
- 'libxft'
- 'libxrandr'
- 'libxcursor'
- 'libxinerama'
- 'mesa')
-provides=('trinity-tqtinterface')
-conflicts=('trinity-tqtinterface')
-replaces=('trinity-tqtinterface')
+
+depends=('python2-sip' 'trinity-qt3' 'trinity-pyqt3')
+makedepends=('pkgconfig' 'cmake' 'libxi' 'libxft' 'libxrandr' 'libxcursor' 'libxinerama' 'mesa')
+# optdepends=()
+
+provides=($pkgname)
+#conflicts=()
+#replaces=()
+
source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/dependencies/tqtinterface-3.5.13.tar.gz)
md5sums=('d54cc9fd0b35555298efd17c32471a2b')
-_qtdir=/opt/qt
_prefix=/usr
+_builddir=build
build() {
+ msg "Setting PATH, CMAKE and Trinity Environment variables"
+ . /etc/profile.d/qt3.sh
- msg "Setting PATH, CMAKE and Trinity Environment variables"
- if [[ -r /etc/profile.d/qt3.sh ]]; then
- . /etc/profile.d/qt3.sh
- else
- [[ ${PATH%%:*} =~ ${_qtdir}/bin ]] || export PATH=${_qtdir}/bin:$PATH
- fi
-
- echo $PATH
- cd $srcdir
- msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
+ cd $srcdir
+ msg "Creating out-of-source build directory: ${srcdir}/build"
+ mkdir -p build
+ cd build
- msg "Starting cmake..."
- cmake "../dependencies/tqtinterface" -DCMAKE_INSTALL_PREFIX=${_prefix} -DQT_PREFIX_DIR=/opt/qt/ -DQT_LIBRARY_DIRS=/opt/qt/lib -DQT_INCLUDE_DIR=/opt/qt/include -DQT_VERSION=3 -DMOC_EXECUTABLE=${_qtdir}/bin/moc || return 1
-# -DQT_INCLUDE_DIR=${_prefix}/include/tqt/Qt
-# -DWITH_QT3=ON \
-# -DQT_LIBRARY_DIRS=/opt/qt/lib \
-# -DCMAKE_SKIP_RPATH=ON || return 1
- make
+ msg "Starting cmake..."
+ cmake "../dependencies/tqtinterface" \
+ -DCMAKE_INSTALL_PREFIX=${_prefix} \
+ -DQT_PREFIX_DIR=${_qtdir} \
+ -DQT_INCLUDE_DIR=${_qtdir}/include \
+ -DQT_VERSION=3 \
+ -DMOC_EXECUTABLE=${_qtdir}/bin/moc || return 1
+ # -DQT_INCLUDE_DIR=${_prefix}/include/tqt/Qt
+ # -DQT_LIBRARY_DIRS=/opt/qt/lib \
+ # -DWITH_QT3=ON \
+ # -DQT_LIBRARY_DIRS=/opt/qt/lib \
+ # -DCMAKE_SKIP_RPATH=ON || return 1
+ make
}
package() {
+ msg "Packaging - $pkgname-$pkgver"
+ # cd ${_svnmod}
+ cd ${srcdir}/${_builddir}
+ make DESTDIR="${pkgdir}" install
- msg "Packaging - $pkgname-$pkgver"
-
-# cd ${_svnmod}
- cd ${srcdir}/build
- make DESTDIR="$pkgdir/" install
-
- # include uic-tqt in package
-# cd ${srcdir}
-# mkdir -p ${pkgdir}/usr/bin
-# cp -Rp ${srcdir}/${_svnmod}/qtinterface/uic-tqt ${pkgdir}/usr/bin
+ # include uic-tqt in package
+ # cd ${srcdir}
+ # mkdir -p ${pkgdir}/usr/bin
+ # cp -Rp ${srcdir}/${_svnmod}/qtinterface/uic-tqt ${pkgdir}/usr/bin
-# rm -r ${srcdir}/${_svnmod}
+ # rm -r ${srcdir}/${_svnmod}
}
diff --git a/arch/3.5.13/trinity-extras/trinity-konversation/PKGBUILD b/arch/3.5.13/trinity-extras/trinity-konversation/PKGBUILD
index 925f2e4fd..b4ea81676 100644
--- a/arch/3.5.13/trinity-extras/trinity-konversation/PKGBUILD
+++ b/arch/3.5.13/trinity-extras/trinity-konversation/PKGBUILD
@@ -1,54 +1,54 @@
-# $Id$
# Maintainer: Calvin Morrison <mutantturkey@gmail.com>
-#
-# All modifications and uses of this file are licensed under
-# the software for which this file was made for, should the software
-# be under an Open Source License, at least version 1.9, defined
-# by the Open Source Initiative. In other cases, this file is automatically
-# released to the Public Domain.
-#
pkgname=trinity-konversation
pkgver=3513
pkgrel=1
+
arch=('i686' 'x86_64')
+
url='http://www.trinitydesktop.org'
license=('GPL')
groups=('trinity')
-pkgdesc="Trinity - Konversation IRC client"
-depends=('trinity-kdelibs' 'trinity-qt3' 'trinity-tqtinterface')
+pkgdesc="Trinity - pkgdesc"
+
+depends=('trinity-kdelibs')
makedepends=('pkgconfig' 'autoconf' 'automake')
+
options=('libtool' '!strip')
+
source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/konversation-3.5.13.tar.gz)
md5sums=('0f0e0415dad4c19bc885c9addadf4026')
-build() {
-
- msg "Setting PATH, CMAKE and Trinity Environment variables"
- export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
- export CMAKE_INCLUDE_PATH=/opt/qt/include:/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/include:/opt/trinity/include/libkrandr
- export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:/opt/qt/lib/pkgconfig
+_builddir=applications/konversation
+_prefix=/opt/trinity
- export CFLAGS=-I/opt/triniy/include/tqt
- export CXXFLAGS=-I/opt/trinity/include/tqt
-
- trinity_prefix="/opt/trinity"
-
- msg "Starting cmake..."
+build() {
+ msg "Setting Trinity Environment variables"
+ export LD_LIBRARY_PATH=${_prefix}/lib:${_prefix}/lib/trinity:$LD_LIBRARY_PATH
+ export PKG_CONFIG_PATH=${_prefix}/lib/pkgconfig:${QTDIR}/lib/pkgconfig
- cd "$srcdir/applications/konversation"
+ msg "Starting autoconf..."
+ cd "$srcdir/$cmpdir"
+ cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+ cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
make -f admin/Makefile.common
- ./configure --with-qt-dir=/opt/qt/ --prefix=/opt/trinity
+
+ msg "Starting configure..."
+ ./configure \
+ --with-qt-dir=${QTDIR} \
+ --with-qt-inculdes=${QTDIR}/include \
+ --with-qt-libraries=${QTDIR}/lib \
+ --prefix=${_prefix} \
+ --with-extra-includes=${_prefix}/include:/usr/include/dbus-1.0:${_prefix}/include/libkrandr \
+ --with-extra-libs=${_prefix}/lib:${_prefix}/lib/trinity:${_prefix}/pkgconfig
+
+ msg "Building ${pkgname}..."
make
}
package() {
msg "Packaging - $pkgname-$pkgver"
-# cd ${srcdir}/${_svnmod}
- cd ${srcdir}/build
-
- make DESTDIR="$pkgdir/" install
-
-# rm -r ${srcdir}/${_svnmod}
+# cd ${srcdir}/build
+ cd ${srcdir}/${_builddir}
+ make DESTDIR="${pkgdir}" install
}
diff --git a/arch/3.5.13/trinity-extras/trinity-lipstik/PKGBUILD b/arch/3.5.13/trinity-extras/trinity-lipstik/PKGBUILD
new file mode 100644
index 000000000..6c652dcab
--- /dev/null
+++ b/arch/3.5.13/trinity-extras/trinity-lipstik/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Calvin Morrison <mutantturkey@gmail.com>
+
+pkgname=trinity-kde-style-lipstik
+pkgver=3513
+pkgrel=1
+
+arch=('i686' 'x86_64')
+
+url='http://www.trinitydesktop.org'
+license=('GPL')
+groups=('trinity')
+pkgdesc="Trinity - Lipstik style"
+
+depends=('trinity-kdelibs' 'trinity-kdebase')
+makedepends=('pkgconfig' 'autoconf' 'automake')
+
+options=('libtool' '!strip')
+
+source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/kde-style-lipstik-3.5.13.tar.gz)
+md5sums=('1585d4df7f0c68499fafa0b8ecb82dab')
+
+_builddir=applications/kde-style-lipstik
+_prefix=/opt/trinity
+
+build() {
+
+ msg "Setting Trinity Environment variables"
+ export LD_LIBRARY_PATH=${_prefix}/lib:${_prefix}/lib/trinity:$LD_LIBRARY_PATH
+ export PKG_CONFIG_PATH=${_prefix}/lib/pkgconfig:${QTDIR}/lib/pkgconfig
+
+ msg "Starting autoconf..."
+ cd "$srcdir/${_builddir}"
+ cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+ cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
+ make -f admin/Makefile.common
+
+ msg "Starting configure..."
+ ./configure --with-qt-dir=${QTDIR} \
+ --prefix=${_prefix} \
+ --with-extra-includes=${_prefix}/include:/usr/include/dbus-1.0:${_prefix}/include/libkrandr \
+ --with-extra-libs=${_prefix}/lib:${_prefix}/lib/trinity:${_prefix}/pkgconfig
+
+ msg "Building ${pkgname}..."
+ make
+}
+
+package() {
+ msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/${_builddir}
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/arch/3.5.13_broken/README b/arch/3.5.13_broken/README
index 3cf4e4454..4631fc8dc 100644
--- a/arch/3.5.13_broken/README
+++ b/arch/3.5.13_broken/README
@@ -23,30 +23,5 @@ Problems with builds:
If it cannot be fixed, maybe whole CMake should
be rewritten for this?
- knetworkmanager8
- knetworkmanager9
- CMake does not detect dbus-1-tqt. We provide
- dbus-tqt-1, for which we pull tarball called
- dbus-1-tqt. It should be the same thing, but
- after chenaging Cmake instructions to search
- for dbus-tqt-1 which we provide, it still
- fails.
- Patch provides missing cmake modules.
-
- kpilot:
- same as above (probably) plus "CMakeOptions.txt
- not found! Run configure first." Error.
- Do we need kpilot? Is Palm devices supported
- by it still alive?
-
- kde-style-lipstick:
- not ported to CMake. Autotools TQt, Qt detection
- problems.
-
wlassistant:
- not potted to Cmake. Same as above.
-
- rosegarden:
- same as kgtk-qt3. I think every else trinity component
- using CMake files wrote by KDE team won't work
- with trinity tmoc.
+ hardcoded incudes? Does not compile?
diff --git a/arch/3.5.13_broken/trinity-knetworkmanager8/PKGBUILD b/arch/3.5.13_broken/trinity-knetworkmanager8/PKGBUILD
deleted file mode 100644
index da1808076..000000000
--- a/arch/3.5.13_broken/trinity-knetworkmanager8/PKGBUILD
+++ /dev/null
@@ -1,49 +0,0 @@
-# Maintainer: Calvin Morrison <mutantturkey@gmail.com>
-
-pkgname=trinity-knetworkmanager
-pkgver=3513
-pkgrel=1
-arch=('i686' 'x86_64')
-url='http://www.trinitydesktop.org'
-license=('GPL')
-groups=('trinity-extras')
-pkgdesc="Trinity - Networkmanager applet"
-depends=('trinity-kdebase' 'networkmanager' 'dbus' 'hal' 'trinity-dbus-tqt-1')
-makedepends=('pkgconfig' 'cmake' 'imake')
-options=('libtool' '!strip')
-source=('http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/knetworkmanager8-3.5.13.tar.gz' 'knetworkmanager.patch')
-md5sums=('def7b5d1fae4d407d05507fe8bc47f5c'
- 'bc1fba7f0cd2ee6264c986a56f725669')
-
-_svnmod=applications/knetworkmanager8
-
-build() {
-
- msg "Setting PATH, CMAKE and Trinity Environment variables"
- export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
- export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/include
- export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=:/opt/qt/lib/pkgconfig
-
- trinity_prefix="/opt/trinity"
-
- #patch -N -d ${srcdir} -p0 < knetworkmanager.patch
-
- cd $srcdir
- msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
-
- msg "Starting cmake..."
- cmake ${srcdir}/${_svnmod} \
- -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
- -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DBUILD_ALL=ON
- make
-}
-
-package() {
- msg "Packaging - $pkgname-$pkgver"
- cd ${srcdir}/build
- make DESTDIR="$pkgdir/" install
-}
diff --git a/arch/3.5.13_broken/trinity-knetworkmanager8/knetworkmanager.patch b/arch/3.5.13_broken/trinity-knetworkmanager8/knetworkmanager.patch
deleted file mode 100644
index 73f995e86..000000000
--- a/arch/3.5.13_broken/trinity-knetworkmanager8/knetworkmanager.patch
+++ /dev/null
@@ -1,1669 +0,0 @@
-diff -u -r -N applications/knetworkmanager9/cmake/generate_apidox src/applications/knetworkmanager9/cmake/generate_apidox
---- applications/knetworkmanager9/cmake/generate_apidox 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/generate_apidox 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,17 @@
-+#!/bin/bash
-+
-+top_srcdir=${1}
-+top_builddir=${2}
-+kde_libs_htmldir=${3}
-+export QTDOCDIR=${4}
-+
-+if [[ ! -d "${top_srcdir}/doc/common/" ]]; then
-+ export DOXDATA=${kde_libs_htmldir}/en/common
-+fi
-+
-+abs_top_srcdir=$(cd ${top_srcdir} && pwd)
-+
-+rm -rf ${top_builddir}/${kde_libs_htmldir}/en
-+mkdir -p ${top_builddir}/${kde_libs_htmldir}/en
-+cd ${top_builddir}/${kde_libs_htmldir}/en
-+${abs_top_srcdir}/admin/doxygen.sh --modulename --installdir=${top_builddir}/${kde_libs_htmldir}/en ${abs_top_srcdir}
-diff -u -r -N applications/knetworkmanager9/cmake/install_apidox src/applications/knetworkmanager9/cmake/install_apidox
---- applications/knetworkmanager9/cmake/install_apidox 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/install_apidox 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,12 @@
-+#!/bin/bash
-+
-+top_srcdir=${1}
-+top_builddir=${2}
-+kde_libs_htmldir=${3}
-+installdir=${DESTDIR}
-+
-+abs_top_srcdir=$(cd ${top_srcdir} && pwd)
-+
-+cd ${top_builddir}
-+mkdir -p ${installdir}/${kde_libs_htmldir}/en
-+cp -Rp ${top_builddir}/${kde_libs_htmldir}/en ${installdir}/${kde_libs_htmldir}/
-diff -u -r -N applications/knetworkmanager9/cmake/modules/FindTDE.cmake src/applications/knetworkmanager9/cmake/modules/FindTDE.cmake
---- applications/knetworkmanager9/cmake/modules/FindTDE.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/FindTDE.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,86 @@
-+#################################################
-+#
-+# (C) 2010-2011 Serghei Amelian
-+# serghei (DOT) amelian (AT) gmail.com
-+#
-+# Improvements and feedback are welcome
-+#
-+# This file is released under GPL >= 2
-+#
-+#################################################
-+
-+if( NOT TDE_FOUND )
-+
-+ message( STATUS "checking for 'TDE'")
-+
-+ # if the path is not already defined by user,
-+ # find kde-config executable
-+ if( NOT DEFINED KDECONFIG_EXECUTABLE )
-+ find_program( KDECONFIG_EXECUTABLE
-+ NAMES kde-config
-+ HINTS ${BIN_INSTALL_DIR} )
-+ if( NOT KDECONFIG_EXECUTABLE )
-+ tde_message_fatal( "kde-config are NOT found." )
-+ endif( NOT KDECONFIG_EXECUTABLE )
-+ endif( NOT DEFINED KDECONFIG_EXECUTABLE )
-+
-+ # check for installed trinity version
-+ execute_process(
-+ COMMAND ${KDECONFIG_EXECUTABLE} --version
-+ OUTPUT_VARIABLE _version
-+ RESULT_VARIABLE _result
-+ OUTPUT_STRIP_TRAILING_WHITESPACE )
-+ if( _result )
-+ tde_message_fatal( "Unable to run kde-config!\n KDELIBS are correctly installed?\n Path to kde-config are corect?" )
-+ endif( _result )
-+
-+ # parse kde-config output, to extract TDE version
-+ string( REGEX MATCH "KDE: ([0-9\\.]+)" __dummy "${_version}" )
-+ set( TDE_VERSION "${CMAKE_MATCH_1}" )
-+
-+ # ask kde-config for few paths
-+ macro( __internal_get_path __type __var )
-+ execute_process(
-+ COMMAND ${KDECONFIG_EXECUTABLE} --expandvars --install ${__type}
-+ OUTPUT_VARIABLE ${__var}
-+ OUTPUT_STRIP_TRAILING_WHITESPACE )
-+ endmacro( __internal_get_path )
-+
-+ __internal_get_path( include TDE_INCLUDE_DIR )
-+ __internal_get_path( lib TDE_LIB_DIR )
-+ __internal_get_path( exe TDE_BIN_DIR )
-+ __internal_get_path( data TDE_DATA_DIR )
-+ __internal_get_path( config TDE_CONFIG_DIR )
-+ __internal_get_path( html TDE_HTML_DIR )
-+ __internal_get_path( cmake TDE_CMAKE_DIR )
-+ __internal_get_path( qtplugins TDE_QTPLUGINS_DIR )
-+
-+ # find kde tools
-+ macro( __internal_find_program __prog __var )
-+ find_program( ${__var}
-+ NAMES ${__prog}
-+ HINTS ${TDE_BIN_INSTALL_DIR}
-+ OUTPUT_STRIP_TRAILING_WHITESPACE )
-+ if( NOT ${__var} )
-+ tde_message_fatal( "${__prog} are NOT found.\n KDELIBS are correctly installed?" )
-+ endif( NOT ${__var} )
-+ endmacro( __internal_find_program )
-+
-+ __internal_find_program( dcopidl KDE3_DCOPIDL_EXECUTABLE )
-+ __internal_find_program( dcopidlng KDE3_DCOPIDLNG_EXECUTABLE )
-+ __internal_find_program( dcopidl2cpp KDE3_DCOPIDL2CPP_EXECUTABLE )
-+ __internal_find_program( meinproc KDE3_MEINPROC_EXECUTABLE )
-+ __internal_find_program( kconfig_compiler KDE3_KCFGC_EXECUTABLE )
-+ __internal_find_program( makekdewidgets KDE3_MAKEKDEWIDGETS_EXECUTABLE )
-+
-+ # dcopidlng is a bash script which using kde-config;
-+ # if PATH to kde-config is not set, dcopidlng will fail;
-+ # for this reason we set KDECONFIG environment variable before running dcopidlng
-+ set( KDE3_DCOPIDLNG_EXECUTABLE env KDECONFIG=${KDECONFIG_EXECUTABLE} ${KDE3_DCOPIDLNG_EXECUTABLE}
-+ CACHE INTERNAL KDE3_DCOPIDLNG_EXECUTABLE FORCE )
-+
-+ message( STATUS " found 'TDE', version ${TDE_VERSION}" )
-+
-+endif( NOT TDE_FOUND )
-+
-+include( "${TDE_CMAKE_DIR}/kdelibs.cmake" )
-diff -u -r -N applications/knetworkmanager9/cmake/modules/FindTQt.cmake src/applications/knetworkmanager9/cmake/modules/FindTQt.cmake
---- applications/knetworkmanager9/cmake/modules/FindTQt.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/FindTQt.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,81 @@
-+#################################################
-+#
-+# (C) 2010-2011 Serghei Amelian
-+# serghei (DOT) amelian (AT) gmail.com
-+#
-+# Improvements and feedback are welcome
-+#
-+# This file is released under GPL >= 2
-+#
-+#################################################
-+
-+macro( tqt_message )
-+ message( STATUS "${ARGN}" )
-+endmacro( )
-+
-+pkg_search_module( TQT tqt )
-+
-+if( NOT TQT_FOUND )
-+ tde_message_fatal( "Unable to find tqt!\n Try adding the directory in which the tqt.pc file is located\nto the PKG_CONFIG_PATH variable." )
-+endif( )
-+
-+# tmoc_executable
-+execute_process(
-+ COMMAND pkg-config tqt --variable=tmoc_executable
-+ OUTPUT_VARIABLE TMOC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
-+
-+if( TMOC_EXECUTABLE )
-+ tqt_message( " tmoc path: ${TMOC_EXECUTABLE}" )
-+else( )
-+ tde_message_fatal( "Path to tmoc is not set.\n tqt is correctly installed?" )
-+endif( )
-+
-+
-+# moc_executable
-+execute_process(
-+ COMMAND pkg-config tqt --variable=moc_executable
-+ OUTPUT_VARIABLE MOC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
-+
-+if( MOC_EXECUTABLE )
-+ tqt_message( " moc path: ${MOC_EXECUTABLE}" )
-+else( )
-+ tde_message_fatal( "Path to moc is not set.\n tqt is correctly installed?" )
-+endif( )
-+
-+
-+# uic_executable
-+execute_process(
-+ COMMAND pkg-config tqt --variable=uic_executable
-+ OUTPUT_VARIABLE UIC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
-+
-+if( UIC_EXECUTABLE )
-+ tqt_message( " uic path: ${UIC_EXECUTABLE}" )
-+else( )
-+ tde_message_fatal( "Path to uic is not set.\n tqt is correctly installed?" )
-+endif( )
-+
-+
-+# check if tqt is usable
-+tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
-+set( CMAKE_REQUIRED_INCLUDES ${TQT_INCLUDE_DIRS} )
-+foreach( _dirs ${TQT_LIBRARY_DIRS} )
-+ list( APPEND CMAKE_REQUIRED_LIBRARIES "-L${_dirs}" )
-+endforeach()
-+list( APPEND CMAKE_REQUIRED_LIBRARIES ${TQT_LIBRARIES} )
-+
-+check_cxx_source_compiles("
-+ #include <tqapplication.h>
-+ int main(int argc, char **argv) { TQApplication app(argc, argv); return 0; } "
-+ HAVE_USABLE_TQT )
-+
-+if( NOT HAVE_USABLE_TQT )
-+ tde_message_fatal( "Unable to build a simple tqt test." )
-+endif( )
-+
-+tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
-+
-+
-+# TQT_CXX_FLAGS
-+foreach( _flag ${TQT_CFLAGS_OTHER} )
-+ set( TQT_CXX_FLAGS "${TQT_CXX_FLAGS} ${_flag}" )
-+endforeach()
-diff -u -r -N applications/knetworkmanager9/cmake/modules/TDEMacros.cmake src/applications/knetworkmanager9/cmake/modules/TDEMacros.cmake
---- applications/knetworkmanager9/cmake/modules/TDEMacros.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/TDEMacros.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,1237 @@
-+#################################################
-+#
-+# (C) 2010-2011 Serghei Amelian
-+# serghei (DOT) amelian (AT) gmail.com
-+#
-+# Improvements and feedback are welcome
-+#
-+# This file is released under GPL >= 2
-+#
-+#################################################
-+
-+include( KDE3Macros ) # we will need this module for a while
-+
-+
-+#################################################
-+#####
-+##### tde_message_fatal
-+
-+macro( tde_message_fatal )
-+ message( FATAL_ERROR
-+ "#################################################\n"
-+ " ${ARGV}\n"
-+ "#################################################" )
-+endmacro( tde_message_fatal )
-+
-+
-+#################################################
-+#####
-+##### tde_install_icons( <icons...> THEME <svgicons> DESTINATION <destdir> )
-+##### default theme: hicolor
-+##### default destination: ${SHARE_INSTALL_DIR}/icons
-+
-+macro( tde_install_icons )
-+
-+ # clearing
-+ unset( _dest )
-+ unset( _req_theme )
-+ unset( _icons )
-+ set( _var _icons )
-+
-+ # parse all arguments
-+ foreach( _arg ${ARGV} )
-+ # directive DESTINATION
-+ if( _arg STREQUAL "DESTINATION" )
-+ set( _var _dest )
-+ set( _directive 1 )
-+ endif( _arg STREQUAL "DESTINATION" )
-+ # directive THEME
-+ if( _arg STREQUAL "THEME" )
-+ set( _var _req_theme )
-+ set( _directive 1 )
-+ endif( _arg STREQUAL "THEME" )
-+ # collect data
-+ if( _directive )
-+ unset( _directive )
-+ else( _directive )
-+ set( ${_var} ${${_var}} ${_arg} )
-+ set( _var _icons )
-+ endif( _directive )
-+ endforeach( _arg )
-+
-+ #defaults
-+ if( NOT _icons )
-+ set( _icons "*" )
-+ endif( NOT _icons )
-+ if( NOT _dest )
-+ set( _dest "${ICON_INSTALL_DIR}" )
-+ endif( NOT _dest )
-+
-+ foreach( _icon ${_icons} )
-+ unset( _theme ) # clearing
-+
-+ file(GLOB _icon_files *-${_icon}.png _icon_files *-${_icon}.svg* )
-+ foreach( _icon_file ${_icon_files} )
-+ # FIXME need a review
-+ string( REGEX MATCH "^.*/([a-zA-Z][a-zA-Z])([0-9a-zA-Z]+)\\-([a-z]+)\\-(.+)$" _dummy "${_icon_file}" )
-+ set( _type "${CMAKE_MATCH_1}" )
-+ set( _size "${CMAKE_MATCH_2}" )
-+ set( _group "${CMAKE_MATCH_3}" )
-+ set( _name "${CMAKE_MATCH_4}" )
-+
-+ # we must ignore invalid icon names
-+ if( _type AND _size AND _group AND _name )
-+
-+ # autodetect theme
-+ if( NOT _req_theme )
-+ unset( _theme )
-+ if( "${_type}" STREQUAL "cr" )
-+ set( _theme crystalsvg )
-+ elseif( "${_type}" STREQUAL "lo" )
-+ set( _theme locolor )
-+ endif( "${_type}" STREQUAL "cr" )
-+ # defaulting
-+ if( NOT _theme )
-+ set( _theme hicolor )
-+ endif( NOT _theme )
-+ else( NOT _req_theme )
-+ set( _theme ${_req_theme} )
-+ endif( NOT _req_theme )
-+
-+ # fix "group" name
-+ if( "${_group}" STREQUAL "mime" )
-+ set( _group "mimetypes" )
-+ endif( "${_group}" STREQUAL "mime" )
-+ if( "${_group}" STREQUAL "filesys" )
-+ set( _group "filesystems" )
-+ endif( "${_group}" STREQUAL "filesys" )
-+ if( "${_group}" STREQUAL "device" )
-+ set( _group "devices" )
-+ endif( "${_group}" STREQUAL "device" )
-+ if( "${_group}" STREQUAL "app" )
-+ set( _group "apps" )
-+ endif( "${_group}" STREQUAL "app" )
-+ if( "${_group}" STREQUAL "action" )
-+ set( _group "actions" )
-+ endif( "${_group}" STREQUAL "action" )
-+
-+ if( "${_size}" STREQUAL "sc" )
-+ install( FILES ${_icon_file} DESTINATION ${_dest}/${_theme}/scalable/${_group}/ RENAME ${_name} )
-+ else( "${_size}" STREQUAL "sc" )
-+ install( FILES ${_icon_file} DESTINATION ${_dest}/${_theme}/${_size}x${_size}/${_group}/ RENAME ${_name} )
-+ endif( "${_size}" STREQUAL "sc" )
-+
-+ endif( _type AND _size AND _group AND _name )
-+
-+ endforeach( _icon_file )
-+ endforeach( _icon )
-+
-+endmacro( tde_install_icons )
-+
-+
-+#################################################
-+#####
-+##### tde_add_lut( <source> <result> [depends] )
-+##### default depends: source
-+
-+macro( tde_add_lut _src _lut _dep )
-+ set( create_hash_table ${CMAKE_SOURCE_DIR}/kjs/create_hash_table )
-+ if( NOT _dep )
-+ set( _dep ${_src} )
-+ endif( NOT _dep )
-+ add_custom_command( OUTPUT ${_lut}
-+ COMMAND perl ARGS ${create_hash_table} ${CMAKE_CURRENT_SOURCE_DIR}/${_src} -i > ${_lut}
-+ DEPENDS ${_src} )
-+ set_source_files_properties( ${_dep} PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_lut} )
-+ unset( _dep )
-+endmacro( tde_add_lut )
-+
-+
-+#################################################
-+#####
-+##### tde_add_luts( <sources...> )
-+
-+macro( tde_add_luts )
-+ foreach( _src ${ARGV} )
-+ get_filename_component( _lut ${_src} NAME_WE )
-+ set( _lut "${_lut}.lut.h" )
-+ tde_add_lut( ${_src} ${_lut} ${_src} )
-+ endforeach( _src )
-+endmacro( tde_add_luts )
-+
-+
-+#################################################
-+#####
-+##### tde_file_to_cpp( <source> <destination> <variable> )
-+
-+macro( tde_file_to_cpp _src _dst _var )
-+ if( IS_ABSOLUTE ${_dst} )
-+ set( dst ${_dst} )
-+ else( )
-+ set( dst "${CMAKE_CURRENT_BINARY_DIR}/${_dst}" )
-+ endif( )
-+ file( READ ${_src} text )
-+ string( REGEX REPLACE "\n" "\\\\n\"\n\"" text "${text}" )
-+ set( text "/* Generated by CMake */\n\nconst char *${_var} = \n\n\"${text}\";\n" )
-+ string( REGEX REPLACE "\n\"\";\n$" ";\n" text "${text}" )
-+ file( WRITE ${dst} "${text}" )
-+endmacro( )
-+
-+
-+#################################################
-+#####
-+##### tde_install_la_file( <target> <destination> )
-+
-+macro( tde_install_la_file _target _destination )
-+
-+ get_target_property( _target_location ${_target} LOCATION )
-+ get_filename_component( _laname ${_target_location} NAME_WE )
-+ get_filename_component( _soname ${_target_location} NAME )
-+ set( _laname ${CMAKE_CURRENT_BINARY_DIR}/${_laname}.la )
-+
-+ file( WRITE ${_laname}
-+"# ${_laname} - a libtool library file, generated by cmake
-+# The name that we can dlopen(3).
-+dlname='${_soname}'
-+# Names of this library
-+library_names='${_soname} ${_soname} ${_soname}'
-+# The name of the static archive
-+old_library=''
-+# Libraries that this one depends upon.
-+dependency_libs=''
-+# Version information.\ncurrent=0\nage=0\nrevision=0
-+# Is this an already installed library?\ninstalled=yes
-+# Should we warn about portability when linking against -modules?\nshouldnotlink=yes
-+# Files to dlopen/dlpreopen\ndlopen=''\ndlpreopen=''
-+# Directory that this library needs to be installed in:
-+libdir='${_destination}'
-+" )
-+
-+ install( FILES ${_laname} DESTINATION ${_destination} )
-+
-+endmacro( tde_install_la_file )
-+
-+
-+#################################################
-+#####
-+##### tde_add_ui_files
-+
-+macro( tde_add_ui_files _sources )
-+ foreach( _ui_file ${ARGN} )
-+
-+ get_filename_component( _ui_basename ${_ui_file} NAME_WE )
-+ get_filename_component( _ui_absolute_path ${_ui_file} ABSOLUTE )
-+
-+ list( APPEND ${_sources} ${_ui_basename}.cpp )
-+
-+ add_custom_command( OUTPUT ${_ui_basename}.h ${_ui_basename}.cpp
-+ COMMAND ${CMAKE_COMMAND}
-+ -DUIC_EXECUTABLE:FILEPATH=${UIC_EXECUTABLE}
-+ -DTDE_QTPLUGINS_DIR:FILEPATH=${TDE_QTPLUGINS_DIR}
-+ -DUI_FILE:FILEPATH=${_ui_absolute_path}
-+ -P ${CMAKE_MODULE_PATH}/tde_uic.cmake
-+ COMMAND ${MOC_EXECUTABLE} ${_ui_basename}.h >> ${_ui_basename}.cpp
-+ DEPENDS ${_ui_absolute_path} )
-+
-+ endforeach( _ui_file )
-+endmacro( tde_add_ui_files )
-+
-+
-+#################################################
-+#####
-+##### tde_moc
-+
-+macro( tde_moc _sources )
-+ foreach( _input_file ${ARGN} )
-+
-+ get_filename_component( _input_file "${_input_file}" ABSOLUTE )
-+ get_filename_component( _basename ${_input_file} NAME_WE )
-+ set( _output_file "${_basename}.moc.cpp" )
-+ add_custom_command( OUTPUT ${_output_file}
-+ COMMAND
-+ ${TMOC_EXECUTABLE} ${_input_file} -o ${_output_file}
-+ DEPENDS
-+ ${_input_file} )
-+ list( APPEND ${_sources} ${_output_file} )
-+
-+ endforeach( )
-+endmacro( )
-+
-+
-+#################################################
-+#####
-+##### tde_automoc
-+
-+macro( tde_automoc )
-+ foreach( _src_file ${ARGN} )
-+
-+ get_filename_component( _src_file "${_src_file}" ABSOLUTE )
-+
-+ if( EXISTS "${_src_file}" )
-+
-+ # read source file and check if have moc include
-+ file( READ "${_src_file}" _src_content )
-+ string( REGEX MATCHALL "#include +[^ ]+\\.moc[\">]" _moc_includes "${_src_content}" )
-+
-+ # found included moc(s)?
-+ if( _moc_includes )
-+ foreach( _moc_file ${_moc_includes} )
-+
-+ # extracting moc filename
-+ string( REGEX MATCH "[^ <\"]+\\.moc" _moc_file "${_moc_file}" )
-+ set( _moc_file "${CMAKE_CURRENT_BINARY_DIR}/${_moc_file}" )
-+
-+ # create header filename
-+ get_filename_component( _src_path "${_src_file}" ABSOLUTE )
-+ get_filename_component( _src_path "${_src_path}" PATH )
-+ get_filename_component( _src_header "${_moc_file}" NAME_WE )
-+ set( _header_file "${_src_path}/${_src_header}.h" )
-+
-+ # if header doesn't exists, check in META_INCLUDES
-+ if( NOT EXISTS "${_header_file}" )
-+ unset( _found )
-+ foreach( _src_path ${_meta_includes} )
-+ set( _header_file "${_src_path}/${_src_header}.h" )
-+ if( EXISTS "${_header_file}" )
-+ set( _found 1 )
-+ break( )
-+ endif( )
-+ endforeach( )
-+ if( NOT _found )
-+ get_filename_component( _moc_file "${_moc_file}" NAME )
-+ tde_message_fatal( "AUTOMOC error: '${_moc_file}' cannot be generated.\n Reason: '${_src_file}.h' not found." )
-+ endif( )
-+ endif( )
-+
-+ # moc-ing header
-+ add_custom_command( OUTPUT ${_moc_file}
-+ COMMAND ${TMOC_EXECUTABLE} ${_header_file} -o ${_moc_file}
-+ DEPENDS ${_header_file} )
-+
-+ # create dependency between source file and moc file
-+ set_property( SOURCE ${_src_file} APPEND PROPERTY OBJECT_DEPENDS ${_moc_file} )
-+
-+ endforeach( _moc_file )
-+
-+ endif( _moc_includes )
-+
-+ endif( EXISTS "${_src_file}" )
-+
-+ endforeach( _src_file )
-+endmacro( tde_automoc )
-+
-+
-+#################################################
-+#####
-+##### __tde_internal_process_sources
-+
-+macro( __tde_internal_process_sources _sources )
-+
-+ unset( ${_sources} )
-+
-+ foreach( _arg ${ARGN} )
-+ get_filename_component( _ext ${_arg} EXT )
-+ get_filename_component( _name ${_arg} NAME_WE )
-+ get_filename_component( _path ${_arg} PATH )
-+
-+ # if not path, set it to "."
-+ if( NOT _path )
-+ set( _path "./" )
-+ endif( NOT _path )
-+
-+ # handle .ui files
-+ if( ${_ext} STREQUAL ".ui" )
-+ tde_add_ui_files( ${_sources} ${_arg} )
-+
-+ # handle .skel files
-+ elseif( ${_ext} STREQUAL ".skel" )
-+ kde3_add_dcop_skels( ${_sources} ${_path}/${_name}.h )
-+
-+ # handle .stub files
-+ elseif( ${_ext} STREQUAL ".stub" )
-+ kde3_add_dcop_stubs( ${_sources} ${_path}/${_name}.h )
-+
-+ # handle .kcfgc files
-+ elseif( ${_ext} STREQUAL ".kcfgc" )
-+ kde3_add_kcfg_files( ${_sources} ${_arg} )
-+
-+ # handle any other files
-+ else( ${_ext} STREQUAL ".ui" )
-+ list(APPEND ${_sources} ${_arg} )
-+ endif( ${_ext} STREQUAL ".ui" )
-+ endforeach( _arg )
-+
-+endmacro( __tde_internal_process_sources )
-+
-+
-+#################################################
-+#####
-+##### tde_install_libtool_file
-+
-+macro( tde_install_libtool_file _target _destination )
-+
-+ get_target_property( _target_location ${_target} LOCATION )
-+
-+ # get name of target
-+ get_filename_component( _name ${_target_location} NAME_WE )
-+
-+ # get .la name
-+ set( _laname ${_name}.la )
-+
-+ # get .so name
-+ get_filename_component( _soname ${_target_location} NAME )
-+
-+ # get version of target
-+ get_target_property( _target_version ${_target} VERSION )
-+ get_target_property( _target_soversion ${_target} SOVERSION )
-+
-+ # we have so version
-+ if( _target_version )
-+ set( _library_name_1 "${_soname}.${_target_version}" )
-+ set( _library_name_2 "${_soname}.${_target_soversion}" )
-+ set( _library_name_3 "${_soname}" )
-+
-+ string( REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$" _dummy "${_target_version}" )
-+ set( _version_current "${CMAKE_MATCH_1}" )
-+ set( _version_age "${CMAKE_MATCH_2}" )
-+ set( _version_revision "${CMAKE_MATCH_3}" )
-+
-+ # we have no so version (module?)
-+ else( _target_version )
-+ set( _library_name_1 "${_soname}" )
-+ set( _library_name_2 "${_soname}" )
-+ set( _library_name_3 "${_soname}" )
-+ set( _version_current "0" )
-+ set( _version_age "0" )
-+ set( _version_revision "0" )
-+ endif( _target_version )
-+
-+ if( IS_ABSOLUTE ${_destination} )
-+ set( _libdir "${_destination}" )
-+ else( IS_ABSOLUTE ${_destination} )
-+ set( _libdir "${CMAKE_INSTALL_PREFIX}/${_destination}" )
-+ endif( IS_ABSOLUTE ${_destination} )
-+
-+ configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_libtool_file.cmake "${_laname}" @ONLY )
-+
-+ install( FILES "${CMAKE_CURRENT_BINARY_DIR}/${_laname}" DESTINATION ${_destination} )
-+
-+endmacro( tde_install_libtool_file )
-+
-+
-+#################################################
-+#####
-+##### tde_install_export / tde_import
-+
-+function( tde_install_export )
-+ file( GLOB export_files ${CMAKE_CURRENT_BINARY_DIR}/export-*.cmake )
-+
-+ set( mode "WRITE" )
-+ foreach( filename ${export_files} )
-+ file( READ ${filename} content )
-+ file( ${mode} "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.cmake" "${content}" )
-+ set( mode "APPEND" )
-+ endforeach( )
-+
-+ install( FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.cmake" DESTINATION ${CMAKE_INSTALL_DIR} )
-+endfunction( )
-+
-+
-+macro( tde_import _library )
-+ message( STATUS "checking for '${_library}'" )
-+ string( TOUPPER "BUILD_${_library}" _build )
-+ if( ${_build} )
-+ message( STATUS " ok, activated for build" )
-+ else()
-+ if( EXISTS "${TDE_CMAKE_DIR}/${_library}.cmake" )
-+ include( "${TDE_CMAKE_DIR}/${_library}.cmake" )
-+ message( STATUS " ok, found import file" )
-+ else()
-+ tde_message_fatal( "'${_library}' are required,\n but is not installed nor selected for build" )
-+ endif()
-+ endif()
-+endmacro()
-+
-+
-+#################################################
-+#####
-+##### tde_add_library
-+
-+macro( tde_add_library _arg_target )
-+
-+ unset( _target )
-+ unset( _type )
-+ unset( _static_pic )
-+ unset( _automoc )
-+ unset( _meta_includes )
-+ unset( _no_libtool_file )
-+ unset( _no_export )
-+ unset( _version )
-+ unset( _sources )
-+ unset( _destination )
-+ unset( _embed )
-+ unset( _link )
-+ unset( _dependencies )
-+ unset( _storage )
-+
-+ set( _shouldnotlink no )
-+
-+ foreach( _arg ${ARGV} )
-+
-+ # this variable help us to skip
-+ # storing unapropriate values (i.e. directives)
-+ unset( _skip_store )
-+
-+ # found one of directives: "SHARED", "STATIC", "MODULE"
-+ if( "${_arg}" STREQUAL "SHARED" OR "${_arg}" STREQUAL "STATIC" OR "${_arg}" STREQUAL "MODULE" )
-+ set( _skip_store 1 )
-+ set( _type "${_arg}" )
-+ endif( "${_arg}" STREQUAL "SHARED" OR "${_arg}" STREQUAL "STATIC" OR "${_arg}" STREQUAL "MODULE" )
-+
-+ # found directive "STATIC_PIC"
-+ if( "${_arg}" STREQUAL "STATIC_PIC" )
-+ set( _skip_store 1 )
-+ set( _type "STATIC" )
-+ set( _static_pic 1 )
-+ endif( "${_arg}" STREQUAL "STATIC_PIC" )
-+
-+ # found directive "AUTOMOC"
-+ if( "${_arg}" STREQUAL "AUTOMOC" )
-+ set( _skip_store 1 )
-+ set( _automoc 1 )
-+ endif( "${_arg}" STREQUAL "AUTOMOC" )
-+
-+ # found directive "META_INCLUDES"
-+ if( "${_arg}" STREQUAL "META_INCLUDES" )
-+ set( _skip_store 1 )
-+ set( _storage "_meta_includes" )
-+ endif( )
-+
-+ # found directive "NO_LIBTOOL_FILE"
-+ if( "${_arg}" STREQUAL "NO_LIBTOOL_FILE" )
-+ set( _skip_store 1 )
-+ set( _no_libtool_file 1 )
-+ endif( "${_arg}" STREQUAL "NO_LIBTOOL_FILE" )
-+
-+ # found directive "NO_EXPORT"
-+ if( "${_arg}" STREQUAL "NO_EXPORT" )
-+ set( _skip_store 1 )
-+ set( _no_export 1 )
-+ endif( "${_arg}" STREQUAL "NO_EXPORT" )
-+
-+ # found directive "VERSION"
-+ if( "${_arg}" STREQUAL "VERSION" )
-+ set( _skip_store 1 )
-+ set( _storage "_version" )
-+ endif( "${_arg}" STREQUAL "VERSION" )
-+
-+ # found directive "SOURCES"
-+ if( "${_arg}" STREQUAL "SOURCES" )
-+ set( _skip_store 1 )
-+ set( _storage "_sources" )
-+ endif( "${_arg}" STREQUAL "SOURCES" )
-+
-+ # found directive "EMBED"
-+ if( "${_arg}" STREQUAL "EMBED" )
-+ set( _skip_store 1 )
-+ set( _storage "_embed" )
-+ endif( "${_arg}" STREQUAL "EMBED" )
-+
-+ # found directive "LINK"
-+ if( "${_arg}" STREQUAL "LINK" )
-+ set( _skip_store 1 )
-+ set( _storage "_link" )
-+ endif( "${_arg}" STREQUAL "LINK" )
-+
-+ # found directive "DEPENDENCIES"
-+ if( "${_arg}" STREQUAL "DEPENDENCIES" )
-+ set( _skip_store 1 )
-+ set( _storage "_dependencies" )
-+ endif( "${_arg}" STREQUAL "DEPENDENCIES" )
-+
-+ # found directive "DESTINATION"
-+ if( "${_arg}" STREQUAL "DESTINATION" )
-+ set( _skip_store 1 )
-+ set( _storage "_destination" )
-+ unset( ${_storage} )
-+ endif( "${_arg}" STREQUAL "DESTINATION" )
-+
-+ # storing value
-+ if( _storage AND NOT _skip_store )
-+ list( APPEND ${_storage} ${_arg} )
-+ list( REMOVE_DUPLICATES ${_storage} )
-+ endif( _storage AND NOT _skip_store )
-+
-+ endforeach( _arg )
-+
-+ # if no type is set, we choose one
-+ # based on BUILD_SHARED_LIBS
-+ if( NOT _type )
-+ if( BUILD_SHARED_LIBS )
-+ set( _type "SHARED" )
-+ else( BUILD_SHARED_LIBS )
-+ set( _type "STATIC" )
-+ endif( BUILD_SHARED_LIBS )
-+ endif( NOT _type )
-+
-+ # change target name, based on type
-+ string( TOLOWER "${_type}" _type_lower )
-+ set( _target "${_arg_target}-${_type_lower}" )
-+
-+ # create variables like "LIB_xxx" for convenience
-+ if( ${_type} STREQUAL "SHARED" )
-+ string( TOUPPER "${_arg_target}" _tmp )
-+ set( LIB_${_tmp} ${_target} CACHE INTERNAL LIB_${tmp} FORCE )
-+ endif( ${_type} STREQUAL "SHARED" )
-+
-+ # disallow target without sources
-+ if( NOT _sources )
-+ message( FATAL_ERROR "\nTarget [$_target] have no sources." )
-+ endif( NOT _sources )
-+
-+ # processing different types of sources
-+ __tde_internal_process_sources( _sources ${_sources} )
-+
-+ # set automoc
-+ if( _automoc )
-+ tde_automoc( ${_sources} )
-+ endif( _automoc )
-+
-+ # add target
-+ add_library( ${_target} ${_type} ${_sources} )
-+
-+ # we assume that modules have no prefix and no version
-+ # also, should not link
-+ if( ${_type} STREQUAL "MODULE" )
-+ set_target_properties( ${_target} PROPERTIES PREFIX "" )
-+ unset( _version )
-+ set( _shouldnotlink yes )
-+ endif( ${_type} STREQUAL "MODULE" )
-+
-+ # set real name of target
-+ set_target_properties( ${_target} PROPERTIES OUTPUT_NAME ${_arg_target} )
-+
-+ # set -fPIC flag for static libraries
-+ if( _static_pic )
-+ set_target_properties( ${_target} PROPERTIES COMPILE_FLAGS -fPIC )
-+ endif( _static_pic )
-+
-+ # set version
-+ if( _version )
-+ string( REGEX MATCH "^[0-9]+" _soversion ${_version} )
-+ set_target_properties( ${_target} PROPERTIES VERSION ${_version} SOVERSION ${_soversion} )
-+ endif( _version )
-+
-+ # set interface libraries (only for shared)
-+ unset( _shared_libs )
-+ foreach( _lib ${_link} )
-+ #get_target_property( _lib_type ${_lib} TYPE )
-+ #if( NOT "STATIC_LIBRARY" STREQUAL "${_lib_type}" )
-+ if( NOT ${_lib} MATCHES ".+-static" )
-+ list( APPEND _shared_libs ${_lib} )
-+ endif( NOT ${_lib} MATCHES ".+-static" )
-+ #endif( NOT "STATIC_LIBRARY" STREQUAL "${_lib_type}" )
-+ endforeach( _lib )
-+ target_link_libraries( ${_target} LINK_INTERFACE_LIBRARIES ${_shared_libs} )
-+
-+ # set embedded archives
-+ if( _embed )
-+ list( INSERT _link 0 -Wl,-whole-archive ${_embed} -Wl,-no-whole-archive )
-+ endif( _embed )
-+
-+ # set link libraries
-+ if( _link )
-+ target_link_libraries( ${_target} ${_link} )
-+ endif( )
-+
-+ # set dependencies
-+ if( _dependencies )
-+ add_dependencies( ${_target} ${_dependencies} )
-+ endif( _dependencies )
-+
-+ # if destination directory is set
-+ if( _destination )
-+
-+ # we export only shared libs (no static, no modules);
-+ # also, do not export targets marked as "NO_EXPORT" (usually for kdeinit)
-+ if( "SHARED" STREQUAL ${_type} AND NOT _no_export )
-+
-+ # get target properties: output name, version, soversion
-+ get_target_property( _output ${_target} LOCATION )
-+ get_filename_component( _output ${_output} NAME )
-+ get_target_property( _version ${_target} VERSION )
-+ get_target_property( _soversion ${_target} SOVERSION )
-+
-+ if( _version )
-+ set( _location "${_destination}/${_output}.${_version}" )
-+ set( _soname "${_output}.${_soversion}" )
-+ else( )
-+ set( _location "${_destination}/${_output}" )
-+ set( _soname "${_output}" )
-+ endif( )
-+
-+ configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_export_library.cmake "${PROJECT_BINARY_DIR}/export-${_target}.cmake" @ONLY )
-+ endif( )
-+
-+ # install target
-+ install( TARGETS ${_target} DESTINATION ${_destination} )
-+
-+ # install .la files for dynamic libraries
-+ if( NOT "STATIC" STREQUAL ${_type} AND NOT _no_libtool_file )
-+ tde_install_libtool_file( ${_target} ${_destination} )
-+ endif( )
-+
-+ endif( _destination )
-+
-+endmacro( tde_add_library )
-+
-+
-+#################################################
-+#####
-+##### tde_add_kpart
-+
-+macro( tde_add_kpart _target )
-+ tde_add_library( ${_target} ${ARGN} MODULE )
-+endmacro( tde_add_kpart )
-+
-+
-+#################################################
-+#####
-+##### tde_add_executable
-+
-+macro( tde_add_executable _arg_target )
-+
-+ unset( _target )
-+ unset( _automoc )
-+ unset( _meta_includes )
-+ unset( _setuid )
-+ unset( _sources )
-+ unset( _destination )
-+ unset( _link )
-+ unset( _dependencies )
-+ unset( _storage )
-+
-+ foreach( _arg ${ARGV} )
-+
-+ # this variable help us to skip
-+ # storing unapropriate values (i.e. directives)
-+ unset( _skip_store )
-+
-+ # found directive "AUTOMOC"
-+ if( "${_arg}" STREQUAL "AUTOMOC" )
-+ set( _skip_store 1 )
-+ set( _automoc 1 )
-+ endif( "${_arg}" STREQUAL "AUTOMOC" )
-+
-+ # found directive "META_INCLUDES"
-+ if( "${_arg}" STREQUAL "META_INCLUDES" )
-+ set( _skip_store 1 )
-+ set( _storage "_meta_includes" )
-+ endif( )
-+
-+ # found directive "SETUID"
-+ if( "${_arg}" STREQUAL "SETUID" )
-+ set( _skip_store 1 )
-+ set( _setuid 1 )
-+ endif( "${_arg}" STREQUAL "SETUID" )
-+
-+ # found directive "SOURCES"
-+ if( "${_arg}" STREQUAL "SOURCES" )
-+ set( _skip_store 1 )
-+ set( _storage "_sources" )
-+ endif( "${_arg}" STREQUAL "SOURCES" )
-+
-+ # found directive "LINK"
-+ if( "${_arg}" STREQUAL "LINK" )
-+ set( _skip_store 1 )
-+ set( _storage "_link" )
-+ endif( "${_arg}" STREQUAL "LINK" )
-+
-+ # found directive "DEPENDENCIES"
-+ if( "${_arg}" STREQUAL "DEPENDENCIES" )
-+ set( _skip_store 1 )
-+ set( _storage "_dependencies" )
-+ endif( "${_arg}" STREQUAL "DEPENDENCIES" )
-+
-+ # found directive "DESTINATION"
-+ if( "${_arg}" STREQUAL "DESTINATION" )
-+ set( _skip_store 1 )
-+ set( _storage "_destination" )
-+ unset( ${_storage} )
-+ endif( "${_arg}" STREQUAL "DESTINATION" )
-+
-+ # storing value
-+ if( _storage AND NOT _skip_store )
-+ #set( ${_storage} "${${_storage}} ${_arg}" )
-+ list( APPEND ${_storage} ${_arg} )
-+ endif( _storage AND NOT _skip_store )
-+
-+ endforeach( _arg )
-+
-+ set( _target "${_arg_target}" )
-+
-+ # disallow target without sources
-+ if( NOT _sources )
-+ message( FATAL_ERROR "\nTarget [$_target] have no sources." )
-+ endif( NOT _sources )
-+
-+ # processing different types of sources
-+ __tde_internal_process_sources( _sources ${_sources} )
-+
-+ # set automoc
-+ if( _automoc )
-+ tde_automoc( ${_sources} )
-+ endif( _automoc )
-+
-+ # add target
-+ add_executable( ${_target} ${_sources} )
-+
-+ # set link libraries
-+ if( _link )
-+ target_link_libraries( ${_target} ${_link} )
-+ endif( _link )
-+
-+ # set dependencies
-+ if( _dependencies )
-+ add_dependencies( ${_target} ${_dependencies} )
-+ endif( _dependencies )
-+
-+ # set destination directory
-+ if( _destination )
-+ if( _setuid )
-+ install( TARGETS ${_target} DESTINATION ${_destination} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE SETUID )
-+ else( _setuid )
-+ install( TARGETS ${_target} DESTINATION ${_destination} )
-+ endif( _setuid )
-+ endif( _destination )
-+
-+endmacro( tde_add_executable )
-+
-+
-+#################################################
-+#####
-+##### tde_add_kdeinit_executable
-+
-+macro( tde_add_kdeinit_executable _target )
-+
-+ configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_kdeinit_executable.cmake ${_target}_kdeinit_executable.cpp COPYONLY )
-+ configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_kdeinit_module.cmake ${_target}_kdeinit_module.cpp COPYONLY )
-+
-+ unset( _sources )
-+ unset( _runtime_destination )
-+ unset( _library_destination )
-+ unset( _plugin_destination )
-+
-+ # default storage is _sources
-+ set( _storage _sources )
-+
-+ # set default export to NO_EXPORT
-+ set( _export "NO_EXPORT" )
-+
-+ foreach( _arg ${ARGN} )
-+
-+ # this variable help us to skip
-+ # storing unapropriate values (i.e. directives)
-+ unset( _skip_store )
-+
-+ # found directive "EXPORT"
-+ if( "${_arg}" STREQUAL "EXPORT" )
-+ set( _skip_store 1 )
-+ unset( _export )
-+ endif( "${_arg}" STREQUAL "EXPORT" )
-+
-+ # found directive "RUNTIME_DESTINATION"
-+ if( "${_arg}" STREQUAL "RUNTIME_DESTINATION" )
-+ set( _skip_store 1 )
-+ set( _storage "_runtime_destination" )
-+ unset( ${_storage} )
-+ endif( "${_arg}" STREQUAL "RUNTIME_DESTINATION" )
-+
-+ # found directive "LIBRARY_DESTINATION"
-+ if( "${_arg}" STREQUAL "LIBRARY_DESTINATION" )
-+ set( _skip_store 1 )
-+ set( _storage "_library_destination" )
-+ unset( ${_storage} )
-+ endif( "${_arg}" STREQUAL "LIBRARY_DESTINATION" )
-+
-+ # found directive "PLUGIN_DESTINATION"
-+ if( "${_arg}" STREQUAL "PLUGIN_DESTINATION" )
-+ set( _skip_store 1 )
-+ set( _storage "_plugin_destination" )
-+ unset( ${_storage} )
-+ endif( "${_arg}" STREQUAL "PLUGIN_DESTINATION" )
-+
-+ # storing value
-+ if( _storage AND NOT _skip_store )
-+ list( APPEND ${_storage} ${_arg} )
-+ set( _storage "_sources" )
-+ endif( _storage AND NOT _skip_store )
-+
-+ endforeach( _arg )
-+
-+ # if destinations are not set, we using some defaults
-+ # we assume that kdeinit executable MUST be installed
-+ # (otherwise why we build it?)
-+ if( NOT _runtime_destination )
-+ set( _runtime_destination ${BIN_INSTALL_DIR} )
-+ endif( NOT _runtime_destination )
-+ if( NOT _library_destination )
-+ set( _library_destination ${LIB_INSTALL_DIR} )
-+ endif( NOT _library_destination )
-+ if( NOT _plugin_destination )
-+ set( _plugin_destination ${PLUGIN_INSTALL_DIR} )
-+ endif( NOT _plugin_destination )
-+
-+ # create the library
-+ tde_add_library( kdeinit_${_target} ${_sources} SHARED ${_export}
-+ DESTINATION ${_library_destination}
-+ )
-+
-+ # create the executable
-+ tde_add_executable( ${_target}
-+ SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${_target}_kdeinit_executable.cpp
-+ LINK kdeinit_${_target}-shared
-+ DESTINATION ${_runtime_destination}
-+ )
-+
-+ # create the plugin
-+ tde_add_kpart( ${_target}
-+ SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${_target}_kdeinit_module.cpp
-+ LINK kdeinit_${_target}-shared
-+ DESTINATION ${_plugin_destination}
-+ )
-+
-+endmacro( tde_add_kdeinit_executable )
-+
-+
-+#################################################
-+#####
-+##### tde_create_translation
-+
-+macro( tde_create_translation )
-+
-+ unset( _srcs )
-+ unset( _lang )
-+ unset( _dest )
-+ unset( _directive )
-+ unset( _var )
-+
-+ foreach( _arg ${ARGN} )
-+
-+ # found directive "FILES"
-+ if( "${_arg}" STREQUAL "FILES" )
-+ unset( _srcs )
-+ set( _var _srcs )
-+ set( _directive 1 )
-+ endif( )
-+
-+ # found directive "LANG"
-+ if( "${_arg}" STREQUAL "LANG" )
-+ unset( _lang )
-+ set( _var _lang )
-+ set( _directive 1 )
-+ endif( )
-+
-+ # found directive "DESTINATION"
-+ if( "${_arg}" STREQUAL "DESTINATION" )
-+ unset( _dest )
-+ set( _var _dest )
-+ set( _directive 1 )
-+ endif( )
-+
-+ # collect data
-+ if( _directive )
-+ unset( _directive )
-+ elseif( _var )
-+ list( APPEND ${_var} ${_arg} )
-+ endif()
-+
-+ endforeach( )
-+
-+ if( NOT MSGFMT_EXECUTABLE )
-+ tde_message_fatal( "MSGFMT_EXECUTABLE variable is not defined" )
-+ elseif( NOT _lang )
-+ tde_message_fatal( "missing LANG directive" )
-+ elseif( NOT _dest )
-+ set( _dest "${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES" )
-+ endif( )
-+
-+ # if no file specified, include all *.po files
-+ if( NOT _srcs )
-+ file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
-+ endif()
-+ if( NOT _srcs )
-+ tde_message_fatal( "no source files" )
-+ endif()
-+
-+ # generate *.mo files
-+ foreach( _src ${_srcs} )
-+ get_filename_component( _src ${_src} ABSOLUTE )
-+ get_filename_component( _out ${_src} NAME_WE )
-+ set( _out_name "${_out}-${_lang}.mo" )
-+ set( _out_real_name "${_out}.mo" )
-+ add_custom_command(
-+ OUTPUT ${_out_name}
-+ COMMAND ${MSGFMT_EXECUTABLE} ${_src} -o ${_out_name}
-+ DEPENDS ${_src} )
-+ add_custom_target( "${_out}-${_lang}-translation" ALL DEPENDS ${_out_name} )
-+ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${_out_name} RENAME ${_out_real_name} DESTINATION ${_dest} )
-+ endforeach( )
-+
-+endmacro( )
-+
-+
-+#################################################
-+#####
-+##### tde_create_handbook
-+
-+macro( tde_create_handbook )
-+
-+ unset( _target )
-+ unset( _dest )
-+ unset( _noindex )
-+ unset( _srcs )
-+ unset( _extra )
-+ unset( _srcdir )
-+
-+ set( _lang en )
-+ set( _first_arg 1 )
-+ set( _var _target )
-+
-+ foreach( _arg ${ARGN} )
-+
-+ # found directive "NOINDEX"
-+ if( "${_arg}" STREQUAL "NOINDEX" )
-+ set( _noindex 1 )
-+ set( _directive 1 )
-+ endif()
-+
-+ # found directive "FILES"
-+ if( "${_arg}" STREQUAL "FILES" )
-+ unset( _srcs )
-+ set( _var _srcs )
-+ set( _directive 1 )
-+ endif()
-+
-+ # found directive "EXTRA"
-+ if( "${_arg}" STREQUAL "EXTRA" )
-+ unset( _extra )
-+ set( _var _extra )
-+ set( _directive 1 )
-+ endif()
-+
-+ # found directive "SRCDIR"
-+ if( "${_arg}" STREQUAL "SRCDIR" )
-+ unset( _srcdir )
-+ set( _var _srcdir )
-+ set( _directive 1 )
-+ endif()
-+
-+ # found directive DESTINATION
-+ if( _arg STREQUAL "DESTINATION" )
-+ unset( _dest )
-+ set( _var _dest )
-+ set( _directive 1 )
-+ endif()
-+
-+ # found directive "LANG"
-+ if( "${_arg}" STREQUAL "LANG" )
-+ unset( _lang )
-+ set( _var _lang )
-+ set( _directive 1 )
-+ endif()
-+
-+ # collect data
-+ if( _directive )
-+ unset( _directive )
-+ elseif( _var )
-+ if( _first_arg )
-+ set( _target "${_arg}" )
-+ else()
-+ list( APPEND ${_var} ${_arg} )
-+ endif()
-+ endif()
-+
-+ unset( _first_arg )
-+
-+ endforeach()
-+
-+ # if no target specified, try to guess it from DESTINATION
-+ if( NOT _target )
-+ if( NOT _dest )
-+ tde_message_fatal( "target name cannot be determined because DESTINATION is not set" )
-+ endif()
-+ string( REPLACE "/" "-" _target "${_dest}" )
-+ endif()
-+
-+ set( _target "${_target}-${_lang}-handbook" )
-+
-+ # if no file specified, include all docbooks, stylesheets and images
-+ if( NOT _srcs )
-+ file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.docbook *.css *.png )
-+ endif()
-+
-+ # if no destination specified, defaulting to HTML_INSTALL_DIR
-+ if( NOT _dest )
-+ set( _dest "${HTML_INSTALL_DIR}/${_lang}" )
-+ # if destination is NOT absolute path,
-+ # we assume that is relative to HTML_INSTALL_DIR
-+ elseif( NOT IS_ABSOLUTE ${_dest} )
-+ set( _dest "${HTML_INSTALL_DIR}/${_lang}/${_dest}" )
-+ endif()
-+
-+ if( NOT _srcs )
-+ tde_message_fatal( "no source files" )
-+ endif()
-+
-+ if( NOT _noindex )
-+
-+ # check for index.docbook
-+ list( FIND _srcs "index.docbook" _find_index )
-+ if( -1 EQUAL _find_index )
-+ tde_message_fatal( "missing index.docbook file" )
-+ endif()
-+
-+ # check for srcdir
-+ if( _srcdir )
-+ set( _srcdir "--srcdir=${_srcdir}" )
-+ endif()
-+
-+ add_custom_command(
-+ OUTPUT index.cache.bz2
-+ COMMAND ${KDE3_MEINPROC_EXECUTABLE} ${_srcdir} --check --cache index.cache.bz2 ${CMAKE_CURRENT_SOURCE_DIR}/index.docbook
-+ DEPENDS ${_srcs} )
-+
-+ add_custom_target( ${_target} ALL DEPENDS index.cache.bz2 )
-+
-+ list( APPEND _srcs ${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2 )
-+
-+ endif()
-+
-+ install( FILES ${_srcs} ${_extra} DESTINATION ${_dest} )
-+ tde_install_symlink( ${TDE_HTML_DIR}/${_lang}/common ${_dest} )
-+
-+endmacro( )
-+
-+
-+#################################################
-+#####
-+##### tde_include_tqt
-+
-+macro( tde_include_tqt )
-+ foreach( _cpp ${ARGN} )
-+ set_source_files_properties( ${_cpp} PROPERTIES COMPILE_FLAGS "-include tqt.h" )
-+ endforeach()
-+endmacro( )
-+
-+
-+#################################################
-+#####
-+##### tde_install_symlink
-+
-+macro( tde_install_symlink _target _link )
-+
-+ # if path is relative, we must to prefix it with CMAKE_INSTALL_PREFIX
-+ if( IS_ABSOLUTE "${_link}" )
-+ set( _destination "${_link}" )
-+ else( IS_ABSOLUTE "${_link}" )
-+ set( _destination "${CMAKE_INSTALL_PREFIX}/${_link}" )
-+ endif( IS_ABSOLUTE "${_link}" )
-+
-+ get_filename_component( _path "${_destination}" PATH )
-+ if( NOT IS_DIRECTORY "\$ENV{DESTDIR}${_path}" )
-+ install( CODE "file( MAKE_DIRECTORY \"\$ENV{DESTDIR}${_path}\" )" )
-+ endif( NOT IS_DIRECTORY "\$ENV{DESTDIR}${_path}" )
-+
-+ install( CODE "execute_process( COMMAND ln -s ${_target} \$ENV{DESTDIR}${_destination} )" )
-+
-+endmacro( tde_install_symlink )
-+
-+
-+#################################################
-+#####
-+##### tde_install_empty_directory
-+
-+macro( tde_install_empty_directory _path )
-+
-+ # if path is relative, we must to prefix it with CMAKE_INSTALL_PREFIX
-+ if( IS_ABSOLUTE "${_path}" )
-+ set( _destination "${_path}" )
-+ else( IS_ABSOLUTE "${_path}" )
-+ set( _destination "${CMAKE_INSTALL_PREFIX}/${_path}" )
-+ endif( IS_ABSOLUTE "${_path}" )
-+
-+ install( CODE "file( MAKE_DIRECTORY \"\$ENV{DESTDIR}${_destination}\" )" )
-+
-+endmacro( tde_install_empty_directory )
-+
-+
-+#################################################
-+#####
-+##### tde_conditional_add_subdirectory
-+
-+macro( tde_conditional_add_subdirectory _cond _path )
-+
-+ if( ${_cond} )
-+ add_subdirectory( "${_path}" )
-+ endif( ${_cond} )
-+
-+endmacro( tde_conditional_add_subdirectory )
-+
-+
-+#################################################
-+#####
-+##### tde_auto_add_subdirectories
-+
-+macro( tde_auto_add_subdirectories )
-+ file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
-+ foreach( _dir ${_dirs} )
-+ if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} )
-+ if( NOT ${_dir} STREQUAL ".svn" AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/CMakeLists.txt )
-+ add_subdirectory( ${_dir} )
-+ endif()
-+ endif()
-+ endforeach()
-+endmacro()
-+
-+
-+#################################################
-+#####
-+##### tde_save / tde_restore
-+
-+macro( tde_save )
-+ foreach( _var ${ARGN} )
-+ set( __bak_${_var} ${${_var}} )
-+ endforeach()
-+endmacro()
-+
-+macro( tde_restore )
-+ foreach( _var ${ARGN} )
-+ set( ${_var} ${__bak_${_var}} )
-+ unset( __bak_${_var} )
-+ endforeach()
-+endmacro()
-+
-+
-+#################################################
-+#####
-+##### tde_setup_install_path
-+
-+macro( tde_setup_install_path _path _default )
-+ if( DEFINED ${_path} )
-+ set( ${_path} "${${_path}}" CACHE INTERNAL "" FORCE )
-+ else( )
-+ set( ${_path} "${_default}" )
-+ endif( )
-+endmacro( )
-+
-+
-+##################################################
-+
-+if( ${CMAKE_SOURCE_DIR} MATCHES ${CMAKE_BINARY_DIR} )
-+ tde_message_fatal( "Please use out-of-source building, like this:
-+ \n rm ${CMAKE_SOURCE_DIR}/CMakeCache.txt
-+ mkdir /tmp/${PROJECT_NAME}.build
-+ cd /tmp/${PROJECT_NAME}.build
-+ cmake ${CMAKE_SOURCE_DIR} [arguments...]" )
-+endif( )
-diff -u -r -N applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake src/applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake
---- applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,67 @@
-+#################################################
-+#
-+# (C) 2010-2011 Serghei Amelian
-+# serghei (DOT) amelian (AT) gmail.com
-+#
-+# Improvements and feedback are welcome
-+#
-+# This file is released under GPL >= 2
-+#
-+#################################################
-+
-+#################################################
-+#####
-+##### tde_internal_setup_path
-+
-+macro( _tde_internal_setup_path _path _default _comment )
-+ if( DEFINED ${_path} )
-+ set( ${_path} "${${_path}}" CACHE PATH "${_comment}" )
-+ else( DEFINED ${_path} )
-+ set( ${_path} "${_default}" )
-+ endif( DEFINED ${_path} )
-+endmacro( _tde_internal_setup_path )
-+
-+
-+#################################################
-+#####
-+##### tde_setup_paths
-+
-+macro( tde_setup_paths )
-+
-+ # install paths
-+ _tde_internal_setup_path( EXEC_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" "Base directory for executables and libraries" )
-+ _tde_internal_setup_path( SHARE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/share" "Base directory for files which go to share/" )
-+ _tde_internal_setup_path( BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" "The install dir for executables (default ${EXEC_INSTALL_PREFIX}/bin)" )
-+ _tde_internal_setup_path( SBIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/sbin" "The install dir for system executables (default ${EXEC_INSTALL_PREFIX}/sbin)" )
-+ _tde_internal_setup_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" "The subdirectory relative to the install prefix where libraries will be installed (default is ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX})" )
-+ _tde_internal_setup_path( LIBEXEC_INSTALL_DIR "${LIB_INSTALL_DIR}/trinity/libexec" "The subdirectory relative to the install prefix where libraries will be installed (default is ${LIB_INSTALL_DIR}/trinity/libexec)" )
-+ _tde_internal_setup_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" "The subdirectory to the header prefix" )
-+
-+ _tde_internal_setup_path( CMAKE_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/cmake" "The install dir for cmake import modules" )
-+ _tde_internal_setup_path( PLUGIN_INSTALL_DIR "${LIB_INSTALL_DIR}/trinity" "The subdirectory relative to the install prefix where plugins will be installed (default is ${LIB_INSTALL_DIR}/trinity)" )
-+ _tde_internal_setup_path( CONFIG_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/config" "The config file install dir" )
-+ _tde_internal_setup_path( DATA_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/apps" "The parent directory where applications can install their data" )
-+ _tde_internal_setup_path( HTML_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/doc/kde/HTML" "The HTML install dir for documentation" )
-+ _tde_internal_setup_path( ICON_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/icons" "The icon install dir (default ${SHARE_INSTALL_PREFIX}/share/icons/)" )
-+ _tde_internal_setup_path( KCFG_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/config.kcfg" "The install dir for kconfig files" )
-+ _tde_internal_setup_path( LOCALE_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/locale" "The install dir for translations" )
-+ _tde_internal_setup_path( APPS_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/applnk" "The install dir for the application desktop files" )
-+ _tde_internal_setup_path( MIME_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/mimelnk" "The install dir for the mimetype desktop files" )
-+ _tde_internal_setup_path( SERVICES_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/services" "The install dir for service (desktop, protocol, ...) files" )
-+ _tde_internal_setup_path( SERVICETYPES_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/servicetypes" "The install dir for servicestypes desktop files" )
-+ _tde_internal_setup_path( SOUND_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/sounds" "The install dir for sound files" )
-+ _tde_internal_setup_path( TEMPLATES_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/templates" "The install dir for templates (Create new file...)" )
-+ _tde_internal_setup_path( WALLPAPER_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/wallpapers" "The install dir for wallpapers" )
-+ _tde_internal_setup_path( KCONF_UPDATE_INSTALL_DIR "${DATA_INSTALL_DIR}/kconf_update" "The kconf_update install dir" )
-+ _tde_internal_setup_path( AUTOSTART_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/autostart" "The install dir for autostart files" )
-+
-+ _tde_internal_setup_path( SYSCONF_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/etc" "The sysconfig install dir (default ${CMAKE_INSTALL_PREFIX}/etc)" )
-+ _tde_internal_setup_path( MAN_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/man" "The man install dir (default ${SHARE_INSTALL_PREFIX}/man/)" )
-+ _tde_internal_setup_path( INFO_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/info" "The info install dir (default ${SHARE_INSTALL_PREFIX}/info)" )
-+
-+ _tde_internal_setup_path( XDG_MENU_INSTALL_DIR "${SYSCONF_INSTALL_DIR}/xdg/menus" "The XDG menus dir" )
-+ _tde_internal_setup_path( XDG_APPS_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/applications/kde" "The XDG apps dir" )
-+ _tde_internal_setup_path( XDG_DIRECTORY_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/desktop-directories" "The XDG directory" )
-+ _tde_internal_setup_path( XDG_MIME_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/mime/packages" "The install dir for the xdg mimetypes" )
-+
-+endmacro( tde_setup_paths )
-diff -u -r -N applications/knetworkmanager9/cmake/modules/tde_uic.cmake src/applications/knetworkmanager9/cmake/modules/tde_uic.cmake
---- applications/knetworkmanager9/cmake/modules/tde_uic.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/tde_uic.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,52 @@
-+#################################################
-+#
-+# (C) 2010-2011 Serghei Amelian
-+# serghei (DOT) amelian (AT) gmail.com
-+#
-+# Improvements and feedback are welcome
-+#
-+# This file is released under GPL >= 2
-+#
-+#################################################
-+
-+get_filename_component( _ui_basename ${UI_FILE} NAME_WE )
-+
-+# FIXME this will working only on out-of-source mode
-+set( local_ui_file ${_ui_basename}.ui )
-+configure_file( ${UI_FILE} ${local_ui_file} COPYONLY )
-+execute_process( COMMAND tqt-replace ${local_ui_file} )
-+
-+# ui.h extension file, if exists
-+if( EXISTS "${UI_FILE}.h" )
-+ configure_file( ${UI_FILE}.h ${local_ui_file}.h COPYONLY )
-+ execute_process( COMMAND tqt-replace ${local_ui_file}.h )
-+endif( )
-+
-+if( TDE_QTPLUGINS_DIR )
-+ set( L -L ${TDE_QTPLUGINS_DIR} )
-+endif( )
-+
-+execute_process( COMMAND ${UIC_EXECUTABLE}
-+ -nounload -tr tr2i18n
-+ ${L}
-+ ${local_ui_file}
-+ OUTPUT_VARIABLE _ui_h_content )
-+
-+if( _ui_h_content )
-+ string( REGEX REPLACE "#ifndef " "#ifndef UI_" _ui_h_content "${_ui_h_content}" )
-+ string( REGEX REPLACE "#define " "#define UI_" _ui_h_content "${_ui_h_content}" )
-+ file( WRITE ${_ui_basename}.h "${_ui_h_content}" )
-+endif( )
-+
-+execute_process( COMMAND ${UIC_EXECUTABLE}
-+ -nounload -tr tr2i18n
-+ ${L}
-+ -impl ${_ui_basename}.h
-+ ${local_ui_file}
-+ OUTPUT_VARIABLE _ui_cpp_content )
-+
-+if( _ui_cpp_content )
-+ string( REGEX REPLACE "tr2i18n\\(\"\"\\)" "QString::null" _ui_cpp_content "${_ui_cpp_content}" )
-+ string( REGEX REPLACE "tr2i18n\\(\"\", \"\"\\)" "QString::null" _ui_cpp_content "${_ui_cpp_content}" )
-+ file( WRITE ${_ui_basename}.cpp "#include <kdialog.h>\n#include <klocale.h>\n\n${_ui_cpp_content}" )
-+endif( )
-diff -u -r -N applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake src/applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake
---- applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,5 @@
-+#ifdef _AIX
-+ namespace {
-+ void *not_empty_file;
-+ }
-+#endif
-diff -u -r -N applications/knetworkmanager9/cmake/modules/template_export_library.cmake src/applications/knetworkmanager9/cmake/modules/template_export_library.cmake
---- applications/knetworkmanager9/cmake/modules/template_export_library.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/template_export_library.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,7 @@
-+add_library( @_target@ @_type@ IMPORTED )
-+
-+set_target_properties( @_target@ PROPERTIES
-+ IMPORTED_LINK_INTERFACE_LIBRARIES "@_shared_libs@"
-+ IMPORTED_LOCATION "@_location@"
-+ IMPORTED_SONAME "@_soname@" )
-+
-diff -u -r -N applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake src/applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake
---- applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,2 @@
-+extern "C" int kdemain(int argc, char* argv[]);
-+int main(int argc, char* argv[]) { return kdemain(argc,argv); }
-diff -u -r -N applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake src/applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake
---- applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,3 @@
-+#include <kdemacros.h>
-+extern "C" int kdemain(int argc, char* argv[]);
-+extern "C" KDE_EXPORT int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }
-diff -u -r -N applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake src/applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake
---- applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,35 @@
-+# @_laname@ - a libtool library file
-+# Generated by CMake - GNU libtool
-+#
-+# Please DO NOT delete this file!
-+# It is necessary for linking the library.
-+
-+# The name that we can dlopen(3).
-+dlname='@_library_name_2@'
-+
-+# Names of this library.
-+library_names='@_library_name_1@ @_library_name_2@ @_library_name_3@'
-+
-+# The name of the static archive.
-+old_library=''
-+
-+# Libraries that this one depends upon.
-+dependency_libs=''
-+
-+# Version information for @_name@.
-+current=@_version_current@
-+age=@_version_age@
-+revision=@_version_revision@
-+
-+# Is this an already installed library?
-+installed=yes
-+
-+# Should we warn about portability when linking against -modules?
-+shouldnotlink=@_shouldnotlink@
-+
-+# Files to dlopen/dlpreopen
-+dlopen=''
-+dlpreopen=''
-+
-+# Directory that this library needs to be installed in:
-+libdir='@_libdir@'
-diff -u -r -N applications/knetworkmanager9/ConfigureChecks.cmake src/applications/knetworkmanager9/ConfigureChecks.cmake
---- applications/knetworkmanager9/ConfigureChecks.cmake 2011-10-17 19:42:55.000000000 +0200
-+++ src/applications/knetworkmanager9/ConfigureChecks.cmake 2011-12-16 17:13:04.000000000 +0100
-@@ -24,11 +24,11 @@
-
-
- # dbus-1-tqt
--pkg_search_module( DBUS_TQT dbus-1-tqt )
-+pkg_search_module( DBUS_TQT dbus-tqt-1 )
- if( DBUS_TQT_FOUND )
- find_program( DBUSXML2QT3_EXECUTABLE NAMES dbusxml2qt3 )
- else()
-- tde_message_fatal( "dbus-1-tqt are required, but not found on your system" )
-+ tde_message_fatal( "dbus-tqt-1 are required, but not found on your system" )
- endif( )
-
-
diff --git a/arch/3.5.13_broken/trinity-knetworkmanager9/PKGBUILD b/arch/3.5.13_broken/trinity-knetworkmanager9/PKGBUILD
deleted file mode 100644
index 70364287d..000000000
--- a/arch/3.5.13_broken/trinity-knetworkmanager9/PKGBUILD
+++ /dev/null
@@ -1,49 +0,0 @@
-# Maintainer: Calvin Morrison <mutantturkey@gmail.com>
-
-pkgname=trinity-knetworkmanager
-pkgver=3513
-pkgrel=1
-arch=('i686' 'x86_64')
-url='http://www.trinitydesktop.org'
-license=('GPL')
-groups=('trinity-extras')
-pkgdesc="Trinity - Networkmanager applet"
-depends=('trinity-kdebase' 'networkmanager' 'dbus' 'hal' 'trinity-dbus-tqt-1')
-makedepends=('pkgconfig' 'cmake' 'imake')
-options=('libtool' '!strip')
-source=('http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/knetworkmanager9-3.5.13.tar.gz' 'knetworkmanager.patch')
-md5sums=('11108480d620db10e7848446750e2cc7'
- 'bc1fba7f0cd2ee6264c986a56f725669')
-
-_svnmod=applications/knetworkmanager9
-
-build() {
-
- msg "Setting PATH, CMAKE and Trinity Environment variables"
- export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
- export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/include
- export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=:/opt/qt/lib/pkgconfig
-
- trinity_prefix="/opt/trinity"
-
- patch -N -d ${srcdir} -p0 < knetworkmanager.patch
-
- cd $srcdir
- msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
-
- msg "Starting cmake..."
- cmake ${srcdir}/${_svnmod} \
- -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
- -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DBUILD_ALL=ON
- make
-}
-
-package() {
- msg "Packaging - $pkgname-$pkgver"
- cd ${srcdir}/build
- make DESTDIR="$pkgdir/" install
-}
diff --git a/arch/3.5.13_broken/trinity-knetworkmanager9/knetworkmanager.patch b/arch/3.5.13_broken/trinity-knetworkmanager9/knetworkmanager.patch
deleted file mode 100644
index 73f995e86..000000000
--- a/arch/3.5.13_broken/trinity-knetworkmanager9/knetworkmanager.patch
+++ /dev/null
@@ -1,1669 +0,0 @@
-diff -u -r -N applications/knetworkmanager9/cmake/generate_apidox src/applications/knetworkmanager9/cmake/generate_apidox
---- applications/knetworkmanager9/cmake/generate_apidox 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/generate_apidox 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,17 @@
-+#!/bin/bash
-+
-+top_srcdir=${1}
-+top_builddir=${2}
-+kde_libs_htmldir=${3}
-+export QTDOCDIR=${4}
-+
-+if [[ ! -d "${top_srcdir}/doc/common/" ]]; then
-+ export DOXDATA=${kde_libs_htmldir}/en/common
-+fi
-+
-+abs_top_srcdir=$(cd ${top_srcdir} && pwd)
-+
-+rm -rf ${top_builddir}/${kde_libs_htmldir}/en
-+mkdir -p ${top_builddir}/${kde_libs_htmldir}/en
-+cd ${top_builddir}/${kde_libs_htmldir}/en
-+${abs_top_srcdir}/admin/doxygen.sh --modulename --installdir=${top_builddir}/${kde_libs_htmldir}/en ${abs_top_srcdir}
-diff -u -r -N applications/knetworkmanager9/cmake/install_apidox src/applications/knetworkmanager9/cmake/install_apidox
---- applications/knetworkmanager9/cmake/install_apidox 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/install_apidox 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,12 @@
-+#!/bin/bash
-+
-+top_srcdir=${1}
-+top_builddir=${2}
-+kde_libs_htmldir=${3}
-+installdir=${DESTDIR}
-+
-+abs_top_srcdir=$(cd ${top_srcdir} && pwd)
-+
-+cd ${top_builddir}
-+mkdir -p ${installdir}/${kde_libs_htmldir}/en
-+cp -Rp ${top_builddir}/${kde_libs_htmldir}/en ${installdir}/${kde_libs_htmldir}/
-diff -u -r -N applications/knetworkmanager9/cmake/modules/FindTDE.cmake src/applications/knetworkmanager9/cmake/modules/FindTDE.cmake
---- applications/knetworkmanager9/cmake/modules/FindTDE.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/FindTDE.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,86 @@
-+#################################################
-+#
-+# (C) 2010-2011 Serghei Amelian
-+# serghei (DOT) amelian (AT) gmail.com
-+#
-+# Improvements and feedback are welcome
-+#
-+# This file is released under GPL >= 2
-+#
-+#################################################
-+
-+if( NOT TDE_FOUND )
-+
-+ message( STATUS "checking for 'TDE'")
-+
-+ # if the path is not already defined by user,
-+ # find kde-config executable
-+ if( NOT DEFINED KDECONFIG_EXECUTABLE )
-+ find_program( KDECONFIG_EXECUTABLE
-+ NAMES kde-config
-+ HINTS ${BIN_INSTALL_DIR} )
-+ if( NOT KDECONFIG_EXECUTABLE )
-+ tde_message_fatal( "kde-config are NOT found." )
-+ endif( NOT KDECONFIG_EXECUTABLE )
-+ endif( NOT DEFINED KDECONFIG_EXECUTABLE )
-+
-+ # check for installed trinity version
-+ execute_process(
-+ COMMAND ${KDECONFIG_EXECUTABLE} --version
-+ OUTPUT_VARIABLE _version
-+ RESULT_VARIABLE _result
-+ OUTPUT_STRIP_TRAILING_WHITESPACE )
-+ if( _result )
-+ tde_message_fatal( "Unable to run kde-config!\n KDELIBS are correctly installed?\n Path to kde-config are corect?" )
-+ endif( _result )
-+
-+ # parse kde-config output, to extract TDE version
-+ string( REGEX MATCH "KDE: ([0-9\\.]+)" __dummy "${_version}" )
-+ set( TDE_VERSION "${CMAKE_MATCH_1}" )
-+
-+ # ask kde-config for few paths
-+ macro( __internal_get_path __type __var )
-+ execute_process(
-+ COMMAND ${KDECONFIG_EXECUTABLE} --expandvars --install ${__type}
-+ OUTPUT_VARIABLE ${__var}
-+ OUTPUT_STRIP_TRAILING_WHITESPACE )
-+ endmacro( __internal_get_path )
-+
-+ __internal_get_path( include TDE_INCLUDE_DIR )
-+ __internal_get_path( lib TDE_LIB_DIR )
-+ __internal_get_path( exe TDE_BIN_DIR )
-+ __internal_get_path( data TDE_DATA_DIR )
-+ __internal_get_path( config TDE_CONFIG_DIR )
-+ __internal_get_path( html TDE_HTML_DIR )
-+ __internal_get_path( cmake TDE_CMAKE_DIR )
-+ __internal_get_path( qtplugins TDE_QTPLUGINS_DIR )
-+
-+ # find kde tools
-+ macro( __internal_find_program __prog __var )
-+ find_program( ${__var}
-+ NAMES ${__prog}
-+ HINTS ${TDE_BIN_INSTALL_DIR}
-+ OUTPUT_STRIP_TRAILING_WHITESPACE )
-+ if( NOT ${__var} )
-+ tde_message_fatal( "${__prog} are NOT found.\n KDELIBS are correctly installed?" )
-+ endif( NOT ${__var} )
-+ endmacro( __internal_find_program )
-+
-+ __internal_find_program( dcopidl KDE3_DCOPIDL_EXECUTABLE )
-+ __internal_find_program( dcopidlng KDE3_DCOPIDLNG_EXECUTABLE )
-+ __internal_find_program( dcopidl2cpp KDE3_DCOPIDL2CPP_EXECUTABLE )
-+ __internal_find_program( meinproc KDE3_MEINPROC_EXECUTABLE )
-+ __internal_find_program( kconfig_compiler KDE3_KCFGC_EXECUTABLE )
-+ __internal_find_program( makekdewidgets KDE3_MAKEKDEWIDGETS_EXECUTABLE )
-+
-+ # dcopidlng is a bash script which using kde-config;
-+ # if PATH to kde-config is not set, dcopidlng will fail;
-+ # for this reason we set KDECONFIG environment variable before running dcopidlng
-+ set( KDE3_DCOPIDLNG_EXECUTABLE env KDECONFIG=${KDECONFIG_EXECUTABLE} ${KDE3_DCOPIDLNG_EXECUTABLE}
-+ CACHE INTERNAL KDE3_DCOPIDLNG_EXECUTABLE FORCE )
-+
-+ message( STATUS " found 'TDE', version ${TDE_VERSION}" )
-+
-+endif( NOT TDE_FOUND )
-+
-+include( "${TDE_CMAKE_DIR}/kdelibs.cmake" )
-diff -u -r -N applications/knetworkmanager9/cmake/modules/FindTQt.cmake src/applications/knetworkmanager9/cmake/modules/FindTQt.cmake
---- applications/knetworkmanager9/cmake/modules/FindTQt.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/FindTQt.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,81 @@
-+#################################################
-+#
-+# (C) 2010-2011 Serghei Amelian
-+# serghei (DOT) amelian (AT) gmail.com
-+#
-+# Improvements and feedback are welcome
-+#
-+# This file is released under GPL >= 2
-+#
-+#################################################
-+
-+macro( tqt_message )
-+ message( STATUS "${ARGN}" )
-+endmacro( )
-+
-+pkg_search_module( TQT tqt )
-+
-+if( NOT TQT_FOUND )
-+ tde_message_fatal( "Unable to find tqt!\n Try adding the directory in which the tqt.pc file is located\nto the PKG_CONFIG_PATH variable." )
-+endif( )
-+
-+# tmoc_executable
-+execute_process(
-+ COMMAND pkg-config tqt --variable=tmoc_executable
-+ OUTPUT_VARIABLE TMOC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
-+
-+if( TMOC_EXECUTABLE )
-+ tqt_message( " tmoc path: ${TMOC_EXECUTABLE}" )
-+else( )
-+ tde_message_fatal( "Path to tmoc is not set.\n tqt is correctly installed?" )
-+endif( )
-+
-+
-+# moc_executable
-+execute_process(
-+ COMMAND pkg-config tqt --variable=moc_executable
-+ OUTPUT_VARIABLE MOC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
-+
-+if( MOC_EXECUTABLE )
-+ tqt_message( " moc path: ${MOC_EXECUTABLE}" )
-+else( )
-+ tde_message_fatal( "Path to moc is not set.\n tqt is correctly installed?" )
-+endif( )
-+
-+
-+# uic_executable
-+execute_process(
-+ COMMAND pkg-config tqt --variable=uic_executable
-+ OUTPUT_VARIABLE UIC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
-+
-+if( UIC_EXECUTABLE )
-+ tqt_message( " uic path: ${UIC_EXECUTABLE}" )
-+else( )
-+ tde_message_fatal( "Path to uic is not set.\n tqt is correctly installed?" )
-+endif( )
-+
-+
-+# check if tqt is usable
-+tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
-+set( CMAKE_REQUIRED_INCLUDES ${TQT_INCLUDE_DIRS} )
-+foreach( _dirs ${TQT_LIBRARY_DIRS} )
-+ list( APPEND CMAKE_REQUIRED_LIBRARIES "-L${_dirs}" )
-+endforeach()
-+list( APPEND CMAKE_REQUIRED_LIBRARIES ${TQT_LIBRARIES} )
-+
-+check_cxx_source_compiles("
-+ #include <tqapplication.h>
-+ int main(int argc, char **argv) { TQApplication app(argc, argv); return 0; } "
-+ HAVE_USABLE_TQT )
-+
-+if( NOT HAVE_USABLE_TQT )
-+ tde_message_fatal( "Unable to build a simple tqt test." )
-+endif( )
-+
-+tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
-+
-+
-+# TQT_CXX_FLAGS
-+foreach( _flag ${TQT_CFLAGS_OTHER} )
-+ set( TQT_CXX_FLAGS "${TQT_CXX_FLAGS} ${_flag}" )
-+endforeach()
-diff -u -r -N applications/knetworkmanager9/cmake/modules/TDEMacros.cmake src/applications/knetworkmanager9/cmake/modules/TDEMacros.cmake
---- applications/knetworkmanager9/cmake/modules/TDEMacros.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/TDEMacros.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,1237 @@
-+#################################################
-+#
-+# (C) 2010-2011 Serghei Amelian
-+# serghei (DOT) amelian (AT) gmail.com
-+#
-+# Improvements and feedback are welcome
-+#
-+# This file is released under GPL >= 2
-+#
-+#################################################
-+
-+include( KDE3Macros ) # we will need this module for a while
-+
-+
-+#################################################
-+#####
-+##### tde_message_fatal
-+
-+macro( tde_message_fatal )
-+ message( FATAL_ERROR
-+ "#################################################\n"
-+ " ${ARGV}\n"
-+ "#################################################" )
-+endmacro( tde_message_fatal )
-+
-+
-+#################################################
-+#####
-+##### tde_install_icons( <icons...> THEME <svgicons> DESTINATION <destdir> )
-+##### default theme: hicolor
-+##### default destination: ${SHARE_INSTALL_DIR}/icons
-+
-+macro( tde_install_icons )
-+
-+ # clearing
-+ unset( _dest )
-+ unset( _req_theme )
-+ unset( _icons )
-+ set( _var _icons )
-+
-+ # parse all arguments
-+ foreach( _arg ${ARGV} )
-+ # directive DESTINATION
-+ if( _arg STREQUAL "DESTINATION" )
-+ set( _var _dest )
-+ set( _directive 1 )
-+ endif( _arg STREQUAL "DESTINATION" )
-+ # directive THEME
-+ if( _arg STREQUAL "THEME" )
-+ set( _var _req_theme )
-+ set( _directive 1 )
-+ endif( _arg STREQUAL "THEME" )
-+ # collect data
-+ if( _directive )
-+ unset( _directive )
-+ else( _directive )
-+ set( ${_var} ${${_var}} ${_arg} )
-+ set( _var _icons )
-+ endif( _directive )
-+ endforeach( _arg )
-+
-+ #defaults
-+ if( NOT _icons )
-+ set( _icons "*" )
-+ endif( NOT _icons )
-+ if( NOT _dest )
-+ set( _dest "${ICON_INSTALL_DIR}" )
-+ endif( NOT _dest )
-+
-+ foreach( _icon ${_icons} )
-+ unset( _theme ) # clearing
-+
-+ file(GLOB _icon_files *-${_icon}.png _icon_files *-${_icon}.svg* )
-+ foreach( _icon_file ${_icon_files} )
-+ # FIXME need a review
-+ string( REGEX MATCH "^.*/([a-zA-Z][a-zA-Z])([0-9a-zA-Z]+)\\-([a-z]+)\\-(.+)$" _dummy "${_icon_file}" )
-+ set( _type "${CMAKE_MATCH_1}" )
-+ set( _size "${CMAKE_MATCH_2}" )
-+ set( _group "${CMAKE_MATCH_3}" )
-+ set( _name "${CMAKE_MATCH_4}" )
-+
-+ # we must ignore invalid icon names
-+ if( _type AND _size AND _group AND _name )
-+
-+ # autodetect theme
-+ if( NOT _req_theme )
-+ unset( _theme )
-+ if( "${_type}" STREQUAL "cr" )
-+ set( _theme crystalsvg )
-+ elseif( "${_type}" STREQUAL "lo" )
-+ set( _theme locolor )
-+ endif( "${_type}" STREQUAL "cr" )
-+ # defaulting
-+ if( NOT _theme )
-+ set( _theme hicolor )
-+ endif( NOT _theme )
-+ else( NOT _req_theme )
-+ set( _theme ${_req_theme} )
-+ endif( NOT _req_theme )
-+
-+ # fix "group" name
-+ if( "${_group}" STREQUAL "mime" )
-+ set( _group "mimetypes" )
-+ endif( "${_group}" STREQUAL "mime" )
-+ if( "${_group}" STREQUAL "filesys" )
-+ set( _group "filesystems" )
-+ endif( "${_group}" STREQUAL "filesys" )
-+ if( "${_group}" STREQUAL "device" )
-+ set( _group "devices" )
-+ endif( "${_group}" STREQUAL "device" )
-+ if( "${_group}" STREQUAL "app" )
-+ set( _group "apps" )
-+ endif( "${_group}" STREQUAL "app" )
-+ if( "${_group}" STREQUAL "action" )
-+ set( _group "actions" )
-+ endif( "${_group}" STREQUAL "action" )
-+
-+ if( "${_size}" STREQUAL "sc" )
-+ install( FILES ${_icon_file} DESTINATION ${_dest}/${_theme}/scalable/${_group}/ RENAME ${_name} )
-+ else( "${_size}" STREQUAL "sc" )
-+ install( FILES ${_icon_file} DESTINATION ${_dest}/${_theme}/${_size}x${_size}/${_group}/ RENAME ${_name} )
-+ endif( "${_size}" STREQUAL "sc" )
-+
-+ endif( _type AND _size AND _group AND _name )
-+
-+ endforeach( _icon_file )
-+ endforeach( _icon )
-+
-+endmacro( tde_install_icons )
-+
-+
-+#################################################
-+#####
-+##### tde_add_lut( <source> <result> [depends] )
-+##### default depends: source
-+
-+macro( tde_add_lut _src _lut _dep )
-+ set( create_hash_table ${CMAKE_SOURCE_DIR}/kjs/create_hash_table )
-+ if( NOT _dep )
-+ set( _dep ${_src} )
-+ endif( NOT _dep )
-+ add_custom_command( OUTPUT ${_lut}
-+ COMMAND perl ARGS ${create_hash_table} ${CMAKE_CURRENT_SOURCE_DIR}/${_src} -i > ${_lut}
-+ DEPENDS ${_src} )
-+ set_source_files_properties( ${_dep} PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_lut} )
-+ unset( _dep )
-+endmacro( tde_add_lut )
-+
-+
-+#################################################
-+#####
-+##### tde_add_luts( <sources...> )
-+
-+macro( tde_add_luts )
-+ foreach( _src ${ARGV} )
-+ get_filename_component( _lut ${_src} NAME_WE )
-+ set( _lut "${_lut}.lut.h" )
-+ tde_add_lut( ${_src} ${_lut} ${_src} )
-+ endforeach( _src )
-+endmacro( tde_add_luts )
-+
-+
-+#################################################
-+#####
-+##### tde_file_to_cpp( <source> <destination> <variable> )
-+
-+macro( tde_file_to_cpp _src _dst _var )
-+ if( IS_ABSOLUTE ${_dst} )
-+ set( dst ${_dst} )
-+ else( )
-+ set( dst "${CMAKE_CURRENT_BINARY_DIR}/${_dst}" )
-+ endif( )
-+ file( READ ${_src} text )
-+ string( REGEX REPLACE "\n" "\\\\n\"\n\"" text "${text}" )
-+ set( text "/* Generated by CMake */\n\nconst char *${_var} = \n\n\"${text}\";\n" )
-+ string( REGEX REPLACE "\n\"\";\n$" ";\n" text "${text}" )
-+ file( WRITE ${dst} "${text}" )
-+endmacro( )
-+
-+
-+#################################################
-+#####
-+##### tde_install_la_file( <target> <destination> )
-+
-+macro( tde_install_la_file _target _destination )
-+
-+ get_target_property( _target_location ${_target} LOCATION )
-+ get_filename_component( _laname ${_target_location} NAME_WE )
-+ get_filename_component( _soname ${_target_location} NAME )
-+ set( _laname ${CMAKE_CURRENT_BINARY_DIR}/${_laname}.la )
-+
-+ file( WRITE ${_laname}
-+"# ${_laname} - a libtool library file, generated by cmake
-+# The name that we can dlopen(3).
-+dlname='${_soname}'
-+# Names of this library
-+library_names='${_soname} ${_soname} ${_soname}'
-+# The name of the static archive
-+old_library=''
-+# Libraries that this one depends upon.
-+dependency_libs=''
-+# Version information.\ncurrent=0\nage=0\nrevision=0
-+# Is this an already installed library?\ninstalled=yes
-+# Should we warn about portability when linking against -modules?\nshouldnotlink=yes
-+# Files to dlopen/dlpreopen\ndlopen=''\ndlpreopen=''
-+# Directory that this library needs to be installed in:
-+libdir='${_destination}'
-+" )
-+
-+ install( FILES ${_laname} DESTINATION ${_destination} )
-+
-+endmacro( tde_install_la_file )
-+
-+
-+#################################################
-+#####
-+##### tde_add_ui_files
-+
-+macro( tde_add_ui_files _sources )
-+ foreach( _ui_file ${ARGN} )
-+
-+ get_filename_component( _ui_basename ${_ui_file} NAME_WE )
-+ get_filename_component( _ui_absolute_path ${_ui_file} ABSOLUTE )
-+
-+ list( APPEND ${_sources} ${_ui_basename}.cpp )
-+
-+ add_custom_command( OUTPUT ${_ui_basename}.h ${_ui_basename}.cpp
-+ COMMAND ${CMAKE_COMMAND}
-+ -DUIC_EXECUTABLE:FILEPATH=${UIC_EXECUTABLE}
-+ -DTDE_QTPLUGINS_DIR:FILEPATH=${TDE_QTPLUGINS_DIR}
-+ -DUI_FILE:FILEPATH=${_ui_absolute_path}
-+ -P ${CMAKE_MODULE_PATH}/tde_uic.cmake
-+ COMMAND ${MOC_EXECUTABLE} ${_ui_basename}.h >> ${_ui_basename}.cpp
-+ DEPENDS ${_ui_absolute_path} )
-+
-+ endforeach( _ui_file )
-+endmacro( tde_add_ui_files )
-+
-+
-+#################################################
-+#####
-+##### tde_moc
-+
-+macro( tde_moc _sources )
-+ foreach( _input_file ${ARGN} )
-+
-+ get_filename_component( _input_file "${_input_file}" ABSOLUTE )
-+ get_filename_component( _basename ${_input_file} NAME_WE )
-+ set( _output_file "${_basename}.moc.cpp" )
-+ add_custom_command( OUTPUT ${_output_file}
-+ COMMAND
-+ ${TMOC_EXECUTABLE} ${_input_file} -o ${_output_file}
-+ DEPENDS
-+ ${_input_file} )
-+ list( APPEND ${_sources} ${_output_file} )
-+
-+ endforeach( )
-+endmacro( )
-+
-+
-+#################################################
-+#####
-+##### tde_automoc
-+
-+macro( tde_automoc )
-+ foreach( _src_file ${ARGN} )
-+
-+ get_filename_component( _src_file "${_src_file}" ABSOLUTE )
-+
-+ if( EXISTS "${_src_file}" )
-+
-+ # read source file and check if have moc include
-+ file( READ "${_src_file}" _src_content )
-+ string( REGEX MATCHALL "#include +[^ ]+\\.moc[\">]" _moc_includes "${_src_content}" )
-+
-+ # found included moc(s)?
-+ if( _moc_includes )
-+ foreach( _moc_file ${_moc_includes} )
-+
-+ # extracting moc filename
-+ string( REGEX MATCH "[^ <\"]+\\.moc" _moc_file "${_moc_file}" )
-+ set( _moc_file "${CMAKE_CURRENT_BINARY_DIR}/${_moc_file}" )
-+
-+ # create header filename
-+ get_filename_component( _src_path "${_src_file}" ABSOLUTE )
-+ get_filename_component( _src_path "${_src_path}" PATH )
-+ get_filename_component( _src_header "${_moc_file}" NAME_WE )
-+ set( _header_file "${_src_path}/${_src_header}.h" )
-+
-+ # if header doesn't exists, check in META_INCLUDES
-+ if( NOT EXISTS "${_header_file}" )
-+ unset( _found )
-+ foreach( _src_path ${_meta_includes} )
-+ set( _header_file "${_src_path}/${_src_header}.h" )
-+ if( EXISTS "${_header_file}" )
-+ set( _found 1 )
-+ break( )
-+ endif( )
-+ endforeach( )
-+ if( NOT _found )
-+ get_filename_component( _moc_file "${_moc_file}" NAME )
-+ tde_message_fatal( "AUTOMOC error: '${_moc_file}' cannot be generated.\n Reason: '${_src_file}.h' not found." )
-+ endif( )
-+ endif( )
-+
-+ # moc-ing header
-+ add_custom_command( OUTPUT ${_moc_file}
-+ COMMAND ${TMOC_EXECUTABLE} ${_header_file} -o ${_moc_file}
-+ DEPENDS ${_header_file} )
-+
-+ # create dependency between source file and moc file
-+ set_property( SOURCE ${_src_file} APPEND PROPERTY OBJECT_DEPENDS ${_moc_file} )
-+
-+ endforeach( _moc_file )
-+
-+ endif( _moc_includes )
-+
-+ endif( EXISTS "${_src_file}" )
-+
-+ endforeach( _src_file )
-+endmacro( tde_automoc )
-+
-+
-+#################################################
-+#####
-+##### __tde_internal_process_sources
-+
-+macro( __tde_internal_process_sources _sources )
-+
-+ unset( ${_sources} )
-+
-+ foreach( _arg ${ARGN} )
-+ get_filename_component( _ext ${_arg} EXT )
-+ get_filename_component( _name ${_arg} NAME_WE )
-+ get_filename_component( _path ${_arg} PATH )
-+
-+ # if not path, set it to "."
-+ if( NOT _path )
-+ set( _path "./" )
-+ endif( NOT _path )
-+
-+ # handle .ui files
-+ if( ${_ext} STREQUAL ".ui" )
-+ tde_add_ui_files( ${_sources} ${_arg} )
-+
-+ # handle .skel files
-+ elseif( ${_ext} STREQUAL ".skel" )
-+ kde3_add_dcop_skels( ${_sources} ${_path}/${_name}.h )
-+
-+ # handle .stub files
-+ elseif( ${_ext} STREQUAL ".stub" )
-+ kde3_add_dcop_stubs( ${_sources} ${_path}/${_name}.h )
-+
-+ # handle .kcfgc files
-+ elseif( ${_ext} STREQUAL ".kcfgc" )
-+ kde3_add_kcfg_files( ${_sources} ${_arg} )
-+
-+ # handle any other files
-+ else( ${_ext} STREQUAL ".ui" )
-+ list(APPEND ${_sources} ${_arg} )
-+ endif( ${_ext} STREQUAL ".ui" )
-+ endforeach( _arg )
-+
-+endmacro( __tde_internal_process_sources )
-+
-+
-+#################################################
-+#####
-+##### tde_install_libtool_file
-+
-+macro( tde_install_libtool_file _target _destination )
-+
-+ get_target_property( _target_location ${_target} LOCATION )
-+
-+ # get name of target
-+ get_filename_component( _name ${_target_location} NAME_WE )
-+
-+ # get .la name
-+ set( _laname ${_name}.la )
-+
-+ # get .so name
-+ get_filename_component( _soname ${_target_location} NAME )
-+
-+ # get version of target
-+ get_target_property( _target_version ${_target} VERSION )
-+ get_target_property( _target_soversion ${_target} SOVERSION )
-+
-+ # we have so version
-+ if( _target_version )
-+ set( _library_name_1 "${_soname}.${_target_version}" )
-+ set( _library_name_2 "${_soname}.${_target_soversion}" )
-+ set( _library_name_3 "${_soname}" )
-+
-+ string( REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$" _dummy "${_target_version}" )
-+ set( _version_current "${CMAKE_MATCH_1}" )
-+ set( _version_age "${CMAKE_MATCH_2}" )
-+ set( _version_revision "${CMAKE_MATCH_3}" )
-+
-+ # we have no so version (module?)
-+ else( _target_version )
-+ set( _library_name_1 "${_soname}" )
-+ set( _library_name_2 "${_soname}" )
-+ set( _library_name_3 "${_soname}" )
-+ set( _version_current "0" )
-+ set( _version_age "0" )
-+ set( _version_revision "0" )
-+ endif( _target_version )
-+
-+ if( IS_ABSOLUTE ${_destination} )
-+ set( _libdir "${_destination}" )
-+ else( IS_ABSOLUTE ${_destination} )
-+ set( _libdir "${CMAKE_INSTALL_PREFIX}/${_destination}" )
-+ endif( IS_ABSOLUTE ${_destination} )
-+
-+ configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_libtool_file.cmake "${_laname}" @ONLY )
-+
-+ install( FILES "${CMAKE_CURRENT_BINARY_DIR}/${_laname}" DESTINATION ${_destination} )
-+
-+endmacro( tde_install_libtool_file )
-+
-+
-+#################################################
-+#####
-+##### tde_install_export / tde_import
-+
-+function( tde_install_export )
-+ file( GLOB export_files ${CMAKE_CURRENT_BINARY_DIR}/export-*.cmake )
-+
-+ set( mode "WRITE" )
-+ foreach( filename ${export_files} )
-+ file( READ ${filename} content )
-+ file( ${mode} "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.cmake" "${content}" )
-+ set( mode "APPEND" )
-+ endforeach( )
-+
-+ install( FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.cmake" DESTINATION ${CMAKE_INSTALL_DIR} )
-+endfunction( )
-+
-+
-+macro( tde_import _library )
-+ message( STATUS "checking for '${_library}'" )
-+ string( TOUPPER "BUILD_${_library}" _build )
-+ if( ${_build} )
-+ message( STATUS " ok, activated for build" )
-+ else()
-+ if( EXISTS "${TDE_CMAKE_DIR}/${_library}.cmake" )
-+ include( "${TDE_CMAKE_DIR}/${_library}.cmake" )
-+ message( STATUS " ok, found import file" )
-+ else()
-+ tde_message_fatal( "'${_library}' are required,\n but is not installed nor selected for build" )
-+ endif()
-+ endif()
-+endmacro()
-+
-+
-+#################################################
-+#####
-+##### tde_add_library
-+
-+macro( tde_add_library _arg_target )
-+
-+ unset( _target )
-+ unset( _type )
-+ unset( _static_pic )
-+ unset( _automoc )
-+ unset( _meta_includes )
-+ unset( _no_libtool_file )
-+ unset( _no_export )
-+ unset( _version )
-+ unset( _sources )
-+ unset( _destination )
-+ unset( _embed )
-+ unset( _link )
-+ unset( _dependencies )
-+ unset( _storage )
-+
-+ set( _shouldnotlink no )
-+
-+ foreach( _arg ${ARGV} )
-+
-+ # this variable help us to skip
-+ # storing unapropriate values (i.e. directives)
-+ unset( _skip_store )
-+
-+ # found one of directives: "SHARED", "STATIC", "MODULE"
-+ if( "${_arg}" STREQUAL "SHARED" OR "${_arg}" STREQUAL "STATIC" OR "${_arg}" STREQUAL "MODULE" )
-+ set( _skip_store 1 )
-+ set( _type "${_arg}" )
-+ endif( "${_arg}" STREQUAL "SHARED" OR "${_arg}" STREQUAL "STATIC" OR "${_arg}" STREQUAL "MODULE" )
-+
-+ # found directive "STATIC_PIC"
-+ if( "${_arg}" STREQUAL "STATIC_PIC" )
-+ set( _skip_store 1 )
-+ set( _type "STATIC" )
-+ set( _static_pic 1 )
-+ endif( "${_arg}" STREQUAL "STATIC_PIC" )
-+
-+ # found directive "AUTOMOC"
-+ if( "${_arg}" STREQUAL "AUTOMOC" )
-+ set( _skip_store 1 )
-+ set( _automoc 1 )
-+ endif( "${_arg}" STREQUAL "AUTOMOC" )
-+
-+ # found directive "META_INCLUDES"
-+ if( "${_arg}" STREQUAL "META_INCLUDES" )
-+ set( _skip_store 1 )
-+ set( _storage "_meta_includes" )
-+ endif( )
-+
-+ # found directive "NO_LIBTOOL_FILE"
-+ if( "${_arg}" STREQUAL "NO_LIBTOOL_FILE" )
-+ set( _skip_store 1 )
-+ set( _no_libtool_file 1 )
-+ endif( "${_arg}" STREQUAL "NO_LIBTOOL_FILE" )
-+
-+ # found directive "NO_EXPORT"
-+ if( "${_arg}" STREQUAL "NO_EXPORT" )
-+ set( _skip_store 1 )
-+ set( _no_export 1 )
-+ endif( "${_arg}" STREQUAL "NO_EXPORT" )
-+
-+ # found directive "VERSION"
-+ if( "${_arg}" STREQUAL "VERSION" )
-+ set( _skip_store 1 )
-+ set( _storage "_version" )
-+ endif( "${_arg}" STREQUAL "VERSION" )
-+
-+ # found directive "SOURCES"
-+ if( "${_arg}" STREQUAL "SOURCES" )
-+ set( _skip_store 1 )
-+ set( _storage "_sources" )
-+ endif( "${_arg}" STREQUAL "SOURCES" )
-+
-+ # found directive "EMBED"
-+ if( "${_arg}" STREQUAL "EMBED" )
-+ set( _skip_store 1 )
-+ set( _storage "_embed" )
-+ endif( "${_arg}" STREQUAL "EMBED" )
-+
-+ # found directive "LINK"
-+ if( "${_arg}" STREQUAL "LINK" )
-+ set( _skip_store 1 )
-+ set( _storage "_link" )
-+ endif( "${_arg}" STREQUAL "LINK" )
-+
-+ # found directive "DEPENDENCIES"
-+ if( "${_arg}" STREQUAL "DEPENDENCIES" )
-+ set( _skip_store 1 )
-+ set( _storage "_dependencies" )
-+ endif( "${_arg}" STREQUAL "DEPENDENCIES" )
-+
-+ # found directive "DESTINATION"
-+ if( "${_arg}" STREQUAL "DESTINATION" )
-+ set( _skip_store 1 )
-+ set( _storage "_destination" )
-+ unset( ${_storage} )
-+ endif( "${_arg}" STREQUAL "DESTINATION" )
-+
-+ # storing value
-+ if( _storage AND NOT _skip_store )
-+ list( APPEND ${_storage} ${_arg} )
-+ list( REMOVE_DUPLICATES ${_storage} )
-+ endif( _storage AND NOT _skip_store )
-+
-+ endforeach( _arg )
-+
-+ # if no type is set, we choose one
-+ # based on BUILD_SHARED_LIBS
-+ if( NOT _type )
-+ if( BUILD_SHARED_LIBS )
-+ set( _type "SHARED" )
-+ else( BUILD_SHARED_LIBS )
-+ set( _type "STATIC" )
-+ endif( BUILD_SHARED_LIBS )
-+ endif( NOT _type )
-+
-+ # change target name, based on type
-+ string( TOLOWER "${_type}" _type_lower )
-+ set( _target "${_arg_target}-${_type_lower}" )
-+
-+ # create variables like "LIB_xxx" for convenience
-+ if( ${_type} STREQUAL "SHARED" )
-+ string( TOUPPER "${_arg_target}" _tmp )
-+ set( LIB_${_tmp} ${_target} CACHE INTERNAL LIB_${tmp} FORCE )
-+ endif( ${_type} STREQUAL "SHARED" )
-+
-+ # disallow target without sources
-+ if( NOT _sources )
-+ message( FATAL_ERROR "\nTarget [$_target] have no sources." )
-+ endif( NOT _sources )
-+
-+ # processing different types of sources
-+ __tde_internal_process_sources( _sources ${_sources} )
-+
-+ # set automoc
-+ if( _automoc )
-+ tde_automoc( ${_sources} )
-+ endif( _automoc )
-+
-+ # add target
-+ add_library( ${_target} ${_type} ${_sources} )
-+
-+ # we assume that modules have no prefix and no version
-+ # also, should not link
-+ if( ${_type} STREQUAL "MODULE" )
-+ set_target_properties( ${_target} PROPERTIES PREFIX "" )
-+ unset( _version )
-+ set( _shouldnotlink yes )
-+ endif( ${_type} STREQUAL "MODULE" )
-+
-+ # set real name of target
-+ set_target_properties( ${_target} PROPERTIES OUTPUT_NAME ${_arg_target} )
-+
-+ # set -fPIC flag for static libraries
-+ if( _static_pic )
-+ set_target_properties( ${_target} PROPERTIES COMPILE_FLAGS -fPIC )
-+ endif( _static_pic )
-+
-+ # set version
-+ if( _version )
-+ string( REGEX MATCH "^[0-9]+" _soversion ${_version} )
-+ set_target_properties( ${_target} PROPERTIES VERSION ${_version} SOVERSION ${_soversion} )
-+ endif( _version )
-+
-+ # set interface libraries (only for shared)
-+ unset( _shared_libs )
-+ foreach( _lib ${_link} )
-+ #get_target_property( _lib_type ${_lib} TYPE )
-+ #if( NOT "STATIC_LIBRARY" STREQUAL "${_lib_type}" )
-+ if( NOT ${_lib} MATCHES ".+-static" )
-+ list( APPEND _shared_libs ${_lib} )
-+ endif( NOT ${_lib} MATCHES ".+-static" )
-+ #endif( NOT "STATIC_LIBRARY" STREQUAL "${_lib_type}" )
-+ endforeach( _lib )
-+ target_link_libraries( ${_target} LINK_INTERFACE_LIBRARIES ${_shared_libs} )
-+
-+ # set embedded archives
-+ if( _embed )
-+ list( INSERT _link 0 -Wl,-whole-archive ${_embed} -Wl,-no-whole-archive )
-+ endif( _embed )
-+
-+ # set link libraries
-+ if( _link )
-+ target_link_libraries( ${_target} ${_link} )
-+ endif( )
-+
-+ # set dependencies
-+ if( _dependencies )
-+ add_dependencies( ${_target} ${_dependencies} )
-+ endif( _dependencies )
-+
-+ # if destination directory is set
-+ if( _destination )
-+
-+ # we export only shared libs (no static, no modules);
-+ # also, do not export targets marked as "NO_EXPORT" (usually for kdeinit)
-+ if( "SHARED" STREQUAL ${_type} AND NOT _no_export )
-+
-+ # get target properties: output name, version, soversion
-+ get_target_property( _output ${_target} LOCATION )
-+ get_filename_component( _output ${_output} NAME )
-+ get_target_property( _version ${_target} VERSION )
-+ get_target_property( _soversion ${_target} SOVERSION )
-+
-+ if( _version )
-+ set( _location "${_destination}/${_output}.${_version}" )
-+ set( _soname "${_output}.${_soversion}" )
-+ else( )
-+ set( _location "${_destination}/${_output}" )
-+ set( _soname "${_output}" )
-+ endif( )
-+
-+ configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_export_library.cmake "${PROJECT_BINARY_DIR}/export-${_target}.cmake" @ONLY )
-+ endif( )
-+
-+ # install target
-+ install( TARGETS ${_target} DESTINATION ${_destination} )
-+
-+ # install .la files for dynamic libraries
-+ if( NOT "STATIC" STREQUAL ${_type} AND NOT _no_libtool_file )
-+ tde_install_libtool_file( ${_target} ${_destination} )
-+ endif( )
-+
-+ endif( _destination )
-+
-+endmacro( tde_add_library )
-+
-+
-+#################################################
-+#####
-+##### tde_add_kpart
-+
-+macro( tde_add_kpart _target )
-+ tde_add_library( ${_target} ${ARGN} MODULE )
-+endmacro( tde_add_kpart )
-+
-+
-+#################################################
-+#####
-+##### tde_add_executable
-+
-+macro( tde_add_executable _arg_target )
-+
-+ unset( _target )
-+ unset( _automoc )
-+ unset( _meta_includes )
-+ unset( _setuid )
-+ unset( _sources )
-+ unset( _destination )
-+ unset( _link )
-+ unset( _dependencies )
-+ unset( _storage )
-+
-+ foreach( _arg ${ARGV} )
-+
-+ # this variable help us to skip
-+ # storing unapropriate values (i.e. directives)
-+ unset( _skip_store )
-+
-+ # found directive "AUTOMOC"
-+ if( "${_arg}" STREQUAL "AUTOMOC" )
-+ set( _skip_store 1 )
-+ set( _automoc 1 )
-+ endif( "${_arg}" STREQUAL "AUTOMOC" )
-+
-+ # found directive "META_INCLUDES"
-+ if( "${_arg}" STREQUAL "META_INCLUDES" )
-+ set( _skip_store 1 )
-+ set( _storage "_meta_includes" )
-+ endif( )
-+
-+ # found directive "SETUID"
-+ if( "${_arg}" STREQUAL "SETUID" )
-+ set( _skip_store 1 )
-+ set( _setuid 1 )
-+ endif( "${_arg}" STREQUAL "SETUID" )
-+
-+ # found directive "SOURCES"
-+ if( "${_arg}" STREQUAL "SOURCES" )
-+ set( _skip_store 1 )
-+ set( _storage "_sources" )
-+ endif( "${_arg}" STREQUAL "SOURCES" )
-+
-+ # found directive "LINK"
-+ if( "${_arg}" STREQUAL "LINK" )
-+ set( _skip_store 1 )
-+ set( _storage "_link" )
-+ endif( "${_arg}" STREQUAL "LINK" )
-+
-+ # found directive "DEPENDENCIES"
-+ if( "${_arg}" STREQUAL "DEPENDENCIES" )
-+ set( _skip_store 1 )
-+ set( _storage "_dependencies" )
-+ endif( "${_arg}" STREQUAL "DEPENDENCIES" )
-+
-+ # found directive "DESTINATION"
-+ if( "${_arg}" STREQUAL "DESTINATION" )
-+ set( _skip_store 1 )
-+ set( _storage "_destination" )
-+ unset( ${_storage} )
-+ endif( "${_arg}" STREQUAL "DESTINATION" )
-+
-+ # storing value
-+ if( _storage AND NOT _skip_store )
-+ #set( ${_storage} "${${_storage}} ${_arg}" )
-+ list( APPEND ${_storage} ${_arg} )
-+ endif( _storage AND NOT _skip_store )
-+
-+ endforeach( _arg )
-+
-+ set( _target "${_arg_target}" )
-+
-+ # disallow target without sources
-+ if( NOT _sources )
-+ message( FATAL_ERROR "\nTarget [$_target] have no sources." )
-+ endif( NOT _sources )
-+
-+ # processing different types of sources
-+ __tde_internal_process_sources( _sources ${_sources} )
-+
-+ # set automoc
-+ if( _automoc )
-+ tde_automoc( ${_sources} )
-+ endif( _automoc )
-+
-+ # add target
-+ add_executable( ${_target} ${_sources} )
-+
-+ # set link libraries
-+ if( _link )
-+ target_link_libraries( ${_target} ${_link} )
-+ endif( _link )
-+
-+ # set dependencies
-+ if( _dependencies )
-+ add_dependencies( ${_target} ${_dependencies} )
-+ endif( _dependencies )
-+
-+ # set destination directory
-+ if( _destination )
-+ if( _setuid )
-+ install( TARGETS ${_target} DESTINATION ${_destination} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE SETUID )
-+ else( _setuid )
-+ install( TARGETS ${_target} DESTINATION ${_destination} )
-+ endif( _setuid )
-+ endif( _destination )
-+
-+endmacro( tde_add_executable )
-+
-+
-+#################################################
-+#####
-+##### tde_add_kdeinit_executable
-+
-+macro( tde_add_kdeinit_executable _target )
-+
-+ configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_kdeinit_executable.cmake ${_target}_kdeinit_executable.cpp COPYONLY )
-+ configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_kdeinit_module.cmake ${_target}_kdeinit_module.cpp COPYONLY )
-+
-+ unset( _sources )
-+ unset( _runtime_destination )
-+ unset( _library_destination )
-+ unset( _plugin_destination )
-+
-+ # default storage is _sources
-+ set( _storage _sources )
-+
-+ # set default export to NO_EXPORT
-+ set( _export "NO_EXPORT" )
-+
-+ foreach( _arg ${ARGN} )
-+
-+ # this variable help us to skip
-+ # storing unapropriate values (i.e. directives)
-+ unset( _skip_store )
-+
-+ # found directive "EXPORT"
-+ if( "${_arg}" STREQUAL "EXPORT" )
-+ set( _skip_store 1 )
-+ unset( _export )
-+ endif( "${_arg}" STREQUAL "EXPORT" )
-+
-+ # found directive "RUNTIME_DESTINATION"
-+ if( "${_arg}" STREQUAL "RUNTIME_DESTINATION" )
-+ set( _skip_store 1 )
-+ set( _storage "_runtime_destination" )
-+ unset( ${_storage} )
-+ endif( "${_arg}" STREQUAL "RUNTIME_DESTINATION" )
-+
-+ # found directive "LIBRARY_DESTINATION"
-+ if( "${_arg}" STREQUAL "LIBRARY_DESTINATION" )
-+ set( _skip_store 1 )
-+ set( _storage "_library_destination" )
-+ unset( ${_storage} )
-+ endif( "${_arg}" STREQUAL "LIBRARY_DESTINATION" )
-+
-+ # found directive "PLUGIN_DESTINATION"
-+ if( "${_arg}" STREQUAL "PLUGIN_DESTINATION" )
-+ set( _skip_store 1 )
-+ set( _storage "_plugin_destination" )
-+ unset( ${_storage} )
-+ endif( "${_arg}" STREQUAL "PLUGIN_DESTINATION" )
-+
-+ # storing value
-+ if( _storage AND NOT _skip_store )
-+ list( APPEND ${_storage} ${_arg} )
-+ set( _storage "_sources" )
-+ endif( _storage AND NOT _skip_store )
-+
-+ endforeach( _arg )
-+
-+ # if destinations are not set, we using some defaults
-+ # we assume that kdeinit executable MUST be installed
-+ # (otherwise why we build it?)
-+ if( NOT _runtime_destination )
-+ set( _runtime_destination ${BIN_INSTALL_DIR} )
-+ endif( NOT _runtime_destination )
-+ if( NOT _library_destination )
-+ set( _library_destination ${LIB_INSTALL_DIR} )
-+ endif( NOT _library_destination )
-+ if( NOT _plugin_destination )
-+ set( _plugin_destination ${PLUGIN_INSTALL_DIR} )
-+ endif( NOT _plugin_destination )
-+
-+ # create the library
-+ tde_add_library( kdeinit_${_target} ${_sources} SHARED ${_export}
-+ DESTINATION ${_library_destination}
-+ )
-+
-+ # create the executable
-+ tde_add_executable( ${_target}
-+ SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${_target}_kdeinit_executable.cpp
-+ LINK kdeinit_${_target}-shared
-+ DESTINATION ${_runtime_destination}
-+ )
-+
-+ # create the plugin
-+ tde_add_kpart( ${_target}
-+ SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${_target}_kdeinit_module.cpp
-+ LINK kdeinit_${_target}-shared
-+ DESTINATION ${_plugin_destination}
-+ )
-+
-+endmacro( tde_add_kdeinit_executable )
-+
-+
-+#################################################
-+#####
-+##### tde_create_translation
-+
-+macro( tde_create_translation )
-+
-+ unset( _srcs )
-+ unset( _lang )
-+ unset( _dest )
-+ unset( _directive )
-+ unset( _var )
-+
-+ foreach( _arg ${ARGN} )
-+
-+ # found directive "FILES"
-+ if( "${_arg}" STREQUAL "FILES" )
-+ unset( _srcs )
-+ set( _var _srcs )
-+ set( _directive 1 )
-+ endif( )
-+
-+ # found directive "LANG"
-+ if( "${_arg}" STREQUAL "LANG" )
-+ unset( _lang )
-+ set( _var _lang )
-+ set( _directive 1 )
-+ endif( )
-+
-+ # found directive "DESTINATION"
-+ if( "${_arg}" STREQUAL "DESTINATION" )
-+ unset( _dest )
-+ set( _var _dest )
-+ set( _directive 1 )
-+ endif( )
-+
-+ # collect data
-+ if( _directive )
-+ unset( _directive )
-+ elseif( _var )
-+ list( APPEND ${_var} ${_arg} )
-+ endif()
-+
-+ endforeach( )
-+
-+ if( NOT MSGFMT_EXECUTABLE )
-+ tde_message_fatal( "MSGFMT_EXECUTABLE variable is not defined" )
-+ elseif( NOT _lang )
-+ tde_message_fatal( "missing LANG directive" )
-+ elseif( NOT _dest )
-+ set( _dest "${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES" )
-+ endif( )
-+
-+ # if no file specified, include all *.po files
-+ if( NOT _srcs )
-+ file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
-+ endif()
-+ if( NOT _srcs )
-+ tde_message_fatal( "no source files" )
-+ endif()
-+
-+ # generate *.mo files
-+ foreach( _src ${_srcs} )
-+ get_filename_component( _src ${_src} ABSOLUTE )
-+ get_filename_component( _out ${_src} NAME_WE )
-+ set( _out_name "${_out}-${_lang}.mo" )
-+ set( _out_real_name "${_out}.mo" )
-+ add_custom_command(
-+ OUTPUT ${_out_name}
-+ COMMAND ${MSGFMT_EXECUTABLE} ${_src} -o ${_out_name}
-+ DEPENDS ${_src} )
-+ add_custom_target( "${_out}-${_lang}-translation" ALL DEPENDS ${_out_name} )
-+ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${_out_name} RENAME ${_out_real_name} DESTINATION ${_dest} )
-+ endforeach( )
-+
-+endmacro( )
-+
-+
-+#################################################
-+#####
-+##### tde_create_handbook
-+
-+macro( tde_create_handbook )
-+
-+ unset( _target )
-+ unset( _dest )
-+ unset( _noindex )
-+ unset( _srcs )
-+ unset( _extra )
-+ unset( _srcdir )
-+
-+ set( _lang en )
-+ set( _first_arg 1 )
-+ set( _var _target )
-+
-+ foreach( _arg ${ARGN} )
-+
-+ # found directive "NOINDEX"
-+ if( "${_arg}" STREQUAL "NOINDEX" )
-+ set( _noindex 1 )
-+ set( _directive 1 )
-+ endif()
-+
-+ # found directive "FILES"
-+ if( "${_arg}" STREQUAL "FILES" )
-+ unset( _srcs )
-+ set( _var _srcs )
-+ set( _directive 1 )
-+ endif()
-+
-+ # found directive "EXTRA"
-+ if( "${_arg}" STREQUAL "EXTRA" )
-+ unset( _extra )
-+ set( _var _extra )
-+ set( _directive 1 )
-+ endif()
-+
-+ # found directive "SRCDIR"
-+ if( "${_arg}" STREQUAL "SRCDIR" )
-+ unset( _srcdir )
-+ set( _var _srcdir )
-+ set( _directive 1 )
-+ endif()
-+
-+ # found directive DESTINATION
-+ if( _arg STREQUAL "DESTINATION" )
-+ unset( _dest )
-+ set( _var _dest )
-+ set( _directive 1 )
-+ endif()
-+
-+ # found directive "LANG"
-+ if( "${_arg}" STREQUAL "LANG" )
-+ unset( _lang )
-+ set( _var _lang )
-+ set( _directive 1 )
-+ endif()
-+
-+ # collect data
-+ if( _directive )
-+ unset( _directive )
-+ elseif( _var )
-+ if( _first_arg )
-+ set( _target "${_arg}" )
-+ else()
-+ list( APPEND ${_var} ${_arg} )
-+ endif()
-+ endif()
-+
-+ unset( _first_arg )
-+
-+ endforeach()
-+
-+ # if no target specified, try to guess it from DESTINATION
-+ if( NOT _target )
-+ if( NOT _dest )
-+ tde_message_fatal( "target name cannot be determined because DESTINATION is not set" )
-+ endif()
-+ string( REPLACE "/" "-" _target "${_dest}" )
-+ endif()
-+
-+ set( _target "${_target}-${_lang}-handbook" )
-+
-+ # if no file specified, include all docbooks, stylesheets and images
-+ if( NOT _srcs )
-+ file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.docbook *.css *.png )
-+ endif()
-+
-+ # if no destination specified, defaulting to HTML_INSTALL_DIR
-+ if( NOT _dest )
-+ set( _dest "${HTML_INSTALL_DIR}/${_lang}" )
-+ # if destination is NOT absolute path,
-+ # we assume that is relative to HTML_INSTALL_DIR
-+ elseif( NOT IS_ABSOLUTE ${_dest} )
-+ set( _dest "${HTML_INSTALL_DIR}/${_lang}/${_dest}" )
-+ endif()
-+
-+ if( NOT _srcs )
-+ tde_message_fatal( "no source files" )
-+ endif()
-+
-+ if( NOT _noindex )
-+
-+ # check for index.docbook
-+ list( FIND _srcs "index.docbook" _find_index )
-+ if( -1 EQUAL _find_index )
-+ tde_message_fatal( "missing index.docbook file" )
-+ endif()
-+
-+ # check for srcdir
-+ if( _srcdir )
-+ set( _srcdir "--srcdir=${_srcdir}" )
-+ endif()
-+
-+ add_custom_command(
-+ OUTPUT index.cache.bz2
-+ COMMAND ${KDE3_MEINPROC_EXECUTABLE} ${_srcdir} --check --cache index.cache.bz2 ${CMAKE_CURRENT_SOURCE_DIR}/index.docbook
-+ DEPENDS ${_srcs} )
-+
-+ add_custom_target( ${_target} ALL DEPENDS index.cache.bz2 )
-+
-+ list( APPEND _srcs ${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2 )
-+
-+ endif()
-+
-+ install( FILES ${_srcs} ${_extra} DESTINATION ${_dest} )
-+ tde_install_symlink( ${TDE_HTML_DIR}/${_lang}/common ${_dest} )
-+
-+endmacro( )
-+
-+
-+#################################################
-+#####
-+##### tde_include_tqt
-+
-+macro( tde_include_tqt )
-+ foreach( _cpp ${ARGN} )
-+ set_source_files_properties( ${_cpp} PROPERTIES COMPILE_FLAGS "-include tqt.h" )
-+ endforeach()
-+endmacro( )
-+
-+
-+#################################################
-+#####
-+##### tde_install_symlink
-+
-+macro( tde_install_symlink _target _link )
-+
-+ # if path is relative, we must to prefix it with CMAKE_INSTALL_PREFIX
-+ if( IS_ABSOLUTE "${_link}" )
-+ set( _destination "${_link}" )
-+ else( IS_ABSOLUTE "${_link}" )
-+ set( _destination "${CMAKE_INSTALL_PREFIX}/${_link}" )
-+ endif( IS_ABSOLUTE "${_link}" )
-+
-+ get_filename_component( _path "${_destination}" PATH )
-+ if( NOT IS_DIRECTORY "\$ENV{DESTDIR}${_path}" )
-+ install( CODE "file( MAKE_DIRECTORY \"\$ENV{DESTDIR}${_path}\" )" )
-+ endif( NOT IS_DIRECTORY "\$ENV{DESTDIR}${_path}" )
-+
-+ install( CODE "execute_process( COMMAND ln -s ${_target} \$ENV{DESTDIR}${_destination} )" )
-+
-+endmacro( tde_install_symlink )
-+
-+
-+#################################################
-+#####
-+##### tde_install_empty_directory
-+
-+macro( tde_install_empty_directory _path )
-+
-+ # if path is relative, we must to prefix it with CMAKE_INSTALL_PREFIX
-+ if( IS_ABSOLUTE "${_path}" )
-+ set( _destination "${_path}" )
-+ else( IS_ABSOLUTE "${_path}" )
-+ set( _destination "${CMAKE_INSTALL_PREFIX}/${_path}" )
-+ endif( IS_ABSOLUTE "${_path}" )
-+
-+ install( CODE "file( MAKE_DIRECTORY \"\$ENV{DESTDIR}${_destination}\" )" )
-+
-+endmacro( tde_install_empty_directory )
-+
-+
-+#################################################
-+#####
-+##### tde_conditional_add_subdirectory
-+
-+macro( tde_conditional_add_subdirectory _cond _path )
-+
-+ if( ${_cond} )
-+ add_subdirectory( "${_path}" )
-+ endif( ${_cond} )
-+
-+endmacro( tde_conditional_add_subdirectory )
-+
-+
-+#################################################
-+#####
-+##### tde_auto_add_subdirectories
-+
-+macro( tde_auto_add_subdirectories )
-+ file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
-+ foreach( _dir ${_dirs} )
-+ if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} )
-+ if( NOT ${_dir} STREQUAL ".svn" AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/CMakeLists.txt )
-+ add_subdirectory( ${_dir} )
-+ endif()
-+ endif()
-+ endforeach()
-+endmacro()
-+
-+
-+#################################################
-+#####
-+##### tde_save / tde_restore
-+
-+macro( tde_save )
-+ foreach( _var ${ARGN} )
-+ set( __bak_${_var} ${${_var}} )
-+ endforeach()
-+endmacro()
-+
-+macro( tde_restore )
-+ foreach( _var ${ARGN} )
-+ set( ${_var} ${__bak_${_var}} )
-+ unset( __bak_${_var} )
-+ endforeach()
-+endmacro()
-+
-+
-+#################################################
-+#####
-+##### tde_setup_install_path
-+
-+macro( tde_setup_install_path _path _default )
-+ if( DEFINED ${_path} )
-+ set( ${_path} "${${_path}}" CACHE INTERNAL "" FORCE )
-+ else( )
-+ set( ${_path} "${_default}" )
-+ endif( )
-+endmacro( )
-+
-+
-+##################################################
-+
-+if( ${CMAKE_SOURCE_DIR} MATCHES ${CMAKE_BINARY_DIR} )
-+ tde_message_fatal( "Please use out-of-source building, like this:
-+ \n rm ${CMAKE_SOURCE_DIR}/CMakeCache.txt
-+ mkdir /tmp/${PROJECT_NAME}.build
-+ cd /tmp/${PROJECT_NAME}.build
-+ cmake ${CMAKE_SOURCE_DIR} [arguments...]" )
-+endif( )
-diff -u -r -N applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake src/applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake
---- applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,67 @@
-+#################################################
-+#
-+# (C) 2010-2011 Serghei Amelian
-+# serghei (DOT) amelian (AT) gmail.com
-+#
-+# Improvements and feedback are welcome
-+#
-+# This file is released under GPL >= 2
-+#
-+#################################################
-+
-+#################################################
-+#####
-+##### tde_internal_setup_path
-+
-+macro( _tde_internal_setup_path _path _default _comment )
-+ if( DEFINED ${_path} )
-+ set( ${_path} "${${_path}}" CACHE PATH "${_comment}" )
-+ else( DEFINED ${_path} )
-+ set( ${_path} "${_default}" )
-+ endif( DEFINED ${_path} )
-+endmacro( _tde_internal_setup_path )
-+
-+
-+#################################################
-+#####
-+##### tde_setup_paths
-+
-+macro( tde_setup_paths )
-+
-+ # install paths
-+ _tde_internal_setup_path( EXEC_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" "Base directory for executables and libraries" )
-+ _tde_internal_setup_path( SHARE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/share" "Base directory for files which go to share/" )
-+ _tde_internal_setup_path( BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" "The install dir for executables (default ${EXEC_INSTALL_PREFIX}/bin)" )
-+ _tde_internal_setup_path( SBIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/sbin" "The install dir for system executables (default ${EXEC_INSTALL_PREFIX}/sbin)" )
-+ _tde_internal_setup_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" "The subdirectory relative to the install prefix where libraries will be installed (default is ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX})" )
-+ _tde_internal_setup_path( LIBEXEC_INSTALL_DIR "${LIB_INSTALL_DIR}/trinity/libexec" "The subdirectory relative to the install prefix where libraries will be installed (default is ${LIB_INSTALL_DIR}/trinity/libexec)" )
-+ _tde_internal_setup_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" "The subdirectory to the header prefix" )
-+
-+ _tde_internal_setup_path( CMAKE_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/cmake" "The install dir for cmake import modules" )
-+ _tde_internal_setup_path( PLUGIN_INSTALL_DIR "${LIB_INSTALL_DIR}/trinity" "The subdirectory relative to the install prefix where plugins will be installed (default is ${LIB_INSTALL_DIR}/trinity)" )
-+ _tde_internal_setup_path( CONFIG_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/config" "The config file install dir" )
-+ _tde_internal_setup_path( DATA_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/apps" "The parent directory where applications can install their data" )
-+ _tde_internal_setup_path( HTML_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/doc/kde/HTML" "The HTML install dir for documentation" )
-+ _tde_internal_setup_path( ICON_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/icons" "The icon install dir (default ${SHARE_INSTALL_PREFIX}/share/icons/)" )
-+ _tde_internal_setup_path( KCFG_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/config.kcfg" "The install dir for kconfig files" )
-+ _tde_internal_setup_path( LOCALE_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/locale" "The install dir for translations" )
-+ _tde_internal_setup_path( APPS_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/applnk" "The install dir for the application desktop files" )
-+ _tde_internal_setup_path( MIME_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/mimelnk" "The install dir for the mimetype desktop files" )
-+ _tde_internal_setup_path( SERVICES_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/services" "The install dir for service (desktop, protocol, ...) files" )
-+ _tde_internal_setup_path( SERVICETYPES_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/servicetypes" "The install dir for servicestypes desktop files" )
-+ _tde_internal_setup_path( SOUND_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/sounds" "The install dir for sound files" )
-+ _tde_internal_setup_path( TEMPLATES_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/templates" "The install dir for templates (Create new file...)" )
-+ _tde_internal_setup_path( WALLPAPER_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/wallpapers" "The install dir for wallpapers" )
-+ _tde_internal_setup_path( KCONF_UPDATE_INSTALL_DIR "${DATA_INSTALL_DIR}/kconf_update" "The kconf_update install dir" )
-+ _tde_internal_setup_path( AUTOSTART_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/autostart" "The install dir for autostart files" )
-+
-+ _tde_internal_setup_path( SYSCONF_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/etc" "The sysconfig install dir (default ${CMAKE_INSTALL_PREFIX}/etc)" )
-+ _tde_internal_setup_path( MAN_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/man" "The man install dir (default ${SHARE_INSTALL_PREFIX}/man/)" )
-+ _tde_internal_setup_path( INFO_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/info" "The info install dir (default ${SHARE_INSTALL_PREFIX}/info)" )
-+
-+ _tde_internal_setup_path( XDG_MENU_INSTALL_DIR "${SYSCONF_INSTALL_DIR}/xdg/menus" "The XDG menus dir" )
-+ _tde_internal_setup_path( XDG_APPS_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/applications/kde" "The XDG apps dir" )
-+ _tde_internal_setup_path( XDG_DIRECTORY_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/desktop-directories" "The XDG directory" )
-+ _tde_internal_setup_path( XDG_MIME_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/mime/packages" "The install dir for the xdg mimetypes" )
-+
-+endmacro( tde_setup_paths )
-diff -u -r -N applications/knetworkmanager9/cmake/modules/tde_uic.cmake src/applications/knetworkmanager9/cmake/modules/tde_uic.cmake
---- applications/knetworkmanager9/cmake/modules/tde_uic.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/tde_uic.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,52 @@
-+#################################################
-+#
-+# (C) 2010-2011 Serghei Amelian
-+# serghei (DOT) amelian (AT) gmail.com
-+#
-+# Improvements and feedback are welcome
-+#
-+# This file is released under GPL >= 2
-+#
-+#################################################
-+
-+get_filename_component( _ui_basename ${UI_FILE} NAME_WE )
-+
-+# FIXME this will working only on out-of-source mode
-+set( local_ui_file ${_ui_basename}.ui )
-+configure_file( ${UI_FILE} ${local_ui_file} COPYONLY )
-+execute_process( COMMAND tqt-replace ${local_ui_file} )
-+
-+# ui.h extension file, if exists
-+if( EXISTS "${UI_FILE}.h" )
-+ configure_file( ${UI_FILE}.h ${local_ui_file}.h COPYONLY )
-+ execute_process( COMMAND tqt-replace ${local_ui_file}.h )
-+endif( )
-+
-+if( TDE_QTPLUGINS_DIR )
-+ set( L -L ${TDE_QTPLUGINS_DIR} )
-+endif( )
-+
-+execute_process( COMMAND ${UIC_EXECUTABLE}
-+ -nounload -tr tr2i18n
-+ ${L}
-+ ${local_ui_file}
-+ OUTPUT_VARIABLE _ui_h_content )
-+
-+if( _ui_h_content )
-+ string( REGEX REPLACE "#ifndef " "#ifndef UI_" _ui_h_content "${_ui_h_content}" )
-+ string( REGEX REPLACE "#define " "#define UI_" _ui_h_content "${_ui_h_content}" )
-+ file( WRITE ${_ui_basename}.h "${_ui_h_content}" )
-+endif( )
-+
-+execute_process( COMMAND ${UIC_EXECUTABLE}
-+ -nounload -tr tr2i18n
-+ ${L}
-+ -impl ${_ui_basename}.h
-+ ${local_ui_file}
-+ OUTPUT_VARIABLE _ui_cpp_content )
-+
-+if( _ui_cpp_content )
-+ string( REGEX REPLACE "tr2i18n\\(\"\"\\)" "QString::null" _ui_cpp_content "${_ui_cpp_content}" )
-+ string( REGEX REPLACE "tr2i18n\\(\"\", \"\"\\)" "QString::null" _ui_cpp_content "${_ui_cpp_content}" )
-+ file( WRITE ${_ui_basename}.cpp "#include <kdialog.h>\n#include <klocale.h>\n\n${_ui_cpp_content}" )
-+endif( )
-diff -u -r -N applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake src/applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake
---- applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,5 @@
-+#ifdef _AIX
-+ namespace {
-+ void *not_empty_file;
-+ }
-+#endif
-diff -u -r -N applications/knetworkmanager9/cmake/modules/template_export_library.cmake src/applications/knetworkmanager9/cmake/modules/template_export_library.cmake
---- applications/knetworkmanager9/cmake/modules/template_export_library.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/template_export_library.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,7 @@
-+add_library( @_target@ @_type@ IMPORTED )
-+
-+set_target_properties( @_target@ PROPERTIES
-+ IMPORTED_LINK_INTERFACE_LIBRARIES "@_shared_libs@"
-+ IMPORTED_LOCATION "@_location@"
-+ IMPORTED_SONAME "@_soname@" )
-+
-diff -u -r -N applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake src/applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake
---- applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,2 @@
-+extern "C" int kdemain(int argc, char* argv[]);
-+int main(int argc, char* argv[]) { return kdemain(argc,argv); }
-diff -u -r -N applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake src/applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake
---- applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,3 @@
-+#include <kdemacros.h>
-+extern "C" int kdemain(int argc, char* argv[]);
-+extern "C" KDE_EXPORT int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }
-diff -u -r -N applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake src/applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake
---- applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake 1970-01-01 01:00:00.000000000 +0100
-+++ src/applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake 2011-12-16 17:12:34.000000000 +0100
-@@ -0,0 +1,35 @@
-+# @_laname@ - a libtool library file
-+# Generated by CMake - GNU libtool
-+#
-+# Please DO NOT delete this file!
-+# It is necessary for linking the library.
-+
-+# The name that we can dlopen(3).
-+dlname='@_library_name_2@'
-+
-+# Names of this library.
-+library_names='@_library_name_1@ @_library_name_2@ @_library_name_3@'
-+
-+# The name of the static archive.
-+old_library=''
-+
-+# Libraries that this one depends upon.
-+dependency_libs=''
-+
-+# Version information for @_name@.
-+current=@_version_current@
-+age=@_version_age@
-+revision=@_version_revision@
-+
-+# Is this an already installed library?
-+installed=yes
-+
-+# Should we warn about portability when linking against -modules?
-+shouldnotlink=@_shouldnotlink@
-+
-+# Files to dlopen/dlpreopen
-+dlopen=''
-+dlpreopen=''
-+
-+# Directory that this library needs to be installed in:
-+libdir='@_libdir@'
-diff -u -r -N applications/knetworkmanager9/ConfigureChecks.cmake src/applications/knetworkmanager9/ConfigureChecks.cmake
---- applications/knetworkmanager9/ConfigureChecks.cmake 2011-10-17 19:42:55.000000000 +0200
-+++ src/applications/knetworkmanager9/ConfigureChecks.cmake 2011-12-16 17:13:04.000000000 +0100
-@@ -24,11 +24,11 @@
-
-
- # dbus-1-tqt
--pkg_search_module( DBUS_TQT dbus-1-tqt )
-+pkg_search_module( DBUS_TQT dbus-tqt-1 )
- if( DBUS_TQT_FOUND )
- find_program( DBUSXML2QT3_EXECUTABLE NAMES dbusxml2qt3 )
- else()
-- tde_message_fatal( "dbus-1-tqt are required, but not found on your system" )
-+ tde_message_fatal( "dbus-tqt-1 are required, but not found on your system" )
- endif( )
-
-
diff --git a/arch/3.5.13_broken/trinity-kpilot/PKGBUILD b/arch/3.5.13_broken/trinity-kpilot/PKGBUILD
deleted file mode 100644
index 11d8629aa..000000000
--- a/arch/3.5.13_broken/trinity-kpilot/PKGBUILD
+++ /dev/null
@@ -1,55 +0,0 @@
-# Maintainer: Calvin Morrison <mutantturkey@gmail.com>
-
-pkgname=trinity-kpilot
-pkgver=3513
-pkgrel=1
-arch=('i686' 'x86_64')
-url='http://www.trinitydesktop.org'
-license=('GPL')
-groups=('trinity-extras')
-pkgdesc="Trinity - kpilot Palm sync tool"
-depends=('trinity-kdebase')
-makedepends=('pkgconfig' 'cmake' 'imake')
-options=('libtool' '!strip')
-source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/kpilot-3.5.13.tar.gz)
-md5sums=('adac05d936e6947ac0b1033c8d3192cd')
-
-_svnmod=applications/kpilot
-
-build() {
-
- msg "Setting PATH, CMAKE and Trinity Environment variables"
- export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
- export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/include
- export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=:/opt/qt/lib/pkgconfig
-
- trinity_prefix="/opt/trinity"
-
- cd $srcdir
- msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
-
- # Baho additions
- CFLAGS=${CFLAGS}" -fpermissive"
- CXXFLAGS=${CXXFLAGS}" -fpermissive"
-
- msg "Starting cmake..."
- cmake ${srcdir}/${_svnmod} \
- -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
- -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DQT_VERSION=3 \
- -DWITH_IFP=ON \
- -DWITH_NJB=ON \
- -DWITH_MTP=ON \
- -DWITH_DAAP=ON \
- -DBUILD_ALL=ON
- make
-}
-
-package() {
- msg "Packaging - $pkgname-$pkgver"
- cd ${srcdir}/build
- make DESTDIR="$pkgdir/" install
-}
diff --git a/arch/3.5.13_broken/trinity-lipstik/PKGBUILD b/arch/3.5.13_broken/trinity-lipstik/PKGBUILD
deleted file mode 100644
index 63328f858..000000000
--- a/arch/3.5.13_broken/trinity-lipstik/PKGBUILD
+++ /dev/null
@@ -1,52 +0,0 @@
-# Maintainer: Calvin Morrison <mutantturkey@gmail.com>
-
-pkgname=trinity-style-lipstik
-pkgver=3513
-pkgrel=1
-arch=('i686' 'x86_64')
-url='http://www.trinitydesktop.org'
-license=('GPL')
-groups=('trinity-extras')
-pkgdesc="Trinity - Lipstik sytle"
-depends=('trinity-kdebase')
-makedepends=('pkgconfig' 'cmake' 'imake')
-options=('libtool' '!strip')
-source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/kde-style-lipstik-3.5.13.tar.gz)
-md5sums=('1585d4df7f0c68499fafa0b8ecb82dab')
-
-_svnmod=applications/kde-style-lipstik
-
-build() {
-
- msg "Setting PATH, CMAKE and Trinity Environment variables"
- export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
- export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/include
- export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=:/opt/qt/lib/pkgconfig
-
- export CFLAGS=-I/opt/trinity/include/tqt
- export CXXFLAGS=-I/opt/trinity/include/tqt
-
- trinity_prefix="/opt/trinity"
-
- cd $srcdir/${_svnmod}
- make -f admin/Makefile.common
-
- cd $srcdir
- msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
-
- msg "Starting cmake..."
- cmake ${srcdir}/${_svnmod} \
- -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
- -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DBUILD_ALL=ON
- make
-}
-
-package() {
- msg "Packaging - $pkgname-$pkgver"
- cd ${srcdir}/build
- make DESTDIR="$pkgdir/" install
-}
diff --git a/arch/3.5.13_broken/trinity-rosegarden/PKGBUILD b/arch/3.5.13_broken/trinity-rosegarden/PKGBUILD
deleted file mode 100644
index 6e716b31c..000000000
--- a/arch/3.5.13_broken/trinity-rosegarden/PKGBUILD
+++ /dev/null
@@ -1,54 +0,0 @@
-# Maintainer: Calvin Morrison <mutantturkey@gmail.com>
-
-pkgname=trinity-rosegarden
-pkgver=3513
-pkgrel=170
-arch=('i686' 'x86_64')
-url='http://www.trinitydesktop.org'
-license=('GPL')
-groups=('trinity-extras')
-pkgdesc="Trinity - Rosegarden, A MIDI and audio sequencer and musical notation editor."
-depends=('trinity-kdelibs' 'dssi' 'jack' 'liblo' 'liblrdf' 'fftw')
-makedepends=('pkgconfig' 'cmake' 'imake')
-options=('libtool' '!strip')
-source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/rosegarden-3.5.13.tar.gz)
-md5sums=('8906d1797bae89920d9a9ab54c09b49d')
-
-_svnmod=applications/rosegarden
-
-build() {
-
- msg "Setting PATH, CMAKE and Trinity Environment variables"
- export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
- export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/include
- export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=:/opt/qt/lib/pkgconfig
-
- trinity_prefix="/opt/trinity"
-
- cd $srcdir
- msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
-
- msg "Starting cmake..."
- cmake ${srcdir}/${_svnmod} \
- -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
- -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DQT_MOC_EXECUTABLE=/opt/trinity/bin/tmoc \
- -DWANT_DEBUG=OFF \
- -DWANT_FULLDBG=OFF \
- -DWANT_SOUND=ON \
- -DWANT_JACK=ON \
- -DWANT_DSSI=ON \
- -DWANT_LIRC=ON \
- -DWANT_PCH=OFF \
- -DBUILD_ALL=ON
- make
-}
-
-package() {
- msg "Packaging - $pkgname-$pkgver"
- cd ${srcdir}/build
- make DESTDIR="$pkgdir/" install
-}
diff --git a/arch/3.5.13_broken/trinity-wlassistant/PKGBUILD b/arch/3.5.13_broken/trinity-wlassistant/PKGBUILD
index 0a8128abc..e051328fe 100644
--- a/arch/3.5.13_broken/trinity-wlassistant/PKGBUILD
+++ b/arch/3.5.13_broken/trinity-wlassistant/PKGBUILD
@@ -3,44 +3,46 @@
pkgname=trinity-wlassistant
pkgver=3513
pkgrel=1
+
arch=('i686' 'x86_64')
+
url='http://www.trinitydesktop.org'
license=('GPL')
-groups=('trinity-extras')
+groups=('trinity')
pkgdesc="Trinity - wlassistant"
-depends=('trinity-kdebase')
-makedepends=('pkgconfig' 'cmake' 'imake')
+
+depends=('trinity-kdelibs' 'trinity-pyqt3')
+makedepends=('pkgconfig' 'autoconf' 'automake' 'scons')
+
options=('libtool' '!strip')
+
source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/wlassistant-3.5.13.tar.gz)
md5sums=('1fd3680a634fedee3c2d90b81c1ffe23')
-_svnmod=applications/wlassistant
+_builddir=applications/wlassistant
+_prefix=/opt/trinity
build() {
- msg "Setting PATH, CMAKE and Trinity Environment variables"
- export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
- export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/include
- export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=:/opt/qt/lib/pkgconfig
-
- trinity_prefix="/opt/trinity"
+ msg "Setting Trinity Environment variables"
+ export LD_LIBRARY_PATH=${_prefix}/lib:${_prefix}/lib/trinity:$LD_LIBRARY_PATH
+ export PKG_CONFIG_PATH=${_prefix}/lib/pkgconfig:${QTDIR}/lib/pkgconfig
- cd $srcdir
- msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
+ cd ${srcdir}/${_builddir}
+ msg "Starting configure..."
+ ./configure --qtdir=${QTDIR} \
+ --qtlibs=${QTDIR}/lib \
+ --kdedir=${_prefix} \
+ --prefix=${_prefix} \
+ --kdeincludes=${_prefix}/include \
+ --kde-libs=${_prefix}/lib
- msg "Starting cmake..."
- cmake ${srcdir}/${_svnmod} \
- -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
- -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DBUILD_ALL=ON
+ msg "Building ${pkgname}..."
make
}
package() {
msg "Packaging - $pkgname-$pkgver"
- cd ${srcdir}/build
- make DESTDIR="$pkgdir/" install
+ cd ${srcdir}/${_builddir}
+ make DESTDIR="${pkgdir}" install
}
diff --git a/arch/extras/README b/arch/extras/README
new file mode 100644
index 000000000..d508b327f
--- /dev/null
+++ b/arch/extras/README
@@ -0,0 +1,12 @@
+contents of this directory
+
+ autotools_PKGBUILD: example of PKGBUILD for building
+ trinity components with autotools. Should be used
+ as template for new PKGBUILDS.
+
+ cmake_PKGBUILD: example of PKGBUILD for building
+ trinity components with CMake. Should be used as
+ a template for new PKGBUILDS.
+
+ batchbuild: simple scirpt for batch building trinity
+ components.
diff --git a/arch/extras/autotools_PKGBUILD b/arch/extras/autotools_PKGBUILD
new file mode 100644
index 000000000..da6756f37
--- /dev/null
+++ b/arch/extras/autotools_PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Calvin Morrison <mutantturkey@gmail.com>
+
+pkgname=trinity-pkname
+pkgver=3513
+pkgrel=1
+
+arch=('i686' 'x86_64')
+
+url='http://www.trinitydesktop.org'
+license=('GPL')
+groups=('trinity')
+pkgdesc="Trinity - pkgdesc"
+
+depends=('trinity-kdelibs')
+makedepends=('pkgconfig' 'autoconf' 'automake')
+optdepends=()
+
+provides=($pkgname)
+conflicts=()
+replaces=()
+
+options=('libtool' '!strip')
+
+source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/pkname-3.5.13.tar.gz)
+md5sums=('pkgmd5')
+
+_builddir=applications/pkname
+_prefix=/opt/trinity
+
+build() {
+
+ msg "Setting Trinity Environment variables"
+ export LD_LIBRARY_PATH=${_prefix}/lib:${_prefix}/lib/trinity:$LD_LIBRARY_PATH
+ export PKG_CONFIG_PATH=${_prefix}/lib/pkgconfig:${QTDIR}/lib/pkgconfig
+
+ #msg "Patching..."
+ #patch -N -d ${srcdir} -p0 < pkname.patch
+
+ msg "Starting autoconf..."
+ cd "$srcdir/${_builddir}"
+ cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+ cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
+ make -f admin/Makefile.common
+
+ msg "Starting configure..."
+ ./configure --with-qt-dir=${QTDIR} \
+ --prefix=${_prefix} \
+ --with-extra-includes=${_prefix}/include:/usr/include/dbus-1.0:${_prefix}/include/libkrandr \
+ --with-extra-libs=${_prefix}/lib:${_prefix}/lib/trinity:${_prefix}/pkgconfig
+
+ msg "Building ${pkgname}..."
+ make
+}
+
+package() {
+ msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/${_builddir}
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/arch/scripts/buildarchbinaries b/arch/extras/batchbuild
index 01b9a3e05..01b9a3e05 100755
--- a/arch/scripts/buildarchbinaries
+++ b/arch/extras/batchbuild
diff --git a/arch/extras/cmake_PKGBUILD b/arch/extras/cmake_PKGBUILD
new file mode 100644
index 000000000..5ba8e651b
--- /dev/null
+++ b/arch/extras/cmake_PKGBUILD
@@ -0,0 +1,66 @@
+# Maintainer: Calvin Morrison <mutantturkey@gmail.com>
+
+pkgname=trinity-pkname
+pkgver=3513
+pkgrel=1
+
+arch=('i686' 'x86_64')
+
+url='http://www.trinitydesktop.org'
+license=('GPL')
+groups=('trinity-extras')
+pkgdesc="Trinity - pkgdesc"
+
+depends=('trinity-kdelibs')
+makedepends=('pkgconfig' 'cmake' 'imake')
+optdepends=()
+
+provides=($pkgname)
+confilcts=()
+replaces=()
+
+options=('libtool' '!strip')
+
+source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/pkname-3.5.13.tar.gz)
+md5sums=('')
+
+_svnmod=applications/kpowersave
+_builddir=build
+_prefix="/opt/trinity"
+
+build() {
+ msg "Setting PATH, CMAKE and Trinity Environment variables"
+ export CMAKE_PREFIX_PATH=${QTDIR}:${_prefix}
+ export CMAKE_INCLUDE_PATH=${QTDIR}/include:${QTDIR}/include/tqt:/usr/include/dbus-1.0:${_prefix}/include:${_prefix}/include/libkrandr
+ export LD_LIBRARY_PATH=${_prefix}/lib:${_prefix}/lib/trinity:$LD_LIBRARY_PATH
+ export PKG_CONFIG_PATH=${_prefix}/lib/pkgconfig:${QTDIR}/lib/pkgconfig
+
+# patch
+# msg "Patching..."
+# patch -N -d ${srcdir} -p0 < ${srcdir}/pkname.patch
+
+ cd $srcdir
+ msg "Creating out-of-source build directory: ${srcdir}/${_builddir}"
+ mkdir -p ${_builddir}
+ cd ${_builddir}
+
+ msg "Starting cmake..."
+ cmake ${srcdir}/${_svnmod} \
+ -DCMAKE_INSTALL_PREFIX=${_prefix} \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DQT_VERSION=3 \
+ -DWITH_QT3=ON \
+ -DQTDIR=${QTDIR} \
+ -DQT_DOCDIR=${QTDIR}/man \
+ -DQT_LIBRARY_DIRS=${QTDIR}/lib \
+ -DBUILD_ALL=ON
+
+ msg "Building - $pkgname..."
+ make
+}
+
+package() {
+ msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/${_builddir}
+ make DESTDIR="${pkgdir}" install
+}