aboutsummaryrefslogtreecommitdiff
blob: 6beeefdb77cb1d54e5fa7f9c288699d1c3696d49 (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
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

DESCRIPTION="Super simple wallpaper application"
HOMEPAGE="https://codeberg.org/dnkl/wbg"
SRC_URI="https://codeberg.org/dnkl/wbg/archive/${PV}.tar.gz  -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="png jpeg"

S="${WORKDIR}/${PN}"

REQUIRED_USE="|| ( png jpeg )"

DEPEND="
	x11-libs/pixman
	dev-libs/wayland
"
RDEPEND="
	${DEPEND}
	png? ( media-libs/libpng )
	jpeg? ( media-libs/libjpeg-turbo )
"
BDEPEND="
	dev-libs/tllist
	dev-libs/wayland-protocols
	dev-util/wayland-scanner
	virtual/pkgconfig
"

src_configure() {
	local emesonargs=(
		$(meson_feature png)
		$(meson_feature jpeg)
	)

	meson_src_configure
}