# $Id$ PNAME="kdebase4-workspace" PVER="4.2.4" PBUILD="r1" PCATEGORIE="kde-base" STATE="unstable" DESCRIPTION="The KDE4 workspace." DEPEND=">= dev-libs/glib2-2.20 >= dev-libs/libusb-0.1.12 >= dev-libs/openssl-0.9.8 >= media-libs/fontconfig-2.6 >= media-libs/freetype-2.3.9 >= media-libs/libpng-1.2.36 >= sys-apps/eject-2.1.5 >= sys-apps/hal-0.5.12 >= sys-apps/usbutils-0.82 >= sys-libs/libraw1394-2.0 >= sys-libs/pam-0.99 >= x11-apps/mkfontdir-1 >= x11-apps/setxkbmap-1 >= x11-apps/xinit-1 >= x11-apps/xmessage-1 >= x11-apps/xprop-1 >= x11-apps/xrandr-1.3 >= x11-apps/xset-1 >= x11-apps/xsetroot-1 >= x11-misc/xkeyboard-config-1.6 >= x11-libs/libxklavier-3.9 >= x11-libs/libXau-1 >= x11-libs/libXcomposite-1 >= x11-libs/libXdamage-1 >= x11-libs/libXdmcp-1 >= x11-libs/libXext-1 >= x11-libs/libXfixes-1 >= x11-libs/libXinerama-1 >= x11-libs/libXScrnSaver-1 >= x11-libs/libXrender-0.9 >= x11-libs/libXres-1 >= x11-libs/libXrandr-1.3 >= x11-libs/libXtst-1 >= virtual/opengl" # todo: media-libs/libcaptury support!! SDEPEND=">= x11-apps/bdftopcf-1 >= x11-proto/compositeproto-1 >= x11-proto/damageproto-1 >= x11-proto/randrproto-1.3 >= x11-proto/scrnsaverproto-1 >= x11-proto/xineramaproto-1" sminclude kde4 UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'" # cvs revisions KDE_PAMD=kde.pamd-1.2 KDE_NP_PAMD=kde-np.pamd-1.2 SRC_URI=( ${SRC_URI[*]} mirror://${PNAME}/kde.desktop mirror://${PNAME}/${KDE_PAMD} mirror://${PNAME}/${KDE_NP_PAMD} mirror://${PNAME}/xdg-env.sh mirror://${PNAME}/agent-startup.sh mirror://${PNAME}/agent-shutdown.sh ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # # setup a proper environment # sed -i -e "s:@REPLACE_PREFIX@:${KDEDIR}:" \ # -e "s:@REPLACE_LIBS@:${KDEDIR}/$(mlibdir):" \ # startkde.cmake || die # disable libcaptury support atm sed -i 's:^PKGCONFIG..libcaptury:#DONOTFIND &:' \ kwin/effects/CMakeLists.txt || die } src_compile() { cd ${SRCDIR} kde4_configure \ $(cmake_with LibXKlavier) \ $(cmake_with GLIB2) \ $(cmake_with GObject) \ $(cmake_with RAW1394) \ $(cmake_with OpenGL) \ $(cmake_with OpenSSL) \ $(cmake_with USB) \ $(cmake_with PAM) \ $(cmake_without BlueZ) \ $(cmake_without Sensors) \ $(cmake_without NetworkManager) \ $(cmake_without Xmms) \ $(cmake_without Googlegadgets) \ $(cmake_without QEdje) \ $(cmake_without CkConnector) \ || die mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /etc/xdg/kde || die minstalldir ${KDEDIR}/env || die minstalldir /usr/share/xsessions || die minstalldir ${KDEDIR}/share/config/kdm || die minstalldir ${KDEDIR}/shutdown || die # generate a valid kdm configuration export GENKDMCONF_FLAGS="--no-old --no-backup" kde4_src_install || die # install gnome session minstallexec -s kde.desktop /usr/share/xsessions || die # install pam related stuff minstallpam ${KDE_PAMD} kde || die minstallpam ${KDE_NP_PAMD} kde-np || die # fix freedesktop menus structure # move them to /etc/xdg/kde to prevent broken gnome-menus # mv ${BINDIR}/etc/xdg/menus ${BINDIR}/etc/xdg/kde || die # install a environment script to tell kde where the xdgs are now minstallfile -s xdg-env.sh ${KDEDIR}/env || die # install global agent startup and shutdown scripts minstallfile -s agent-startup.sh ${KDEDIR}/env || die minstallfile -s agent-shutdown.sh ${KDEDIR}/shutdown || die }