summaryrefslogtreecommitdiff
path: root/media-sound/amarok
diff options
context:
space:
mode:
author(no author) <(no author)@4d9a9b59-111c-4e0b-8f7a-7640551abb98>2009-03-16 07:55:01 +0000
committer(no author) <(no author)@4d9a9b59-111c-4e0b-8f7a-7640551abb98>2009-03-16 07:55:01 +0000
commitf1e95daae05c57d935b00e611c624c5e75cd21ec (patch)
tree4065ab51d9e64882d9001a59ede7d9a4e372a4a6 /media-sound/amarok
uploading my overlay ), initial commit
git-svn-id: http://172.18.13.13/svn/sss_overlay@1 4d9a9b59-111c-4e0b-8f7a-7640551abb98
Diffstat (limited to 'media-sound/amarok')
-rw-r--r--media-sound/amarok/amarok-2.0.2.ebuild104
-rw-r--r--media-sound/amarok/files/2.0.2-qt4.5.patch30
2 files changed, 134 insertions, 0 deletions
diff --git a/media-sound/amarok/amarok-2.0.2.ebuild b/media-sound/amarok/amarok-2.0.2.ebuild
new file mode 100644
index 0000000..586bfe4
--- /dev/null
+++ b/media-sound/amarok/amarok-2.0.2.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+KDE_LINGUAS="ar be bg ca cs csb da de el eo es et eu fi fr ga gl he is it ja km
+ ko ku lt lv nb nds ne nl nn oc pa pl pt pt_BR ro ru se sl si sk sv th tr uk zh_CN zh_TW"
+
+OPENGL_REQUIRED="optional"
+inherit kde4-base
+
+DESCRIPTION="Advanced audio player based on KDE framework."
+HOMEPAGE="http://amarok.kde.org/"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+SLOT="2"
+IUSE="cdaudio daap debug ifp ipod mp3tunes mp4 mtp njb +semantic-desktop"
+
+DEPEND="
+ >=app-misc/strigi-0.5.7
+ || (
+ >=dev-db/mysql-5.0[embedded]
+ >=dev-db/mysql-community-5.0[embedded]
+ )
+ dev-db/sqlite:3
+ >=media-libs/taglib-1.5
+ || (
+ media-sound/phonon
+ x11-libs/qt-phonon:4
+ )
+ >=kde-base/kdelibs-${KDE_MINIMAL}[kdeprefix=,opengl?,semantic-desktop?]
+ >=kde-base/plasma-workspace-${KDE_MINIMAL}[kdeprefix=]
+ x11-libs/qt-webkit:4
+ cdaudio? (
+ >=kde-base/libkcompactdisc-${KDE_MINIMAL}[kdeprefix=]
+ >=kde-base/libkcddb-${KDE_MINIMAL}[kdeprefix=]
+ )
+ ifp? ( media-libs/libifp )
+ ipod? ( >=media-libs/libgpod-0.4.2 )
+ mp3tunes? (
+ dev-libs/libxml2
+ dev-libs/openssl
+ net-libs/loudmouth
+ net-misc/curl
+ )
+ mp4? ( media-libs/libmp4v2 )
+ mtp? ( >=media-libs/libmtp-0.3.0 )
+ njb? ( >=media-libs/libnjb-2.2.4 )
+"
+RDEPEND="${DEPEND}
+ app-arch/unzip
+ daap? ( www-servers/mongrel )
+ semantic-desktop? ( >=kde-base/nepomuk-${KDE_MINIMAL}[kdeprefix=] )
+"
+
+pkg_setup() {
+ if use amd64 ; then
+ echo
+ ewarn "Compilation will fail if dev-db/mysql[-community] is built without -fPIC in your CFLAGS!"
+ ewarn "Related bug: http://bugs.gentoo.org/show_bug.cgi?id=238487"
+ ewarn
+ ewarn "To fix this, and to avoid using -fPIC globally in your make.conf (which is not recommended),"
+ ewarn "put the following into /etc/portage/env/dev-db/mysql (or mysql-community, depending on which you use;"
+ ewarn "create dirs and the file if they don't exist):"
+ ewarn
+ ewarn "CFLAGS=\"${CFLAGS} -DPIC -fPIC\""
+ ewarn "CXXFLAGS=\"${CXXFLAGS} -DPIC -fPIC\""
+ echo
+ fi
+ kde4-base_pkg_setup
+
+}
+
+src_configure() {
+
+
+ if ! use mp3tunes; then
+ sed -e'/mp3tunes/ s:^:#DONOTWANT :' \
+ -i "${S}"/src/services/CMakeLists.txt \
+ || die "Deactivating mp3tunes failed."
+ fi
+
+ # Remove superfluous QT_WEBKIT
+ sed -e 's/ -DQT_WEBKIT//g' \
+ -i "${S}"/src/scriptengine/generator/generator/CMakeLists.txt \
+ || die "Removing unnecessary -DQT_WEBKIT failed."
+
+ epatch "${FILESDIR}"/2.0.2-qt4.5.patch
+ mycmakeargs="${mycmakeargs}
+ -DUSE_SYSTEM_SQLITE=ON
+ $(cmake-utils_use_with cdaudio KdeMultimedia)
+ $(cmake-utils_use_with ipod Ipod)
+ $(cmake-utils_use_with ifp Ifp)
+ $(cmake-utils_use_with mp4 Mp4v2)
+ $(cmake-utils_use_with mtp Mtp)
+ $(cmake-utils_use_with njb Njb)
+ $(cmake-utils_use_with semantic-desktop Nepomuk)
+ $(cmake-utils_use_with semantic-desktop Soprano)"
+
+ kde4-base_src_configure
+}
diff --git a/media-sound/amarok/files/2.0.2-qt4.5.patch b/media-sound/amarok/files/2.0.2-qt4.5.patch
new file mode 100644
index 0000000..5b7526e
--- /dev/null
+++ b/media-sound/amarok/files/2.0.2-qt4.5.patch
@@ -0,0 +1,30 @@
+diff -ru amarok-2.0.2.org/src/scriptengine/generator/generator/shellimplgenerator.cpp amarok-2.0.2.patched/src/scriptengine/generator/generator/shellimplgenerator.cpp
+--- amarok-2.0.2.org/src/scriptengine/generator/generator/shellimplgenerator.cpp 2009-01-06 13:50:14.000000000 +0100
++++ amarok-2.0.2.patched/src/scriptengine/generator/generator/shellimplgenerator.cpp 2009-02-20 11:26:14.000000000 +0100
+@@ -105,6 +105,7 @@
+ declareFunctionMetaTypes(s, functions, registeredTypeNames);
+ s << endl;
+ }
++ writeInjectedCode(s, meta_class);
+
+ // write constructors
+ foreach (const AbstractMetaFunction *ctor, ctors) {
+diff -ru amarok-2.0.2.org/src/scriptengine/generator/generator/typesystem_gui.xml amarok-2.0.2.patched/src/scriptengine/generator/generator/typesystem_gui.xml
+--- amarok-2.0.2.org/src/scriptengine/generator/generator/typesystem_gui.xml 2009-01-06 13:50:14.000000000 +0100
++++ amarok-2.0.2.patched/src/scriptengine/generator/generator/typesystem_gui.xml 2009-02-20 11:26:08.000000000 +0100
+@@ -5389,8 +5389,13 @@
+ <object-type name="QInputContextPlugin"/>
+ <object-type name="QPictureFormatPlugin"/>
+ <object-type name="QStylePlugin"/>
+- <object-type name="QTextCodecPlugin"/>
+-
++
++ <object-type name="QTextCodecPlugin">
++ <inject-code class="shell" position="beginning">
++Q_DECLARE_METATYPE(QList&lt;int>)
++ </inject-code>
++ </object-type>
++
+ <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping function 'QPixmap::QPixmap', unmatched parameter type 'QPixmapData*'"/>
+ <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping * unmatched *type '*Private&amp;'"/>
+ <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping * unmatched *type '*Private\*'"/>