# $Header: /magellan-cvs/smage/kdebase/kdebase-3.5.9-r1.smage2,v 1.2 2008/04/05 10:01:49 niro Exp $ PNAME="kdebase" PVER="3.5.9" PBUILD="r1" 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.9.8 >= media-sound/lame-3.95.1 >= net-print/cups-1.3 >= dev-libs/openssl-0.9.8 >= net-fs/samba-3 >= virtual/java >= media-libs/freetype-2 >= sys-apps/which-2.16 >= x11-libs/lesstif-0.95 >= sys-apps/eject-2.1.5 >= sys-libs/pam-0.99 >= sys-apps/dbus-1.1 >= dev-libs/dbus-qt3-0.70 >= sys-apps/hal-0.5.10 >= sys-apps/pmount-0.9.13 >= dev-libs/cyrus-sasl-2 >= net-misc/mdnsresponder-108 >= dev-libs/libusb-0.1.12 >= media-libs/nas-1.9" SDEPEND=">= virtual/java-jdk >= sys-dev/automake-3 >= sys-dev/autoconf-4" 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.3 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 }