# $Id$ PNAME="kdebase" PVER="3.5.10" PBUILD="r4" PCATEGORIE="kde-base" STATE="unstable" DESCRIPTION="The KDE basic system." HOMEPAGE="http://www.kde.org/" DEPEND="== kde-base/kde-env-${PVER} == kde-base/kdelibs-${PVER} >= media-sound/cdparanoia-3.10.2 >= media-sound/lame-3.98 >= net-print/cups-1.4 >= dev-libs/openssl-0.9.8 >= net-fs/samba-3.4 >= virtual/java >= media-libs/freetype-2.3 >= sys-apps/which-2.16 >= x11-libs/lesstif-0.95 >= sys-apps/eject-2.1.5 >= sys-libs/pam-1.1 >= sys-apps/dbus-1.3 >= dev-libs/dbus-qt3-0.70 >= sys-apps/hal-0.5.13 >= sys-apps/pmount-0.9.20 >= dev-libs/cyrus-sasl-2 >= net-dns/avahi-qt3-0.6.25 >= dev-libs/libusb-0.1.12 >= media-libs/nas-1.9.2 >= x11-apps/mkfontdir-1 >= x11-apps/setxkbmap-1 >= x11-apps/xinit-1 >= x11-misc/xkeyboard-config-1 >= x11-apps/xmessage-1 >= x11-apps/xprop-1 >= x11-apps/xrandr-1.3 >= x11-apps/xsetroot-1 >= x11-apps/xset-1" SDEPEND=">= virtual/java-jdk >= sys-dev/automake-4 >= sys-dev/autoconf-5" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude kde3 mtools # cvs revisions KDE_PAMD=kde.pamd-1.3 KDE_NP_PAMD=kde-np.pamd-1.4 SRC_URI=( kde://${PVER}/src/${SRCFILE} mirror://${PNAME}/${SRCFILE} 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 mirror://${PNAME}/${PNAME}-3.5.5-dbus090-2.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix api changes with dbus >= 0.90 mpatch ${PNAME}-3.5.5-dbus090-2.patch || die } src_compile() { cd ${SRCDIR} # ${JAVA_HOME} is a provided sys-var by the jdk packages kde3_configure \ --with-usbids=/usr/share/misc/usb.ids \ --with-dpms \ --with-cdparanoia \ --with-lame \ --with-cups \ --with-ssl \ --with-pam=yes \ --with-java=${JAVA_HOME} \ --with-gl \ --with-motif \ --with-hal \ --enable-dnssd \ --with-composite \ --with-xinerama \ --with-xscreensaver \ --with-libusb \ || die mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /etc/xdg/kde || die minstalldir /usr/env || die minstalldir /usr/share/xsessions || die minstalldir /usr/shutdown || die mmake DESTDIR=${BINDIR} install || die # fix kdm config stuff cd ${SRCDIR}/kdm make DESTDIR=${BINDIR} GENKDMCONF_FLAGS="--no-old --no-backup --no-in-notice" 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 /usr/env || die # install global agent startup and shutdown scripts minstallfile -s agent-startup.sh /usr/env || die minstallfile -s agent-shutdown.sh /usr/shutdown || die }