summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Armak <danarmak@gentoo.org>2005-05-25 21:23:15 +0000
committerDan Armak <danarmak@gentoo.org>2005-05-25 21:23:15 +0000
commit2c22cfa8ffcfc73043bf37aeee39170605f0eb4d (patch)
treed056634258bce285b9c3837f09ef42145572f845 /kde-base/kdebase-startkde/kdebase-startkde-3.4.1.ebuild
parentAdd the missing HOMEPAGE variable so repoman doesn't complain. (diff)
downloadgentoo-2-2c22cfa8ffcfc73043bf37aeee39170605f0eb4d.tar.gz
gentoo-2-2c22cfa8ffcfc73043bf37aeee39170605f0eb4d.tar.bz2
gentoo-2-2c22cfa8ffcfc73043bf37aeee39170605f0eb4d.zip
KDE 3.4.1 ebuilds; package.masked as they aren't released yet
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'kde-base/kdebase-startkde/kdebase-startkde-3.4.1.ebuild')
-rw-r--r--kde-base/kdebase-startkde/kdebase-startkde-3.4.1.ebuild74
1 files changed, 74 insertions, 0 deletions
diff --git a/kde-base/kdebase-startkde/kdebase-startkde-3.4.1.ebuild b/kde-base/kdebase-startkde/kdebase-startkde-3.4.1.ebuild
new file mode 100644
index 000000000000..36dcda17c05d
--- /dev/null
+++ b/kde-base/kdebase-startkde/kdebase-startkde-3.4.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase-startkde/kdebase-startkde-3.4.1.ebuild,v 1.1 2005/05/25 21:23:03 danarmak Exp $
+
+KMNAME=kdebase
+KMNOMODULE=true
+KMEXTRACTONLY="kdm/kfrontend/sessions/kde.desktop.in startkde"
+MAXKDEVER=$PV
+KM_DEPRANGE="$PV $MAXKDEVER"
+inherit kde-meta eutils
+
+DESCRIPTION="startkde script, which starts a complete KDE session, and associated scripts"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+# The kde apps called from the startkde script.
+# kdesktop, kicker etc are started because they put files in $KDEDIR/share/autostart
+# and so in theory they aren't strictly necessary deps.
+RDEPEND="$RDEPEND
+$(deprange $PV $MAXKDEVER kde-base/kdesktop)
+$(deprange $PV $MAXKDEVER kde-base/kcminit)
+$(deprange $PV $MAXKDEVER kde-base/ksmserver)
+$(deprange $PV $MAXKDEVER kde-base/kwin)
+$(deprange $PV $MAXKDEVER kde-base/kpersonalizer)
+$(deprange $PV $MAXKDEVER kde-base/kreadconfig)
+$(deprange $PV $MAXKDEVER kde-base/ksplashml)"
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+ # startkde script
+ epatch ${FILESDIR}/${PF}-gentoo.patch
+ exeinto ${KDEDIR}/bin
+ doexe startkde
+
+ # 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}/kde-${SLOT}
+#!/bin/sh
+exec ${KDEDIR}/bin/startkde
+EOF
+ exeinto /etc/X11/Sessions
+ doexe ${T}/kde-${SLOT}
+
+ # freedesktop compliant session script
+ sed -e "s:@KDE_BINDIR@:${KDEDIR}/bin:g;s:Name=KDE:Name=KDE ${SLOT}:" \
+ ${S}/kdm/kfrontend/sessions/kde.desktop.in > ${T}/kde-${SLOT}.desktop
+ insinto /usr/share/xsessions
+ doins ${T}/kde-${SLOT}.desktop
+}
+
+pkg_postinst () {
+ echo
+ einfo "To enable gpg-agent and/or ssh-agent in KDE sessions,"
+ einfo "edit ${KDEDIR}/env/agent-startup.sh and"
+ einfo "${KDEDIR}/shutdown/agent-shutdown.sh"
+ echo
+}