add kde tools

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@903 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2009-03-29 07:05:36 +00:00
parent a62799ffc0
commit f8647230c5
80 changed files with 4794 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
# ChangeLog for media-sound/amarok
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*amarok-2.0.2 (05 Mar 2009)
05 Mar 2009; Alexey Shvetsov <alexxy@gentoo.org> +amarok-2.0.2.ebuild:
Bump
05 Feb 2009; Maciej Mrozowski (reavertm) <reavertm@poczta.fm>
metadata.xml, amarok-9999.ebuild:
Added missing [kdeprefix=] USE deps in amarok, reformatting
12 Jan 2009; Manuel Nickschas <sputnick@quassel-irc.org>
amarok-2.0.1.1.ebuild:
Remove unused USE
*amarok-2.0.1.1 (12 Jan 2009)
12 Jan 2009; Manuel Nickschas <sputnick@quassel-irc.org>
+amarok-2.0.1.1.ebuild:
Bump
*amarok-2.0-r1 (27 Dec 2008)
27 Dec 2008; Alexey Shvetsov <alexxy@gentoo.ru> -amarok-1.98.ebuild,
+amarok-2.0-r1.ebuild, -amarok-2.0.ebuild:
Remove unneeded src_install
28 Nov 2008; Manuel Nickschas <sputnick@quassel-irc.org>
amarok-9999.ebuild:
Prefer mysql over mysql-community. Amarok works fine with either one, but
portage seems to suggest only the first of them, and that confuses users.
27 Nov 2008; Maciej Mrozowski (reavertm) <reavertm@poczta.fm>
amarok-9999.ebuild:
Files no longer installed in trunk, fixed KEYWORDS for tagged amarok
*amarok-1.98 (21 Nov 2008)
21 Nov 2008; Alexey Shvetsov <alexxy@gentoo.ru> -amarok-1.94.ebuild,
+amarok-1.98.ebuild:
Version bump
16 Nov 2008; Theo Chatzimichos <tampakrap@gmail.com> ChangeLog:
fix collisions for snapshots, bug 246639
05 Nov 2008; Theo Chatzimichos <tampakrap@gmail.com> ChangeLog:
fix collisions with kdelibs and plasma-workspace
05 Nov 2008; Manuel 'Sput' Nickschas <sputnick@quassel-irc.org>
amarok-9999.ebuild:
Update amd64 -fPIC warning
04 Nov 2008; Manuel 'Sput' Nickschas <sputnick@quassel-irc.org>
amarok-9999.ebuild:
libplasma move to kdelibs
*amarok-1.94 (01 Nov 2008)
01 Nov 2008; <alexxy@gentoo.org> -amarok-1.92.2.ebuild,
+amarok-1.94.ebuild:
Version bump
30 Oct 2008; Theo Chatzimichos <tampakrap@gmail.com> ChangeLog:
small fixes
29 Oct 2008; Theo Chatzimichos <tampakrap@gmail.com> ChangeLog:
small fix
29 Oct 2008; <tampakrap@gentoo.org> ChangeLog:
importing live ebuild
10 Oct 2008; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
-amarok-1.90.ebuild:
Removed amarok-1.90 as it was put in the tree.
06 Oct 2008; <alexxy@gentoo.org> amarok-1.90.ebuild, amarok-1.92.2.ebuild:
update NEED_KDE to use slots instead of versions
*amarok-1.92.2 (03 Oct 2008)
03 Oct 2008; Tomáš Chvátal <tomas.chvatal@gmail.com>
+amarok-1.92.2.ebuild, -amarok-1.92.ebuild:
Again do version bump.
*amarok-1.92 (03 Oct 2008)
03 Oct 2008; Tomáš Chvátal <tomas.chvatal@gmail.com>
+amarok-1.92.ebuild:
Bump new version.
02 Oct 2008; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
metadata.xml:
Added missing use flags descriptions to metadata.xml.
27 Sep 2008; Tomas Chvatal (scarabeus) <tomas.chvatal@gmail.com>
amarok-1.90.ebuild:
Move ebuild towards EAPI2 compilance
27 Aug 2008; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
amarok-1.90.ebuild:
Fixed alphabetical order in KEYWORDS and deps.
25 Aug 2008; Manuel Nickschas (Sput) <sputnick@quassel-irc.org>
amarok-1.90.ebuild:
Keyword ~amd64
22 Aug 2008; Manuel Nickschas (Sput) <sputnick@quassel-irc.org>
amarok-1.90.ebuild:
Add ~x86 keyword
*amarok-1.90 (22 Aug 2008)
22 Aug 2008; Manuel Nickschas <sputnick@quassel-irc.org> +metadata.xml,
+amarok-1.90.ebuild:
Initial import.

View File

@@ -0,0 +1,6 @@
AUX 2.0.1.1-ipod.patch 6713 RMD160 40a0da7ceca93e081edfa660383f8281dc4c2d68 SHA1 8a1aad8e9a8ad34fac3de7ca8ba5966c4dbfb50f SHA256 612cdb6886d0bac22773d7a621d3062d0eb96801cff8053d4011e44cb738fb61
AUX amarok-2.0.2-librt-1.patch 721 RMD160 a36d3cb937674672d41c790559084e4cd8c7c730 SHA1 0ca0e33ec624937d1d55a35911d8a2e401cc4c09 SHA256 37801a5a80bb2272dcd0eb5aad6305eed41c9822f92e1876c159e805cd7565c5
DIST amarok-2.0.2.tar.bz2 4979989 RMD160 d9e7aa2e97c9a80450993aceebbbe1a6f0c301f3 SHA1 13bb7c71b27e88cad728f63c624af90111daeb5c SHA256 d13c0b6b058a8dfd86194c81f89365f69adc14f0e4e6ac82359135629caaf651
EBUILD amarok-2.0.2.ebuild 2971 RMD160 27e664ef53e1e790f66ccb29dbd59e1b60477c6b SHA1 502ad3bf53464d84c16565d5d18352fd1a811b49 SHA256 89e30e2a3a95d63b2f457eb04d9ef6ad9e7fb3ee4a301be824e175f7810d7a7a
MISC ChangeLog 3475 RMD160 b1f633dc047f305e4ac8de5018b9b644c01f7717 SHA1 9023f9f58fb01d816ed654c6d34fb809f89f5ed0 SHA256 a7f7a34109e544a970aa89509d14ef37e95635dd82ea2df17ec919bff24e6a67
MISC metadata.xml 2242 RMD160 5c8dc1dad24c8ced0799cec417f365eb6f5b34f4 SHA1 d34e266daa2e6b1e9b90930003b7aafdd9354195 SHA256 b51d1bb69f0f14303609a332c31fcf88b1a54b8b317e275550a26803ba076cae

View File

@@ -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=] )
"
PATCHES=( "${FILESDIR}/2.0.1.1-ipod.patch"
"${FILESDIR}/amarok-2.0.2-librt-1.patch" )
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."
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
}

View File

@@ -0,0 +1,175 @@
diff -urN amarok-2.0.1.1.old/cmake/modules/FindIpod.cmake amarok-2.0.1.1/cmake/modules/FindIpod.cmake
--- amarok-2.0.1.1.old/cmake/modules/FindIpod.cmake 2009-01-06 13:48:28.000000000 +0100
+++ amarok-2.0.1.1/cmake/modules/FindIpod.cmake 2009-02-10 18:18:23.000000000 +0100
@@ -2,45 +2,35 @@
# Once done this will define
#
# IPOD_FOUND - system has libgpod
-# IPOD_INCLUDE_DIR - the libgpod include directory
+# IPOD_INCLUDE_DIRS - the libgpod include directory
# IPOD_LIBRARIES - Link these to use libgpod
-# IPOD_DEFINITIONS - Compiler switches required for using libgpod
+# IPOD_CFLAGS - Compiler switches required for using libgpod
+# IPOD_VERSION - Version number of libgpod
#
-if (IPOD_INCLUDE_DIR AND IPOD_LIBRARIES)
+if (IPOD_INCLUDE_DIRS AND IPOD_LIBRARIES)
# in cache already
SET(IPOD_FOUND TRUE)
-else (IPOD_INCLUDE_DIR AND IPOD_LIBRARIES)
+else (IPOD_INCLUDE_DIRS AND IPOD_LIBRARIES)
if(NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
- INCLUDE(UsePkgConfig)
-
- PKGCONFIG(libgpod-1.0 _IPODIncDir _IPODLinkDir _IPODLinkFlags _IPODCflags)
-
- set(IPOD_DEFINITIONS ${_IPODCflags})
+ find_package(PkgConfig)
+ PKG_SEARCH_MODULE(IPOD libgpod-1.0)
+
endif(NOT WIN32)
+ IF (IPOD_FOUND)
+ IF (NOT IPOD_FIND_QUIETLY)
+ MESSAGE(STATUS "Found libgpod-1 ${IPOD_VERSION}")
+ ENDIF (NOT IPOD_FIND_QUIETLY)
+ ELSE (IPOD_FOUND)
+ IF (IPOD_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could NOT find libgpod-1, check FindPkgConfig output above!")
+ ENDIF (IPOD_FIND_REQUIRED)
+ ENDIF (IPOD_FOUND)
+
+ MARK_AS_ADVANCED(IPOD_INCLUDE_DIRS)
- FIND_PATH(IPOD_INCLUDE_DIR gpod/itdb.h /usr/include/gpod-1.0
- ${_IPODIncDir}
- )
-
- FIND_LIBRARY(IPOD_LIBRARIES NAMES gpod
- PATHS
- ${_IPODLinkDir}
- )
-
- if (IPOD_INCLUDE_DIR AND IPOD_LIBRARIES)
- SET(IPOD_FOUND TRUE)
- else (IPOD_INCLUDE_DIR AND IPOD_LIBRARIES)
- SET(IPOD_FOUND_FALSE)
- endif (IPOD_INCLUDE_DIR AND IPOD_LIBRARIES)
-
- include(FindPackageHandleStandardArgs)
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(Ipod DEFAULT_MSG IPOD_INCLUDE_DIR IPOD_LIBRARIES )
-
- MARK_AS_ADVANCED(IPOD_INCLUDE_DIR IPOD_LIBRARIES)
-
-endif (IPOD_INCLUDE_DIR AND IPOD_LIBRARIES)
+endif (IPOD_INCLUDE_DIRS AND IPOD_LIBRARIES)
diff -urN amarok-2.0.1.1.old/CMakeLists.txt amarok-2.0.1.1/CMakeLists.txt
--- amarok-2.0.1.1.old/CMakeLists.txt 2009-01-06 14:12:50.000000000 +0100
+++ amarok-2.0.1.1/CMakeLists.txt 2009-02-10 18:22:23.000000000 +0100
@@ -56,7 +56,10 @@
macro_log_feature( GDK_FOUND "Gdk" "Support for artwork on iPod audio devices via GdkPixbuf" "http://developer.gnome.org/arch/imaging/gdkpixbuf.html" FALSE "2.0.x" "" )
macro_optional_find_package(Ipod)
-macro_log_feature( IPOD_FOUND "libgpod" "Support Apple iPod audio devices" "http://sourceforge.net/projects/gtkpod/" FALSE "0.6.0" "" )
+if(IPOD_FOUND)
+ macro_ensure_version("0.7.0" ${IPOD_VERSION} IPOD_0_7)
+endif(IPOD_FOUND)
+macro_log_feature( IPOD_FOUND "libgpod" "Support Apple iPod audio devices" "http://sourceforge.net/projects/gtkpod/" FALSE "0.7.0" "" )
#macro_optional_find_package(MySQL)
#macro_log_feature( MYSQL_FOUND "mysql" "Store Collection in a mysql database instead of a sqlite one" "http://www.mysql.com" FALSE "4.1.0" "" )
diff -urN amarok-2.0.1.1.old/src/collection/ipodcollection/CMakeLists.txt amarok-2.0.1.1/src/collection/ipodcollection/CMakeLists.txt
--- amarok-2.0.1.1.old/src/collection/ipodcollection/CMakeLists.txt 2009-01-06 13:49:32.000000000 +0100
+++ amarok-2.0.1.1/src/collection/ipodcollection/CMakeLists.txt 2009-02-10 22:22:01.000000000 +0100
@@ -17,7 +17,7 @@
handler
${GLIB2_INCLUDE_DIR}
${GDK_INCLUDE_DIR}
- ${IPOD_INCLUDE_DIR}
+ ${IPOD_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}/../..
${AMAROK_COLLECTION_SUPPORT_DIR}
${KDE4_INCLUDE_DIR}
diff -urN amarok-2.0.1.1.old/src/collection/ipodcollection/handler/IpodHandler.cpp amarok-2.0.1.1/src/collection/ipodcollection/handler/IpodHandler.cpp
--- amarok-2.0.1.1.old/src/collection/ipodcollection/handler/IpodHandler.cpp 2009-01-06 13:49:32.000000000 +0100
+++ amarok-2.0.1.1/src/collection/ipodcollection/handler/IpodHandler.cpp 2009-02-10 18:00:09.000000000 +0100
@@ -1339,73 +1339,12 @@
QFileInfo tempImageFileInfo( tempImageFile ); // get info for path
QString tempImagePath = tempImageFileInfo.absoluteFilePath(); // path
- Itdb_Thumb *thumb = NULL;
GdkPixbuf *gpixbuf = NULL;
- QString thumbPath;
// pull image out of ipod
- if( ipodtrack->has_artwork == 0x01 )
- {
- // try small first
-
- thumb = itdb_artwork_get_thumb_by_type ( ipodtrack->artwork, ITDB_THUMB_COVER_SMALL );
-
- // then large if needed
- if( thumb == NULL)
- {
- thumb = itdb_artwork_get_thumb_by_type ( ipodtrack->artwork, ITDB_THUMB_COVER_LARGE );
- }
-
- if( thumb != NULL)
- {
- gpixbuf = (GdkPixbuf*) itdb_thumb_get_gdk_pixbuf( m_device, thumb );
- }
- else
- {
- GList *thumbs = ipodtrack->artwork->thumbnails;
-
- for(; thumbs; thumbs = thumbs->next)
- {
- Itdb_Thumb *curThumb = ( Itdb_Thumb * )thumbs->data;
- if( curThumb == NULL)
- continue;
-
- switch( curThumb->type )
- {
- case ITDB_THUMB_PHOTO_SMALL:
- break;
- case ITDB_THUMB_PHOTO_LARGE:
- break;
- case ITDB_THUMB_PHOTO_FULL_SCREEN:
- break;
- case ITDB_THUMB_PHOTO_TV_SCREEN:
- break;
- case ITDB_THUMB_COVER_XLARGE:
- break;
- case ITDB_THUMB_COVER_MEDIUM:
- break;
- case ITDB_THUMB_COVER_SMEDIUM:
- break;
- case ITDB_THUMB_COVER_XSMALL:
- break;
-
- default:
- break;
- }
-
- thumb = curThumb;
- break;
-
- }
-
- if( thumb != NULL)
- {
- thumbPath = QString::fromUtf8( itdb_thumb_get_filename( m_device, thumb ) );
- gpixbuf = (GdkPixbuf*) itdb_thumb_get_gdk_pixbuf( m_device, thumb );
- }
- }
- }
+ if( ipodtrack->has_artwork == 0x01 ) // 0x01 = true ; 0x02 = false
+ gpixbuf = (GdkPixbuf*) itdb_artwork_get_pixbuf( m_device, ipodtrack->artwork, 50, 50 );
if(gpixbuf != NULL)
{

View File

@@ -0,0 +1,18 @@
Submitted By: Mario Fetka (mario dot fetka at gmail dot com)
Date: 2009-03-08
Initial Package Version: 2.0.2
Origin: me
Upstream Status: unknown
Description: also link to lib rt for mysql embedded
diff -Naur amarok-2.0.2.orig/src/collection/sqlcollection/CMakeLists.txt amarok-2.0.2/src/collection/sqlcollection/CMakeLists.txt
--- amarok-2.0.2.orig/src/collection/sqlcollection/CMakeLists.txt 2009-03-08 11:55:17.804059862 +0000
+++ amarok-2.0.2/src/collection/sqlcollection/CMakeLists.txt 2009-03-08 11:56:04.183102651 +0000
@@ -58,6 +58,7 @@
target_link_libraries(amarok_collection-sqlcollection
amaroklib
amarokpud
+ rt
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
${KDE4_THREADWEAVER_LIBRARIES}

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>kde</herd>
<use>
<!--
<flag name="amazon">Enable support for downloading covers from amazon.com</flag>
-->
<flag name="cdaudio">Enable cdaudio functionality</flag>
<flag name="daap">
Enable the scripts for music sharing through DAAP. This flag adds
dependencies on <pkg>www-servers/mongrel</pkg> to allow sharing of
the Amarok music collection through DAAP protocol. Please note
that turning this flag off has no effect on DAAP browsing.
</flag>
<flag name="ifp">Enable support for iRiver devices access through libifp</flag>
<flag name="mp3tunes">Enable mp3tunes integration</flag>
<flag name="mp4">
Build the TagLib plugin for writing tags in Mp4 container files
(m4a). Please note that by enabling this USE flag, the resulting
package will not be redistributable, as it links to
<pkg>media-libs/libmp4v2</pkg>, distributed under a
GPL-incompatible license.
</flag>
<flag name="mtp">Enable support for libMTP (Plays4Sure) devices access through libmtp</flag>
<flag name="njb">Enable support for NJB (Creative) devices access through libnjb</flag>
<!--
<flag name="python">
Install the Amarok scripts written in Python, depending on
<pkg>dev-python/PyQt</pkg>. At the moment the only script
installed by this flag is the webcontrol script.
</flag>
<flag name="real">
Build the Helix engine for Amarok, linked against
<pkg>media-video/realplayer</pkg>. This is an alternative engine
to the xine one, which supports a different set of formats. Only
available for x86 architecture as it uses the binary version of
RealPlayer. Please note that by enabling this USE flag, the resulting
package will not be redistributable, as it links to the non-GPL compatible
RealPlayer.
</flag>
-->
<flag name="semantic-desktop">
Semantic desktop allows for storage of digital informationand its
metadata to allow the user to express his personal mental models, making
all information become intuitively accessible
</flag>
<!--
<flag name="visualization">
Support visualization plugins through <pkg>media-libs/libvisual</pkg>
</flag>
-->
</use>
</pkgmetadata>