media-sound/yarock: New package
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 4 Oct 2018 16:29:33 +0000 (18:29 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 4 Oct 2018 16:45:51 +0000 (18:45 +0200)
Happy listening!

Closes: https://bugs.gentoo.org/398483
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Package-Manager: Portage-2.3.50, Repoman-2.3.11

media-sound/yarock/Manifest [new file with mode: 0644]
media-sound/yarock/files/yarock-1.3.1-desktop.patch [new file with mode: 0644]
media-sound/yarock/files/yarock-1.3.1-phonon.patch [new file with mode: 0644]
media-sound/yarock/metadata.xml [new file with mode: 0644]
media-sound/yarock/yarock-1.3.1.ebuild [new file with mode: 0644]

diff --git a/media-sound/yarock/Manifest b/media-sound/yarock/Manifest
new file mode 100644 (file)
index 0000000..0774da6
--- /dev/null
@@ -0,0 +1 @@
+DIST Yarock_1.3.1_Sources.tar.gz 734280 BLAKE2B 3bb8a452a3a7bd27792f67b6fcb2765494738c7a0149248b658333a64f38494880891e8a9d43ef7367d7748e5c0b6a2d9349dc1dd73dd0fecd94d88f21eec020 SHA512 a59837609c5004005360a272b45794143c64373d13c2783f84299ab0b849223aac2be3d87703e1925d66ed4301bcc2e7254228d34f556bce0447d949539acf2e
diff --git a/media-sound/yarock/files/yarock-1.3.1-desktop.patch b/media-sound/yarock/files/yarock-1.3.1-desktop.patch
new file mode 100644 (file)
index 0000000..3131c07
--- /dev/null
@@ -0,0 +1,8 @@
+--- a/data/yarock.desktop      2017-12-24 08:48:55.000000000 +0100
++++ b/data/yarock.desktop      2018-10-04 18:18:37.700722758 +0200
+@@ -1,5 +1,4 @@
+ [Desktop Entry]
+-Version=1.3.0
+ Name=Yarock
+ Comment=Play your music collection
+ TryExec=yarock
diff --git a/media-sound/yarock/files/yarock-1.3.1-phonon.patch b/media-sound/yarock/files/yarock-1.3.1-phonon.patch
new file mode 100644 (file)
index 0000000..53bbf83
--- /dev/null
@@ -0,0 +1,36 @@
+--- a/src/core/player/phonon/engine_phonon.h   2017-11-04 17:06:43.000000000 +0100
++++ b/src/core/player/phonon/engine_phonon.h   2018-10-04 18:23:29.079923850 +0200
+@@ -27,12 +27,12 @@
+ #include <QPixmap>\r
\r
+ // Phonon\r
+-#include <phonon/mediasource.h>\r
+-#include <phonon/mediaobject.h>\r
+-#include <phonon/audiooutput.h>\r
+-#include <phonon/path.h>\r
+-#include <phonon/effect.h>\r
+-#include <phonon/volumefadereffect.h>\r
++#include <phonon4qt5/phonon/mediasource.h>\r
++#include <phonon4qt5/phonon/mediaobject.h>\r
++#include <phonon4qt5/phonon/audiooutput.h>\r
++#include <phonon4qt5/phonon/path.h>\r
++#include <phonon4qt5/phonon/effect.h>\r
++#include <phonon4qt5/phonon/volumefadereffect.h>\r
\r
+ #include "core/player/engine_base.h"\r
+ #include "core/mediaitem/mediaitem.h"\r
+--- a/src/core/player/phonon/engine_phonon.cpp 2017-11-11 07:29:42.000000000 +0100
++++ b/src/core/player/phonon/engine_phonon.cpp 2018-10-04 18:23:29.084923716 +0200
+@@ -29,9 +29,9 @@
+ #include <QtPlugin>\r
\r
+ // phonon\r
+-#include <phonon/backendcapabilities.h>\r
+-#include <phonon/effect.h>\r
+-#include <phonon/effectparameter.h>\r
++#include <phonon4qt5/phonon/backendcapabilities.h>\r
++#include <phonon4qt5/phonon/effect.h>\r
++#include <phonon4qt5/phonon/effectparameter.h>\r
\r
+ #include <cmath>\r
\r
diff --git a/media-sound/yarock/metadata.xml b/media-sound/yarock/metadata.xml
new file mode 100644 (file)
index 0000000..2263346
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>asturm@gentoo.org</email>
+               <name>Andreas Sturmlechner</name>
+       </maintainer>
+       <use>
+               <flag name="phonon">Use <pkg>media-libs/phonon</pkg> backend instead of <pkg>media-video/vlc</pkg></flag>
+       </use>
+</pkgmetadata>
diff --git a/media-sound/yarock/yarock-1.3.1.ebuild b/media-sound/yarock/yarock-1.3.1.ebuild
new file mode 100644 (file)
index 0000000..97723a6
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+MY_P="Yarock_${PV}_Sources"
+DESCRIPTION="Qt-based music player"
+HOMEPAGE="https://seb-apps.github.io/yarock/"
+SRC_URI="https://launchpad.net/${PN}/1.x/${PV}/+download/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="phonon"
+
+RDEPEND="
+       dev-cpp/htmlcxx
+       dev-qt/qtcore:5
+       dev-qt/qtdbus:5
+       dev-qt/qtgui:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtsql:5[sqlite]
+       dev-qt/qtwidgets:5
+       dev-qt/qtxml:5
+       media-libs/taglib
+       x11-libs/libX11
+       !phonon? ( media-video/vlc:= )
+       phonon? ( >=media-libs/phonon-4.10.1 )
+"
+DEPEND="${RDEPEND}
+       dev-qt/linguist-tools:5
+       dev-qt/qtconcurrent:5
+       dev-qt/qtx11extras:5
+"
+
+DOCS=( CHANGES.md README.md )
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-desktop.patch"
+       "${FILESDIR}/${P}-phonon.patch"
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DENABLE_QT5=ON
+               -DENABLE_MPV=OFF
+               -DENABLE_PHONON=$(usex phonon ON OFF)
+               -DENABLE_VLC=$(usex phonon OFF ON)
+       )
+
+       cmake-utils_src_configure
+}