--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/arts/arts-1.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-base flag-o-matic
+
+SRC_URI="mirror://kde/stable/3.0.3/src/${P}.tar.bz2"
+KEYWORDS="x86"
+HOMEPAGE="http://multimedia.kde.org"
+
+DESCRIPTION="KDE 3.x Sound Server"
+set-kdedir 3
+need-qt 3.0.3
+
+if [ "${COMPILER}" == "gcc3" ]; then
+ # GCC 3.1 kinda makes arts buggy and prone to crashes when compiled with
+ # these.. Even starting a compile shuts down the arts server
+ filter-flags "-fomit-frame-pointer -fstrength-reduce"
+fi
+
+SLOT="3.0"
+LICENSE="GPL-2 LGPL-2"
+
+# fix bug #8175
+MAKEOPTS="$MAKEOPTS -j1"
+
+use alsa && myconf="$myconf --enable-alsa" || myconf="$myconf --disable-alsa"
+
+src_unpack() {
+
+ base_src_unpack
+
+ kde_sandbox_patch ${S}/soundserver
+
+}
+
+src_install() {
+
+ kde_src_install
+ # fix root exploit - fixed upstream already
+ #chmod ug-s ${D}${KDEDIR}/bin/artswrapper
+ dodoc ${S}/doc/{NEWS,README,TODO}
+
+}
--- /dev/null
+MD5 a88c1d7f2eb8d702045400c37b6d582e arts-1.0.4.tar.bz2 1021219
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kde/kde-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+
+DESCRIPTION="KDE $PV - merge this to pull in all non-developer kde-base/* packages"
+HOMEPAGE="http://www.kde.org/"
+# removed: kdebindings, kdesdk, kdoc since these are developer-only packages
+RDEPEND=`echo ~kde-base/kde{libs,base,addons,admin,artwork,edu,games,graphics,multimedia,network,pim,toys,utils}-${PV}`
+
+SLOT="3.0"
+LICENSE="GPL-2"
+KEYWORDS="x86"
--- /dev/null
+MD5 6ced17e59e7fd36e606623e226c47718 kdeaddons-3.0.4.tar.bz2 938774
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeaddons/kdeaddons-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist flag-o-matic
+
+DESCRIPTION="KDE $PV: addons - applets, plugins..."
+KEYWORDS="x86"
+
+newdepend "~kde-base/kdebase-${PV}
+ ~kde-base/kdenetwork-${PV}
+ ~kde-base/kdemultimedia-${PV}
+ sdl? ( >=media-libs/libsdl-1.2 )
+ svga? ( media-libs/svgalib )"
+
+use sdl && myconf="$myconf --with-sdl --with-sdl-prefix=/usr" || myconf="$myconf --without-sdl --disable-sdltest"
+
+# fix bug #7625
+if [ "$COMPILER" == "gcc3" ]; then
+ if [ -n "`is-flag -march=pentium4`" -o -n "`is-flag -mcpu=pentium4`" ]; then
+ append-flags -mno-sse2
+ fi
+fi
--- /dev/null
+MD5 6e93fd31067deab4e08460e84174dd19 kdeadmin-3.0.4.tar.bz2 1267550
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeadmin/kdeadmin-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - administration tools"
+
+KEYWORDS="x86"
+
+newdepend ">=app-arch/rpm-4.0.4-r1
+ dev-libs/popt
+ pam? ( >=sys-libs/pam-0.72 )"
+
+use pam && myconf="$myconf --with-pam" || myconf="$myconf --without-pam --with-shadow"
+myconf="$myconf --with-rpm"
+
--- /dev/null
+MD5 f7a7e75b66620a33680107874fa5a941 kdeartwork-3.0.4.tar.bz2 10910760
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeartwork/kdeartwork-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - artwork"
+
+KEYWORDS="x86"
+
+newdepend "opengl? ( virtual/opengl ) ~kde-base/kdebase-${PV}"
+
+myconf="$myconf --with-dpms"
+use opengl && myconf="$myconf --with-gl" || myconf="$myconf --without-gl"
+
+src_unpack() {
+
+ base_src_unpack
+
+ cd ${S}
+ # added to fix GL problems within xscreensavers
+ patch -p1 < ${FILESDIR}/kdeartwork-screensaver.patch
+
+}
+
+# kepp this here just in case, seems fixed though
+src_install() {
+ dodir ${PREFIX}/share/apps/kthememgr/Themes
+ kde_src_install all
+}
# ChangeLog for kde-base/kdebase
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/ChangeLog,v 1.25 2002/10/01 14:17:06 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/ChangeLog,v 1.26 2002/10/05 19:29:29 danarmak Exp $
+
+ 05 Oct 2002; Dan Armak <danarmak@gentoo.org> ChangeLog :
+
+ Make the default kdmrc use /etc/X11/xdm/Xsetup_0. It was using the
+ genkdmconf-generated Xsetup, which didn't know about our /etc/X11/Sessions
+ files.
*kdebase-3.0.3-r1 (01 Oct 2002)
--- /dev/null
+MD5 d82ddae716912a3195139c8755e5c668 kdebase-3.0.4.tar.bz2 13111203
--- /dev/null
+--- startkde 2002-08-07 19:55:10.000000000 +0300
++++ startkde 2002-09-30 15:38:37.000000000 +0300
+@@ -1,8 +1,21 @@
+-#!/bin/sh
++#!/bin/sh --login
+ #
+-# DEFAULT KDE STARTUP SCRIPT ( KDE-3.0.4 )
++# GENTOO CUSTOMIZED KDE STARTUP SCRIPT ( KDE-3.0.4 )
+ #
+
++# Gentoo part:
++export PATH="_KDEDIR_/bin:${PATH}"
++export KDEDIR="_KDEDIR_"
++export KDEDIRS="_KDEDIR_:/usr" # do NOT include env.d's $KDEDIRS
++
++cd ~
++[ -d .kde ] && mv .kde .kde.backup
++[ -e .kde3 ] || mkdir .kde3
++ln -sf .kde3 .kde
++export KDEHOME="${HOME}/.kde3"
++
++# Gentoo part ends
++
+ # Boot sequence:
+ #
+ # kdeinit is used to fork off processes which improves memory usage
+@@ -25,12 +38,12 @@
+ # especially necessary on slow machines, where starting KDE takes one or two
+ # minutes until anything appears on the screen.
+ #
+-# Set the background to plain grey.
++# Set the background to cyan (Gentoo version change).
+ # The standard X background is nasty, causing moire effects and exploding
+ # people's heads. We use colours from the standard KDE palette for those with
+ # palettised displays.
+
+-test "$XDM_MANAGED" || bkg="-solid #C0C0C0"
++test "$XDM_MANAGED" || bkg="-solid #5477A0"
+ xsetroot -cursor_name left_ptr $bkg
+
+ # The user's personal KDE directory is usually ~/.kde, but this setting
+@@ -131,7 +144,12 @@
+ fi
+
+ # the splashscreen and progress indicator
+-ksplash
++# Gentoo addition: run $KSPLASH if set, otherwise just the default 'ksplash'
++if [ -n "$KSPLASH" ]; then
++ $KSPLASH
++else
++ ksplash
++fi
+
+ # We set LD_BIND_NOW to increase the efficiency of kdeinit.
+ # kdeinit unsets this variable before loading applications.
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/kdebase-3.0.3-r1.ebuild,v 1.4 2002/10/05 05:39:14 drobbins Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/kdebase-3.0.3-r1.ebuild,v 1.5 2002/10/05 19:29:29 danarmak Exp $
IUSE="ssl opengl motif ldap encode samba cups oggvorbis pam"
inherit kde-dist
cd ${D}/${KDEDIR}/share/config/kdm || die
mv kdmrc kdmrc.orig
- sed -e "s:SessionTypes=:SessionTypes=kde-$PV,:" kdmrc.orig > kdmrc
+ sed -e "s:SessionTypes=:SessionTypes=kde-${PV},:" \
+ -e "s:Session=${PREFIX}/share/config/kdm/Xsession:Session=/etc/X11/xdm/Xsession:" kdmrc.orig > kdmrc
rm kdmrc.orig
#backup splashscreen images, so they can be put back when unmerging
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/kdebase-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+IUSE="ldap pam motif encode oggvorbis cups ssl opengl samba qt31patch"
+
+DESCRIPTION="KDE $PV - base packages: the desktop, panel, window manager, konqueror..."
+
+KEYWORDS="x86"
+
+newdepend ">=media-sound/cdparanoia-3.9.8
+ ldap? ( >=net-nds/openldap-1.2 )
+ pam? ( >=sys-libs/pam-0.73 )
+ motif? ( >=x11-libs/openmotif-2.1.30 )
+ encode? ( >=media-sound/lame-3.89b )
+ oggvorbis? ( >=media-libs/libvorbis-1.0_beta1 )
+ cups? ( net-print/cups )
+ ssl? ( >=dev-libs/openssl-0.9.6b )
+ opengl? ( virtual/opengl )
+ samba? ( net-fs/samba )"
+# lm_sensors? ( ?/lm_sensors ) # ebuild doesn't exist yet
+
+DEPEND="$DEPEND sys-apps/gzip"
+
+myconf="$myconf --with-dpms --with-cdparanoia"
+
+use ldap && myconf="$myconf --with-ldap" || myconf="$myconf --without-ldap"
+use pam && myconf="$myconf --with-pam" || myconf="$myconf --with-shadow"
+use motif && myconf="$myconf --with-motif" || myconf="$myconf --without-motif"
+use encode && myconf="$myconf --with-lame" || myconf="$myconf --without-lame"
+use cups && myconf="$myconf --with-cups" || myconf="$myconf --disable-cups"
+use oggvorbis && myconf="$myconf --with-vorbis" || myconf="$myconf --without-vorbis"
+use opengl && myconf="$myconf --with-gl" || myconf="$myconf --without-gl"
+use ssl && myconf="$myconf --with-ssl" || myconf="$myconf --without-ssl"
+use pam && myconf="$myconf --with-pam=yes" || myconf="$myconf --with-pam=no --with-shadow"
+
+src_unpack() {
+
+ base_src_unpack
+
+ # Enable this local USE flag to allow nspluginviewer to compile with qt 3.1.x.
+ # It will patch nsplugins/viewer dir to cvs HEAD status.
+ # THIS MAY BE UNSTABLE AND YOU SHOULD NOT USE IT UNLESS YOU REALLY HAVE TO
+ # USE KDE 3.0.4 WITH QT >=3.1.X!
+ # Also note that kdebase 3.0.3 will compile just fine with all version of QT.
+ # However kdebase 3.0.4 introduced an nspluginviewer fix that necessitates this
+ # additional patch to work with qt 3.1.
+ if [ -n "`use qt31patch`" ]; then
+ cd $S
+ /bin/zcat "$FILESDIR/$P-nspluginviewer-qt31.diff.gz" | patch -p0 --
+ fi
+
+}
+
+src_compile() {
+
+ kde_src_compile myconf configure
+ kde_remove_flag kdm/kfrontend -fomit-frame-pointer
+ kde_src_compile make
+
+}
+
+src_install() {
+
+ kde_src_install
+
+ # cf bug #5953
+ insinto /etc/pam.d
+ newins ${FILESDIR}/kscreensaver.pam kscreensaver
+ newins ${FILESDIR}/kde.pam kde
+
+ # startkde script
+ cd ${D}/${KDEDIR}/bin
+ patch -p0 < ${FILESDIR}/startkde-${PVR}-gentoo.diff || die
+ mv startkde startkde.orig
+ sed -e "s:_KDEDIR_:${KDEDIR}:" startkde.orig > startkde
+ rm startkde.orig
+ chmod a+x startkde
+
+ # x11 session script
+ cd ${T}
+ echo "#!/bin/sh
+${KDEDIR}/bin/startkde" > kde-${PV}
+ chmod a+x kde-${PV}
+ # old scheme - compatibility
+ exeinto /usr/X11R6/bin/wm
+ doexe kde-${PV}
+ # new scheme - for now >=xfree-4.2-r3 only
+ exeinto /etc/X11/Sessions
+ doexe kde-${PV}
+
+ cd ${D}/${KDEDIR}/share/config/kdm || die
+ mv kdmrc kdmrc.orig
+ sed -e "s:SessionTypes=:SessionTypes=kde-${PV},:" \
+ -e "s:Session=${PREFIX}/share/config/kdm/Xsession:Session=/etc/X11/xdm/Xsession:" kdmrc.orig > kdmrc
+ rm kdmrc.orig
+
+ #backup splashscreen images, so they can be put back when unmerging
+ #mosfet or so.
+ if [ ! -d ${KDEDIR}/share/apps/ksplash.default ]
+ then
+ cd ${D}/${KDEDIR}/share/apps
+ cp -rf ksplash/ ksplash.default
+ fi
+
+ # Show gnome icons when choosing new icon for desktop shortcut
+ mkdir -p ${D}/usr/share/pixmaps
+ mv ${D}/${KDEDIR}/share/apps/kdesktop/pics/* ${D}/usr/share/pixmaps/
+ rm -rf ${D}/${KDEDIR}/share/apps/kdesktop/pics/
+ cd ${D}/${KDEDIR}/share/apps/kdesktop/
+ ln -sf /usr/share/pixmaps/ pics
+
+ rmdir ${D}/${KDEDIR}/share/templates/.source/emptydir
+
+}
+
+pkg_postinst() {
+ mkdir -p ${KDEDIR}/share/templates/.source/emptydir
+}
--- /dev/null
+MD5 a21da18ab557d6b26161e4ec883e96b1 kdebindings-3.0.4.tar.bz2 5048610
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+# TODO: add gnustep bindings
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - kde library bindings for languages other than c++"
+
+KEYWORDS="x86"
+
+newdepend ">=kde-base/kdebase-${PV}
+ =x11-libs/gtk+-1.2*
+ sys-devel/perl
+ python? ( dev-lang/python )
+ java? ( virtual/jdk )
+ =x11-libs/gtk+-1.2*
+ =dev-libs/glib-1.2*
+ >=kde-base/kdenetwork-${PV}
+ mozilla? ( net-www/mozilla )"
+
+use python || myconf="$myconf --without-python"
+use java && myconf="$myconf --with-java=$(java-config --jdk-home)" || myconf="$myconf --without-java"
+#myconf="$myconf --enable-objc"
+
+export LIBPYTHON="`python-config`"
+
+src_unpack()
+{
+ base_src_unpack
+
+ if [ -z "`use mozilla`" ]; then
+ # disable mozilla bindings/xpart
+ cd ${S}
+ cp configure configure.orig
+ sed -e 's:mozilla_incldirs=:# mozilla_incldirs=:' configure.orig > configure
+ chmod +x configure
+ fi
+}
--- /dev/null
+MD5 141cea8c0186d6c75fdb4f7a069a48d9 kdeedu-3.0.4.tar.bz2 9104479
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeedu/kdeedu-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - educational apps"
+
+KEYWORDS="x86"
+
+src_unpack() {
+
+ base_src_unpack
+
+ kde_sandbox_patch ${S}/klettres/klettres
+
+}
+
+src_compile() {
+
+ kde_src_compile myconf configure
+
+ # build fails with -fomit-frame-pointer optimization in kgeo
+ kde_remove_flag kgeo -fomit-frame-pointer
+ kde_remove_flag kgeo/kgeo -fomit-frame-pointer
+
+ kde_src_compile make
+
+}
--- /dev/null
+MD5 5f7ea33c54e68fd673c5c48b49e0c1e3 kdegames-3.0.4.tar.bz2 7239970
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdegames/kdegames-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - games"
+
+KEYWORDS="x86"
--- /dev/null
+MD5 6065219c825102c843ba582c4a520cac kdegraphics-3.0.4.tar.bz2 2665229
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdegraphics/kdegraphics-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - graphics-related apps"
+
+KEYWORDS="x86"
+
+newdepend "gphoto2? ( >=media-gfx/gphoto2-2.0_beta1 >=media-libs/libgpio-20010607 )
+ sys-devel/perl
+ scanner? ( media-gfx/sane-backends )
+ tetex? ( >=app-text/tetex-1.0.7 )
+ media-libs/imlib
+ app-text/ghostscript"
+
+use gphoto2 && myconf="$myconf --with-kamera --with-gphoto2-includes=/usr/include/gphoto2 \
+ --with-gphoto2-libraries=/usr/lib/gphoto2 \
+ --with-gpio --with-gpio-includes=/usr/include \
+ --with-gpio-libraries=/usr/lib" || myconf="$myconf --without-kamera"
+
+use tetex && myconf="$myconf --with-system-kpathsea --with-tex-datadir=/usr/share"
+
+use scanner || KDE_REMOVE_DIR="kooka libkscan"
+
+myconf="$myconf --with-imlib --with-imlib-config=/usr/bin "
+
+src_unpack() {
+
+ base_src_unpack
+
+ if [ -z "`use scanner`" ]; then
+ cd $S
+ mv Makefile.am Makefile.am.orig
+ sed -e 's:$(KSCANDIR)::' Makefile.am.orig > Makefile.am
+ fi
+
+}
\ No newline at end of file
--- /dev/null
+MD5 0b81f457a78c07978d2c973e0d7d7d49 kdelibs-3.0.4.tar.bz2 7643484
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde kde.org
+#don't inherit kde-base or kde-dist! it calls need-kde which adds kdelibs to depend!
+
+# check need for glib >=1.3.3 (we have 1.2.10 only; configure has no glib flag but searches for it)
+
+# Only here, override kde.org's SRC_URI because of the unique 3.0.3a version number
+SRC_URI="mirror://kde/stable/3.0.3/src/$P.tar.bz2"
+
+DESCRIPTION="KDE $PV - base libraries needed by all kde programs"
+KEYWORDS="x86"
+HOMEPAGE="http//www.kde.org/"
+
+SLOT="3.0"
+LICENSE="GPL-2 LGPL-2"
+
+# kde.eclass has kdelibs in DEPEND, and we can't have that in here. so we recreate the entire
+# DEPEND from scratch.
+DEPEND=""
+RDEPEND=""
+newdepend "sys-devel/perl
+ >=media-libs/audiofile-0.1.9
+ >=sys-apps/bzip2-1.0.1
+ >=dev-libs/libxslt-1.0.7
+ >=dev-libs/libpcre-3.5
+ >=dev-libs/libxml2-2.4.10
+ ssl? ( >=dev-libs/openssl-0.9.6 )
+ alsa? ( >=media-libs/alsa-lib-0.5.9 )
+ cups? ( >=net-print/cups-1.1.14 )
+ >=media-libs/tiff-3.5.5
+ app-admin/fam-oss
+ ~kde-base/arts-1.0.4
+ app-text/ghostscript"
+
+newdepend "/c"
+newdepend "/autotools"
+
+RDEPEND="$RDEPEND
+ app-text/sgml-common
+ cups? ( net-print/cups )
+ dev-lang/python
+ >=sys-apps/portage-2.0.36" # for bug #7359
+
+myconf="$myconf --enable-final --with-distribution=Gentoo"
+use ipv6 || myconf="$myconf --with-ipv6-lookup=no"
+use ssl && myconf="$myconf --with-ssl-dir=/usr" || myconf="$myconf --without-ssl"
+use alsa && myconf="$myconf --with-alsa" || myconf="$myconf --without-alsa"
+use cups && myconf="$myconf --enable-cups" || myconf="$myconf --disable-cups"
+
+[ "$ARCH" != "ppc" ] && \
+ [ "$ARCH" != "sparc" ] && [ "$ARCH" != "sparc64" ] && \
+ [ "$ARCH" != "alpha" ] && \
+ myconf="$myconf --enable-fast-malloc=full"
+
+qtver-from-kdever ${PV}
+need-qt $selected_version
+
+set-kdedir $PV
+
+src_unpack() {
+
+ base_src_unpack
+ kde_sandbox_patch ${S}/kio/misc/kpac
+
+}
+
+
+src_install() {
+
+ kde_src_install
+
+ dohtml *.html
+
+ dodir /etc/env.d
+
+ echo "PATH=${PREFIX}/bin
+ROOTPATH=${PREFIX}/bin
+LDPATH=${PREFIX}/lib
+KDEDIRS=$PREFIX
+CONFIG_PROTECT=${PREFIX}/share/config" > ${D}/etc/env.d/65kdelibs-${PV} # number goes down with version upgrade
+
+ echo "KDEDIR=$PREFIX" > ${D}/etc/env.d/50kdedir-${PV} # number goes up with version upgrade
+
+}
+
+
--- /dev/null
+MD5 ebb28282a85bd3e06a4d9cd9c7df6537 kdemultimedia-3.0.4.tar.bz2 5791734
--- /dev/null
+diff -ru kdemultimedia-2.2.1.orig/kmidi/TIMIDITY/motif_p.c kdemultimedia-2.2.1/kmidi/TIMIDITY/motif_p.c
+--- kmidi/TIMIDITY/motif_p.c Mon Feb 28 19:07:37 2000
++++ kmidi/TIMIDITY/motif_p.c Fri Oct 19 04:00:10 2001
+@@ -22,6 +22,7 @@
+ pipe communication between motif interface and sound generator
+
+ */
++#include <sys/errno.h>
+ #ifdef IA_MOTIF
+
+ #include <stdio.h>
+--- kmidi/TIMIDITY/tk_c.c 2002-04-04 21:15:35.000000000 -0600
++++ kmidi/TIMIDITY/tk_c.c 2002-04-04 21:17:06.000000000 -0600
+@@ -12,6 +12,7 @@
+ *================================================================*/
+ #ifdef TCLTK
+
++#include <sys/errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia/kdemultimedia-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist flag-o-matic
+
+DESCRIPTION="KDE $PV - multimedia apps"
+KEYWORDS="x86"
+
+newdepend ">=sys-libs/ncurses-5.2
+ >=media-sound/cdparanoia-3.9.8
+ >=media-libs/libvorbis-1.0_beta4
+ >=media-video/xanim-2.80.1
+ nas? ( >=media-libs/nas-1.4.1 )
+ esd? ( >=media-sound/esound-0.2.22 )
+ motif? ( >=x11-libs/openmotif-2.1.30 )
+ gtk? ( =x11-libs/gtk+-1.2* )
+ slang? ( >=sys-libs/slang-1.4.4 )
+ >=media-sound/mpg123-0.59r
+ tcltk? ( >=dev-lang/tk-8.0.5-r2 )"
+# alsa? ( >=media-libs/alsa-lib-0.5.9 )"
+
+# koncd isn't compiled by default (kde.org's default)
+#RDEPEND="$RDEPEND
+# cdr? ( app-cdr/cdrtools
+# >=app-cdr/cdrdao-1.1.5 )"
+
+replace-flags "-O3" "-O2"
+
+myaudio="--enable-audio=oss"
+myinterface="--enable-interface=xaw,ncurses"
+myconf="$myconf --enable-xaw --enable-ncurses"
+
+#use alsa && myconf="$myconf --with-alsa --with-arts-alsa" && myaudio="$myaudio,alsa" ||
+myconf="$myconf --without-alsa --disable-alsa"
+use nas && myaudio="$myaudio,nas --with-nas-library=/usr/X11R6/lib/libaudio.so --with-nas-includes=/usr/X11R6/include" || myconf="$myconf --disable-nas"
+use esd && myaudio="$myaudio,esd" || myconf="$myconf --disable-esd"
+use motif && myinterface="$myinterface,motif" && myconf="$myconf --enable-motif"
+use gtk && myinterface="$myinterface,gtk" && myconf="$myconf --enable-gtk"
+use slang && myinterface="$myinterface,slang" && myconf="$myconf --enable-slang"
+use tcltk && myinterface="$myinterface,tcltk" && myconf="$myconf --enable-tcltk"
+
+myconf="$myconf $myaudio $myinterface"
+
+#use cdr || KDE_REMOVE_DIR="koncd"
+
+src_unpack() {
+
+ base_src_unpack
+ cd ${S}
+ patch -p0 < ${FILESDIR}/${P}-gentoo-timidity.diff || die
+# use alsa && patch -p0 < ${FILESDIR}/${P}-gentoo-alsa.diff
+
+ kde_sandbox_patch ${S}/kmidi/config
+
+ cd ${S}/kmidi/config
+ for x in Makefile.am Makefile.in; do
+ mv $x $x.orig
+ sed -e 's:TIMID_DIR = $(DESTDIR)/$(kde_datadir):TIMID_DIR = $(kde_datadir):g' $x.orig > $x
+ done
+
+}
+
+pkg_postinst() {
+
+ if [ -n "`use alsa`" ]; then
+ einfo "WARNING: alsa support has been removed becuase of a bug in kdemm sources.
+For further information see bug #2324 on bugs.gentoo.org and bug #39574 on bugs.kde.org.
+Meanwhile, you can use the alsa oss emulation."
+ fi
+ return 0
+
+}
--- /dev/null
+MD5 498cddb1714d03066cc646f7d851330a kdenetwork-3.0.4.tar.bz2 3865375
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdenetwork/kdenetwork-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - network apps: kmail..."
+KEYWORDS="x86"
+
+src_unpack() {
+
+ cd ${WORKDIR}
+ unpack ${P}.tar.bz2
+
+ kde_sandbox_patch ${S}/kppp
+
+}
+
+src_install() {
+
+ kde_src_install
+
+ chmod +s ${D}/${KDEDIR}/bin/reslisa
+
+ # empty config file needed for lisa to work with default settinsg
+ touch ${D}/etc/lisarc
+
+ # lisa, reslisa initscripts
+ dodir /etc/init.d
+ sed -e "s:_KDEDIR_:${KDEDIR}:g" ${FILESDIR}/lisa > ${D}/etc/init.d/lisa
+ sed -e "s:_KDEDIR_:${KDEDIR}:g" ${FILESDIR}/reslisa > ${D}/etc/init.d/reslisa
+
+ insinto /etc/conf.d
+ newins ${FILESDIR}/lisa.conf lisa
+ newins ${FILESDIR}/reslisa.conf reslisa
+
+}
+
--- /dev/null
+MD5 0455afeec058386049a46e7ea5ec9363 kdepim-3.0.4.tar.bz2 3182779
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim/kdepim-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - PIM (Personal Information Management) apps: korganizer..."
+KEYWORDS="x86"
+DEPEND="$DEPEND sys-devel/perl"
+
+newdepend "pda? ( >=dev-libs/pilot-link-0.11.1-r1 )"
+
+use pda && myconf="$myconf --with-extra-includes=/usr/include/libpisock"
+
+src_install() {
+ kde_src_install
+ docinto html
+ dodoc *.html
+}
--- /dev/null
+MD5 13c54f973533f4816069e82f7f375c34 kdesdk-3.0.4.tar.bz2 1842876
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdesdk/kdesdk-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - SDK: kbabel, ..."
+KEYWORDS="x86"
--- /dev/null
+MD5 d39101459a5c5a3e5b241e57882e0c20 kdetoys-3.0.4.tar.bz2 1426222
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdetoys/kdetoys-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - toys"
+KEYWORDS="x86"
+
--- /dev/null
+MD5 e34ccb00b25f04f0a27474fa17d68e77 kdeutils-3.0.4.tar.bz2 1514778
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeutils/kdeutils-3.0.4.ebuild,v 1.1 2002/10/05 19:29:29 danarmak Exp $
+inherit kde-dist
+
+DESCRIPTION="KDE $PV - utilities"
+KEYWORDS="x86"