summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2009-06-04 11:49:27 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2009-06-04 11:49:27 +0000
commitfb31b019562271154fd1f9f32be970f1f9498d2d (patch)
tree31073f51cb7bf4ec2eb1f9ed5e4bd515a93e2366 /kde-base/kdebase-startkde
parentVersion bump KDE 4.2.4 (diff)
downloadgentoo-2-fb31b019562271154fd1f9f32be970f1f9498d2d.tar.gz
gentoo-2-fb31b019562271154fd1f9f32be970f1f9498d2d.tar.bz2
gentoo-2-fb31b019562271154fd1f9f32be970f1f9498d2d.zip
Version bump KDE 4.2.4
(Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'kde-base/kdebase-startkde')
-rw-r--r--kde-base/kdebase-startkde/ChangeLog8
-rw-r--r--kde-base/kdebase-startkde/files/gentoo-startkde4.patch8
-rw-r--r--kde-base/kdebase-startkde/kdebase-startkde-4.2.4.ebuild138
3 files changed, 149 insertions, 5 deletions
diff --git a/kde-base/kdebase-startkde/ChangeLog b/kde-base/kdebase-startkde/ChangeLog
index 1f49d3d4cfb3..bbccd6f52df1 100644
--- a/kde-base/kdebase-startkde/ChangeLog
+++ b/kde-base/kdebase-startkde/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for kde-base/kdebase-startkde
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase-startkde/ChangeLog,v 1.161 2009/06/03 18:31:56 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase-startkde/ChangeLog,v 1.162 2009/06/04 11:49:27 alexxy Exp $
+
+*kdebase-startkde-4.2.4 (04 Jun 2009)
+
+ 04 Jun 2009; Alexey Shvetsov <alexxy@gentoo.org>
+ files/gentoo-startkde4.patch, +kdebase-startkde-4.2.4.ebuild:
+ Version bump
03 Jun 2009; Brent Baude <ranger@gentoo.org> ChangeLog:
Marking kdebase-startkde-3.5.10-r5 ppc64 stable for bug 271889
diff --git a/kde-base/kdebase-startkde/files/gentoo-startkde4.patch b/kde-base/kdebase-startkde/files/gentoo-startkde4.patch
index 816bda1840a2..f1ccc92a43c8 100644
--- a/kde-base/kdebase-startkde/files/gentoo-startkde4.patch
+++ b/kde-base/kdebase-startkde/files/gentoo-startkde4.patch
@@ -4,12 +4,12 @@ diff -Naur kdebase-startkde-4.2.0-orig/startkde.cmake kdebase-startkde-4.2.0/sta
@@ -7,6 +7,37 @@
# because we still need to do some cleanup.
trap 'echo GOT SIGHUP' HUP
-
+
+_KDEDIR=@REPLACE_PREFIX@
+if [ "$_KDEDIR" != "/usr" ]; then
+ export PATH=${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/kde/[^/]*/s\?bin/\?:##g;s/:$//g')
+ export ROOTPATH=${_KDEDIR}/sbin:${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/kde/[^/]*/s\?bin/\?:##g;s/:$//g')
-+ export XDG_CONFIG_DIRS=${_KDEDIR}/etc/xdg
++ export XDG_CONFIG_DIRS=${_KDEDIR}/etc/xdg:${XDG_CONFIG_DIRS}
+fi
+@REPLACE_LDPATH@
+export STRIGI_PLUGIN_PATH="${_KDEDIR}/@REPLACE_LIBDIR@/strigi:${STRIGI_PLUGIN_PATH}"
@@ -42,7 +42,7 @@ diff -Naur kdebase-startkde-4.2.0-orig/startkde.cmake kdebase-startkde-4.2.0/sta
@@ -214,6 +243,13 @@
done
done
-
+
+# Gentoo part for FHS installs
+if [ "${_KDEDIR}" = "/usr" ]; then
+ for file in "/etc/kde/startup/"*.sh; do
@@ -56,7 +56,7 @@ diff -Naur kdebase-startkde-4.2.0-orig/startkde.cmake kdebase-startkde-4.2.0/sta
@@ -427,6 +463,13 @@
done
done
-
+
+# Gentoo part for FHS installs
+if [ "${_KDEDIR}" = "/usr" ]; then
+ for file in "/etc/kde/shutdown/"*.sh; do
diff --git a/kde-base/kdebase-startkde/kdebase-startkde-4.2.4.ebuild b/kde-base/kdebase-startkde/kdebase-startkde-4.2.4.ebuild
new file mode 100644
index 000000000000..a4f49d4b5de0
--- /dev/null
+++ b/kde-base/kdebase-startkde/kdebase-startkde-4.2.4.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase-startkde/kdebase-startkde-4.2.4.ebuild,v 1.1 2009/06/04 11:49:27 alexxy Exp $
+
+EAPI="2"
+
+KMNAME="kdebase-workspace"
+KMNOMODULE="true"
+inherit kde4-meta multilib
+
+DESCRIPTION="Startkde script, which starts a complete KDE session, and associated scripts"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+# The KDE apps called from the startkde script.
+# These provide the most minimal KDE desktop.
+RDEPEND="
+ >=kde-base/kcminit-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/kdebase-desktoptheme-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/kdebase-kioslaves-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/kdedglobalaccel-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/kde-wallpapers-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/knotify-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/kreadconfig-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/krunner-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/ksmserver-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/ksplash-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/kstartupconfig-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/kstyles-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/kwin-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/phonon-kde-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/plasma-apps-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/plasma-workspace-${PV}:${SLOT}[kdeprefix=]
+ >=kde-base/systemsettings-${PV}:${SLOT}[kdeprefix=]
+ x11-apps/mkfontdir
+ x11-apps/xmessage
+ x11-apps/xprop
+ x11-apps/xrandr
+ x11-apps/xrdb
+ x11-apps/xsetroot
+ x11-apps/xset
+"
+
+KMEXTRACTONLY="
+ ConfigureChecks.cmake
+ kdm/
+ safestartkde.cmake
+ startkde.cmake
+"
+
+PATCHES=("${FILESDIR}/gentoo-startkde4.patch")
+
+src_prepare() {
+ kde4-meta_src_prepare
+
+ # Patch the startkde script to setup the environment for KDE
+ # List all the multilib libdirs
+ local _libdir _libdirs
+ for _libdir in $(get_all_libdirs); do
+ _libdirs="${_libdirs}:${KDEDIR}/${_libdir}"
+ done
+ _libdirs=${_libdirs#:}
+
+ # Sort the LDFLAGS out if necessary
+ if use kdeprefix; then
+ sed -e "s#@REPLACE_LDFLAGS@#export LDFLAGS=${_libdirs}:\$LDFLAGS#" \
+ -i startkde.cmake || die "Sed for LDPATH failed."
+ else
+ sed -e "s#@REPLACE_LDFLAGS@##" \
+ -i startkde.cmake || die "sed for LDPATH failed"
+ fi
+
+ # Complete LDPATH
+ sed -e "s#@REPLACE_LIBDIR@#$(get_libdir)#" \
+ -i startkde.cmake || die "Sed for REPLACE_LIBDIR failed."
+ # Now fix the prefix
+ sed -e "s#@REPLACE_PREFIX@#${KDEDIR}#" \
+ -i startkde.cmake || die "Sed for REPLACE_PREFIX failed."
+
+ # Replace applications menu prefix
+ sed -e "s#@REPLACE_MENU_PREFIX@#kde-${SLOT}-#" \
+ -i startkde.cmake || die "Sed for REPLACE_MENU_PREFIX failed."
+}
+
+src_install() {
+ kde4-meta_src_install
+
+ # startup and shutdown scripts
+ if use kdeprefix; then
+ insinto "${KDEDIR}/env"
+ else
+ insinto "/etc/kde/startup"
+ fi
+ doins "${FILESDIR}/agent-startup.sh" || die "doexe agent-startup.sh failed"
+
+ if use kdeprefix; then
+ exeinto "${KDEDIR}/shutdown"
+ else
+ exeinto "/etc/kde/shutdown"
+ fi
+ doexe "${FILESDIR}/agent-shutdown.sh" || die "doexe agent-shutdown.sh failed"
+
+ # x11 session script
+ local DIR="kde-${SLOT}"
+ cat <<-EOF > "${T}/${DIR}"
+ #!/bin/sh
+ exec ${KDEDIR}/bin/startkde
+ EOF
+ exeinto /etc/X11/Sessions
+ doexe "${T}/${DIR}" || die "doexe ${DIR} failed"
+
+ # freedesktop compliant session script
+ local KDE_X
+ if use kdeprefix; then
+ KDE_X="KDE-${SLOT}"
+ else
+ KDE_X="KDE-4"
+ fi
+ sed -e "s:\${KDE4_BIN_INSTALL_DIR}:${KDEDIR}/bin:g;s:Name=KDE:Name=KDE ${SLOT}:" \
+ "${S}/kdm/kfrontend/sessions/kde.desktop.cmake" > "${T}/${KDE_X}.desktop"
+ insinto /usr/share/xsessions
+ doins "${T}/${KDE_X}.desktop" || die "doins ${KDE_X}.desktop failed"
+}
+
+pkg_postinst () {
+ kde4-meta_pkg_postinst
+
+ echo
+ elog "To enable gpg-agent and/or ssh-agent in KDE sessions,"
+ if use kdeprefix; then
+ elog "edit ${KDEDIR}/env/agent-startup.sh and"
+ elog "${KDEDIR}/shutdown/agent-shutdown.sh"
+ else
+ elog "edit /etc/kde/startup/agent-startup.sh and"
+ elog "/etc/kde/shutdown/agent-shutdown.sh"
+ fi
+ echo
+}