summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-base/kdebase-startkde/ChangeLog10
-rw-r--r--kde-base/kdebase-startkde/files/digest-kdebase-startkde-4.0.03
-rw-r--r--kde-base/kdebase-startkde/kdebase-startkde-4.0.0.ebuild109
3 files changed, 120 insertions, 2 deletions
diff --git a/kde-base/kdebase-startkde/ChangeLog b/kde-base/kdebase-startkde/ChangeLog
index d49789000780..170a1245a7b4 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-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase-startkde/ChangeLog,v 1.96 2007/12/09 23:11:59 philantrop Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase-startkde/ChangeLog,v 1.97 2008/01/17 23:46:08 philantrop Exp $
+
+*kdebase-startkde-4.0.0 (17 Jan 2008)
+
+ 17 Jan 2008; Wulf C. Krueger <philantrop@gentoo.org>
+ +kdebase-startkde-4.0.0.ebuild:
+ Added KDE 4.0.0's kdebase-startkde.
*kdebase-startkde-3.5.8-r1 (09 Dec 2007)
*kdebase-startkde-3.5.7-r1 (09 Dec 2007)
diff --git a/kde-base/kdebase-startkde/files/digest-kdebase-startkde-4.0.0 b/kde-base/kdebase-startkde/files/digest-kdebase-startkde-4.0.0
new file mode 100644
index 000000000000..62148a2dcffb
--- /dev/null
+++ b/kde-base/kdebase-startkde/files/digest-kdebase-startkde-4.0.0
@@ -0,0 +1,3 @@
+MD5 f3d2155ff5ff7472a8884bd3f31bff16 kdebase-workspace-4.0.0.tar.bz2 29792206
+RMD160 bd1f3cb49b6ce0b35a918ffdce60ca3f733fdf06 kdebase-workspace-4.0.0.tar.bz2 29792206
+SHA256 8fb9f077001256c86ad097eb4fc4f6641c6e9af39e96fc34ef4d52ace4b94f23 kdebase-workspace-4.0.0.tar.bz2 29792206
diff --git a/kde-base/kdebase-startkde/kdebase-startkde-4.0.0.ebuild b/kde-base/kdebase-startkde/kdebase-startkde-4.0.0.ebuild
new file mode 100644
index 000000000000..7b6b647f135f
--- /dev/null
+++ b/kde-base/kdebase-startkde/kdebase-startkde-4.0.0.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2008 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.0.0.ebuild,v 1.1 2008/01/17 23:46:08 philantrop Exp $
+
+EAPI="1"
+
+KMNAME=kdebase-workspace
+KMNOMODULE=true
+inherit multilib kde4-meta
+
+DESCRIPTION="Startkde script, which starts a complete KDE session, and associated scripts"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+# The KDE apps called from the startkde script.
+# These provide the most minimal KDE desktop.
+RDEPEND="${DEPEND}
+ >=kde-base/kcminit-${PV}:${SLOT}
+ >=kde-base/kdebase-data-${PV}:${SLOT}
+ >=kde-base/kdebase-kioslaves-${PV}:${SLOT}
+ >=kde-base/kde-wallpapers-${PV}:${SLOT}
+ >=kde-base/knotify-${PV}:${SLOT}
+ >=kde-base/kreadconfig-${PV}:${SLOT}
+ >=kde-base/krunner-${PV}:${SLOT}
+ >=kde-base/ksmserver-${PV}:${SLOT}
+ >=kde-base/ksplash-${PV}:${SLOT}
+ >=kde-base/kstartupconfig-${PV}:${SLOT}
+ >=kde-base/kstyles-${PV}:${SLOT}
+ >=kde-base/kwin-${PV}:${SLOT}
+ >=kde-base/plasma-${PV}:${SLOT}
+ >=kde-base/systemsettings-${PV}:${SLOT}
+ x11-apps/xmessage
+ x11-apps/xsetroot
+ x11-apps/xset
+ x11-apps/xrandr
+ x11-apps/mkfontdir
+ x11-apps/xprop"
+
+KMEXTRACTONLY="
+startkde.cmake
+ConfigureChecks.cmake
+kdm/"
+KMCOMPILEONLY="kdm/kfrontend/sessions/"
+
+PATCHES="${FILESDIR}/gentoo-startkde.patch"
+
+src_compile() {
+ # Patch the startkde script to setup the environment for KDE 4.0
+ # Add our KDEDIR
+ sed -e "s#@REPLACE_PREFIX@#${PREFIX}#" \
+ -i "${S}/startkde.cmake" || die "Sed for PREFIX failed."
+
+ # List all the multilib libdirs
+ local _libdir _libdirs
+ for _libdir in $(get_all_libdirs); do
+ _libdirs="${_libdirs}:${PREFIX}/${_libdir}"
+ done
+ _libdirs=${_libdirs#:}
+
+ # Complete LDPATH
+ sed -e "s#@REPLACE_LIBS@#${_libdirs}#" \
+ -i "${S}/startkde.cmake" || die "Sed for LDPATH failed."
+
+ kde4-meta_src_compile
+}
+
+src_install() {
+ kde4-meta_src_install
+
+ # startup and shutdown scripts
+ insinto "${KDEDIR}/env"
+ doins "${FILESDIR}/agent-startup.sh"
+
+ exeinto "${KDEDIR}/shutdown"
+ doexe "${FILESDIR}/agent-shutdown.sh"
+
+ # freedesktop environment variables
+ cat <<-EOF > "${T}/xdg.sh"
+ export XDG_DATA_DIRS="${KDEDIR}/share:/usr/share"
+ export XDG_CONFIG_DIRS="${KDEDIR}/etc/xdg"
+ EOF
+ insinto "${KDEDIR}/env"
+ doins "${T}/xdg.sh"
+
+ # x11 session script
+ cat <<-EOF > "${T}/${SLOT}"
+ #!/bin/sh
+ exec ${KDEDIR}/bin/startkde
+ EOF
+ exeinto /etc/X11/Sessions
+ doexe "${T}/${SLOT}"
+
+ # freedesktop compliant session script
+ sed -e "s:\${KDE4_BIN_INSTALL_DIR}:${KDEDIR}/bin:g;s:Name=KDE:Name=${SLOT}:" \
+ "${S}/kdm/kfrontend/sessions/kde.desktop.cmake" > "${T}/${SLOT}.desktop"
+ insinto /usr/share/xsessions
+ doins "${T}/${SLOT}.desktop"
+}
+
+pkg_postinst () {
+ kde4-base_pkg_postinst
+
+ echo
+ elog "To enable gpg-agent and/or ssh-agent in KDE sessions,"
+ elog "edit ${KDEDIR}/env/agent-startup.sh and"
+ elog "${KDEDIR}/shutdown/agent-shutdown.sh"
+ echo
+}