summaryrefslogtreecommitdiff
path: root/media-sound/qbitmplayer/qbitmplayer-3.1.2.ebuild
blob: efd506b86f99bae7ccc7631b13c57e3e10661529 (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
51
52
53
54
55
56
57
58
59
# 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 video"

DEPEND="
	dev-qt/qtmultimedia:6
	dev-qt/qtbase:6[widgets]
	dbus? ( dev-qt/qtbase:6[dbus] )
	libnotify? ( x11-libs/libnotify )
"
RDEPEND="${DEPEND}"
BDEPEND="
	>=dev-build/cmake-3.28
	dev-qt/qttools:6[linguist]
	virtual/pkgconfig
"

src_prepare() {
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DQT_VERSION_MAJOR=6
	)

	if use dbus; then
		mycmakeargs+=(
			-DENABLE_IPC=1
		)
	fi

	if use libnotify; then
		mycmakeargs+=(
			-DENABLE_NOTIFICATIONS=1
		)
	fi

	if use video; then
		mycmakeargs+=(
			-DENABLE_VIDEO_PLAYER=1
		)
	fi

	cmake_src_configure
}