Hi

I attempted to fix the mixxx-9999 ebuild to find the Qt4 directories that 
Gentoo uses. I could not get ffmpeg support to compile so I removed some code 
for it. Please find attached ebuild and patches.

Thanks
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=1

inherit exteutils qt4 subversion toolchain-funcs

DESCRIPTION="Digital DJ tool using QT 4.x"
HOMEPAGE="http://mixxx.sourceforge.net";

ESVN_REPO_URI="https://mixxx.svn.sourceforge.net/svnroot/mixxx/trunk/mixxx";

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""

DEPEND="|| ( ( x11-libs/qt-core
                x11-libs/qt-gui
                x11-libs/qt-opengl 
                x11-libs/qt-xmlpatterns )
                >=x11-libs/qt-4.3:4 )
        media-sound/madplay
        media-libs/libogg
        media-libs/libvorbis
        media-libs/audiofile
        media-libs/libsndfile
        media-libs/libsamplerate
        media-libs/libid3tag
        =media-libs/portaudio-19*
        virtual/glu
        virtual/opengl
        alsa? ( media-libs/alsa-lib )
        jack? ( media-sound/jack-audio-connection-kit )
        djconsole? ( media-libs/libdjconsole )
        ladspa? ( media-libs/ladspa-sdk )"

RDEPEND="${DEPEND}
         dev-lang/perl"

DEPEND="${DEPEND}
        sys-apps/sed
        dev-util/scons
        dev-util/pkgconfig"

IUSE="alsa jack ladspa djconsole hifieq exbpm exrecord"

pkg_setup() {
        if use jack; then
                if ! built_with_use media-libs/portaudio jack; then
                        eerror "To have jack support, you need to compile 
portaudio"
                        eerror "with USE=\"jack\"!"
                        die
                fi
        fi
        # we need qt4 with opengl and qt3support
        if ! built_with_use x11-libs/qt qt3support; then
                eerror "You need to compile qt4 with USE="\"qt3support\"!"
                die
        elif ! built_with_use x11-libs/qt opengl; then
                eerror "You need to compile qt4 with USE="\"opengl\"!"
                die
        fi
}

src_unpack() {
        subversion_src_unpack
        cd "${S}"
        # find the proper qt4 directories
        epatch "${FILESDIR}/${PN}-qt4.py.patch"
        epatch "${FILESDIR}/${PN}-sconscript-qt4.patch"
        # use our own CXXFLAGS/CFLAGS
        esed_check -i \
                -e "0,/\(^env.Append.*\)/s//\1\nenv.Append(CCFLAGS = 
Split(\"\"\" \
                ${CFLAGS} \"\"\"))/" \
                -e "0,/\(^env.Append.*\)/s//\1\nenv.Append(CXXFLAGS = ' 
${CXXFLAGS} ')/" \
                src/SConscript
}

src_compile() {
        myconf=""
        ! use ladspa; myconf="ladspa=$?"
        ! use djconsole; myconf="${myconf} djconsole=$?"
        ! use hifieq; myconf="${myconf} hifieq=$?"
        ! use exbpm; myconf="${myconf} experimentalbpm=$?"
        ! use exrecord; myconf="${myconf} experimentalrecord=$?"
        # ffmpeg broken?
        myconf="${myconf} ffmpeg=0"
        myconf="${myconf} prefix=/usr"

        mkdir -p "${D}/usr"
        einfo "selected options: ${myconf}"
        tc-export CC CXX
        # find the qt4 files
        QTDIR="/usr/share/qt4" PKG_CONFIG_PATH="/usr/lib/pkgconfig" \ 
                scons ${myconf} || die "scons failed"
}

src_install() {
        mkdir -p "${D}/usr"
        scons ${myconf} install_root="${D}/usr" install || die
        dodoc README Mixxx-Manual.pdf
}
--- mixxx/build/qt4.py.old	2009-04-03 17:31:35.000000000 +0100
+++ mixxx/build/qt4.py	2009-04-03 17:33:12.000000000 +0100
@@ -385,6 +385,7 @@
 		'QtUiTools',
 		'QtDesigner',
 		'QtDBUS',
+		'QtScript',
 		]
 	pclessModules = [
 		'QtUiTools',
--- mixxx/src/SConscript.old	2009-04-03 17:32:07.000000000 +0100
+++ mixxx/src/SConscript	2009-04-03 17:32:51.000000000 +0100
@@ -553,7 +553,7 @@
 		"""
 		#Try using David's qt4.py's Qt4-module finding thingy instead of pkg-config.
 		#(This hopefully respects our qtdir=blah flag while linking now.)
-		"""
+		
 		env.EnableQt4Modules([
 		'QtCore',
 		'QtGui',
@@ -561,13 +561,14 @@
 		'Qt3Support',
 		'QtXml',
 		'QtSvg',
+		'QtScript',
 		#'QtUiTools',
 		#'QtDesigner',
 		#'QtWebKit',
 		],
 		debug=False,
 		)
-		"""
+		
 
 	#Check for libasound (libasound2?) (needed for ALSA seq MIDI support)
 	if not conf.CheckLib('asound') and not conf.CheckForPKG('alsa', '1.0.10'):

Reply via email to