Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 503656

Summary: media-libs/libechonest-2.2.0 version bump
Product: Gentoo Linux Reporter: Uwe L. Korn <uwelk>
Component: [OLD] LibraryAssignee: Nikoli <nikoli>
Status: RESOLVED FIXED    
Severity: enhancement CC: proxy-maint, sound, ssuominen
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: libechonest-2.2.0 ebuild
patch for ebuild

Description Uwe L. Korn 2014-03-06 19:53:26 UTC
Created attachment 371900 [details]
libechonest-2.2.0 ebuild

New version of libechonest was released incl. Qt5 support. Package has preference for Qt4 as Qt5 is not yet in the tree
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-07 14:54:10 UTC
Comment on attachment 371900 [details]
libechonest-2.2.0 ebuild

--- libechonest-2.1.0.ebuild    2013-11-02 18:43:03.452210470 +0100
+++ -   2014-03-07 15:53:46.343470414 +0100
@@ -1,26 +1,46 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libechonest/libechonest-2.1.0.ebuild,v 1.2 2013/10/29 20:03:16 maksbotan Exp $
+# $Header: $
 EAPI=5
 inherit cmake-utils
 DESCRIPTION="A library for communicating with The Echo Nest"
 HOMEPAGE="http://projects.kde.org/projects/playground/libs/libechonest"
-SRC_URI="http://files.lfranchi.com/${P}.tar.bz2
-       http://pwsp.cleinias.com/${P}.tar.bz2"
+SRC_URI="http://files.lfranchi.com/${P}.tar.bz2"
 LICENSE="GPL-2"
-SLOT="0/2.1"
+SLOT="0/2.2"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="+qt4 qt5"
+REQUIRED_USE="^^ ( qt4 qt5 )"
 RESTRICT="test" # Networking required
-RDEPEND=">=dev-libs/qjson-0.5
-       dev-qt/qtcore:4"
+RDEPEND="
+       qt4? (
+       >=dev-libs/qjson-0.5[qt4(+)]
+               dev-qt/qtcore:4
+       )
+       qt5? (
+               =dev-libs/qjson-9999[qt5]
+               dev-qt/qtcore:5
+               dev-qt/qtnetwork:5
+               dev-qt/qtxml:5
+       )
+"
 DEPEND="${RDEPEND}
        virtual/pkgconfig
-       dev-qt/qttest:4"
+       qt4? ( dev-qt/qttest:4 )
+       qt5? ( dev-qt/qttest:5 )
+"
 DOCS=( AUTHORS README TODO )
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use qt4 BUILD_WITH_QT4)
+       )
+
+       cmake-utils_src_configure
+}
Comment 2 Nikoli 2014-03-11 21:59:22 UTC
Created attachment 372422 [details, diff]
patch for ebuild
Comment 3 Nikoli 2014-03-11 22:02:02 UTC
'=dev-libs/qjson-9999[qt5]' this is definitely wrong: non live ebuilds should not have live ebuilds in deps, so i did not add USE qt5. Also 2.2.0 does not link to qjson anymore, but still has 'find_package(QJSON REQUIRED)', asked upstream via mail.
Comment 4 Uwe L. Korn 2014-04-06 18:33:31 UTC
QJson is definitely needed in source and there is a statement in src/CMakeLists.txt that should link to it but is broken. Upstream fix submitted at https://github.com/lfranchi/libechonest/pull/14

As there is no upstream QJson release with Qt5 support, I would suggest for the moment to omit Qt5 support for the release version of libechonest and use Nikoli's latest proposed patch/ebuild.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-04-06 19:07:05 UTC
(In reply to Uwe L. Korn from comment #4)
> QJson is definitely needed in source and there is a statement in
> src/CMakeLists.txt that should link to it but is broken. Upstream fix
> submitted at https://github.com/lfranchi/libechonest/pull/14
> 
> As there is no upstream QJson release with Qt5 support, I would suggest for
> the moment to omit Qt5 support for the release version of libechonest and
> use Nikoli's latest proposed patch/ebuild.

I agree.   It's done, in Portage, as 2.2.0-r1