blob: 30fbb87d0144e9679c650d14e2965cc056df39ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 2024-2025 Brayan M. Salazar <this.brayan@proton.me>
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake xdg
DESCRIPTION="Music Player written in C++ & Qt."
HOMEPAGE="https://github.com/brookiestein/QBitMPlayer"
SRC_URI="https://github.com/brookiestein/QBitMPlayer/archive/refs/tags/${PV}.tar.gz -> QBitMPlayer-${PV}.tar.gz"
S="${WORKDIR}/QBitMPlayer-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="dbus libnotify network video"
DEPEND="
dev-qt/qtmultimedia:6
dev-qt/qtbase:6[widgets]
dbus? ( dev-qt/qtbase:6[dbus] )
libnotify? ( x11-libs/libnotify )
network? ( dev-qt/qtbase:6[network] )
"
RDEPEND="${DEPEND}"
BDEPEND="
>=dev-build/cmake-3.28
dev-qt/qttools:6[linguist]
virtual/pkgconfig
"
REQUIRED_USE="
network? ( dbus )
"
src_prepare() {
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DQT_VERSION_MAJOR=6
-DENABLE_IPC="$(usex dbus)"
-DENABLE_NOTIFICATIONS="$(usex libnotify)"
-DENABLE_VIDEO_PLAYER="$(usex video)"
-DSINGLE_INSTANCE="$(usex network)"
)
cmake_src_configure
}
|