Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/strawberry/
Date: Sun, 20 Feb 2022 20:24:20
Message-Id: 1645388650.788f884a7ca0fca93786020c747d86d9011c513b.polynomial-c@gentoo
1 commit: 788f884a7ca0fca93786020c747d86d9011c513b
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 20 20:23:58 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 20:24:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=788f884a
7
8 media-sound/strawberry: Bump to version 1.0.2
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 media-sound/strawberry/Manifest | 1 +
13 media-sound/strawberry/strawberry-1.0.2.ebuild | 120 +++++++++++++++++++++++++
14 2 files changed, 121 insertions(+)
15
16 diff --git a/media-sound/strawberry/Manifest b/media-sound/strawberry/Manifest
17 index 32c03cbc93f0..4efcbe13e44c 100644
18 --- a/media-sound/strawberry/Manifest
19 +++ b/media-sound/strawberry/Manifest
20 @@ -1 +1,2 @@
21 DIST strawberry-1.0.1.tar.xz 11191132 BLAKE2B e182ec5db26b22b60e9393b3a418cf44c01b647ab268bafe6d3f098d879817563d68faf7962f0670017f70b7f9f64f3a680056002e7041a2dc956fdc1dceeb95 SHA512 6a668ba6dbdcd5c60e78190c2cc8c04ad4ed920102c7555fdd42f6bf47c5b4004f9580c0f009cade642b404f6884b2b5dac386d326bf6f234403e4ba7612a2bb
22 +DIST strawberry-1.0.2.tar.xz 11202768 BLAKE2B 555c9492a6c10e9df579d4e9b1c718c722531f21784f68a436d8bd313a6950f0cfc58ded85f9a144de12a73ab07a0cc4d0e028223122dd4fde6604eb92145bd8 SHA512 196be23dde8fee531b2996bc7dacaf5b00dcd3f1aaaeb6630ed2a2fdeb777abb66d6c19928fc157dde7d5bceffdc646ff615a6d52bc0e6ee5ddcc14de6ee7a59
23
24 diff --git a/media-sound/strawberry/strawberry-1.0.2.ebuild b/media-sound/strawberry/strawberry-1.0.2.ebuild
25 new file mode 100644
26 index 000000000000..af868219fe69
27 --- /dev/null
28 +++ b/media-sound/strawberry/strawberry-1.0.2.ebuild
29 @@ -0,0 +1,120 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit cmake flag-o-matic plocale xdg
36 +
37 +PLOCALES="ca cs de es es_AR es_ES es_MX fi fr hu id it ja ko nb nl pl pt_BR ru sv uk zh_CN"
38 +
39 +DESCRIPTION="Modern music player and library organizer based on Clementine and Qt"
40 +HOMEPAGE="https://www.strawberrymusicplayer.org/"
41 +if [[ ${PV} == *9999* ]]; then
42 + EGIT_REPO_URI="https://github.com/strawberrymusicplayer/strawberry"
43 + inherit git-r3
44 +else
45 + SRC_URI="https://github.com/strawberrymusicplayer/strawberry/releases/download/${PV}/${P}.tar.xz"
46 + KEYWORDS="~amd64 ~ppc64 ~x86"
47 +fi
48 +
49 +LICENSE="GPL-3"
50 +SLOT="0"
51 +IUSE="cdda debug +gstreamer ipod moodbar mtp pulseaudio +udisks vlc"
52 +
53 +BDEPEND="
54 + dev-qt/linguist-tools:5
55 + sys-devel/gettext
56 + virtual/pkgconfig
57 +"
58 +COMMON_DEPEND="
59 + dev-db/sqlite:=
60 + dev-libs/glib:2
61 + dev-libs/protobuf:=
62 + dev-qt/qtconcurrent:5
63 + dev-qt/qtcore:5
64 + dev-qt/qtdbus:5
65 + dev-qt/qtgui:5
66 + dev-qt/qtnetwork:5[ssl]
67 + dev-qt/qtsql:5[sqlite]
68 + dev-qt/qtwidgets:5
69 + dev-qt/qtx11extras:5
70 + media-libs/alsa-lib
71 + >=media-libs/taglib-1.11.1_p20181028
72 + x11-libs/libX11
73 + cdda? ( dev-libs/libcdio:= )
74 + gstreamer? (
75 + >=media-libs/chromaprint-1.4:=
76 + media-libs/gstreamer:1.0
77 + media-libs/gst-plugins-base:1.0
78 + )
79 + ipod? ( >=media-libs/libgpod-0.8.0 )
80 + moodbar? ( sci-libs/fftw:3.0 )
81 + mtp? ( >=media-libs/libmtp-1.0.0 )
82 + pulseaudio? ( media-sound/pulseaudio )
83 + vlc? ( media-video/vlc )
84 +"
85 +# Note: sqlite driver of dev-qt/qtsql is bundled, so no sqlite use is required; check if this can be overcome someway;
86 +RDEPEND="${COMMON_DEPEND}
87 + gstreamer? (
88 + media-plugins/gst-plugins-meta:1.0
89 + media-plugins/gst-plugins-soup:1.0
90 + media-plugins/gst-plugins-taglib:1.0
91 + )
92 + mtp? ( gnome-base/gvfs[mtp] )
93 + udisks? ( sys-fs/udisks:2 )
94 +"
95 +DEPEND="${COMMON_DEPEND}
96 + >=dev-cpp/gtest-1.8.0
97 + dev-libs/boost
98 + dev-qt/qttest:5
99 +"
100 +
101 +DOCS=( Changelog README.md )
102 +
103 +REQUIRED_USE="
104 + cdda? ( gstreamer )
105 + || ( gstreamer vlc )
106 +"
107 +
108 +src_prepare() {
109 + plocale_find_changes "src/translations" "" ".po"
110 +
111 + cmake_src_prepare
112 +}
113 +
114 +src_configure() {
115 + # spotify is not in portage
116 + local mycmakeargs=(
117 + -DBUILD_WERROR=OFF
118 + # avoid automagically enabling of ccache (bug #611010)
119 + -DCCACHE_EXECUTABLE=OFF
120 + -DENABLE_GIO=ON
121 + -DLINGUAS="$(plocale_get_locales)"
122 + -DENABLE_AUDIOCD="$(usex cdda)"
123 + -DENABLE_GSTREAMER="$(usex gstreamer)"
124 + -DENABLE_LIBGPOD="$(usex ipod)"
125 + -DENABLE_LIBMTP="$(usex mtp)"
126 + -DENABLE_LIBPULSE="$(usex pulseaudio)"
127 + -DENABLE_MOODBAR="$(usex moodbar)"
128 + -DENABLE_MUSICBRAINZ="$(usex gstreamer)"
129 + -DENABLE_SONGFINGERPRINTING="$(usex gstreamer)"
130 + -DENABLE_UDISKS2="$(usex udisks)"
131 + -DENABLE_VLC="$(usex vlc)"
132 + # Disable until we have qt6 in the tree
133 + -DWITH_QT6=OFF
134 + )
135 +
136 + use !debug && append-cppflags -DQT_NO_DEBUG_OUTPUT
137 +
138 + cmake_src_configure
139 +}
140 +
141 +pkg_postinst() {
142 + xdg_pkg_postinst
143 +
144 + if use gstreamer ; then
145 + elog "Note that list of supported formats is controlled by media-plugins/gst-plugins-meta "
146 + elog "USE flags. You may be interested in setting aac, flac, mp3, ogg or wavpack USE flags "
147 + elog "depending on your preferences"
148 + fi
149 +}