summaryrefslogtreecommitdiff
path: root/gui-apps/wbg/wbg-9999.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'gui-apps/wbg/wbg-9999.ebuild')
-rw-r--r--gui-apps/wbg/wbg-9999.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/gui-apps/wbg/wbg-9999.ebuild b/gui-apps/wbg/wbg-9999.ebuild
new file mode 100644
index 0000000..fbc9682
--- /dev/null
+++ b/gui-apps/wbg/wbg-9999.ebuild
@@ -0,0 +1,58 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="https://codeberg.org/dnkl/wbg.git"
+ inherit git-r3
+else
+ SRC_URI="https://codeberg.org/dnkl/wbg/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+ S="${WORKDIR}/${PN}"
+fi
+
+DESCRIPTION="Super simple wallpaper application"
+HOMEPAGE="https://codeberg.org/dnkl/wbg"
+
+# ZLIB for nanosvg
+LICENSE="MIT ZLIB"
+SLOT="0"
+IUSE="jpeg jpegxl png webp"
+
+RDEPEND="
+ dev-libs/wayland
+ x11-libs/pixman
+ jpeg? ( media-libs/libjpeg-turbo:= )
+ jpegxl? ( media-libs/libjxl:= )
+ png? ( media-libs/libpng:= )
+ webp? ( media-libs/libwebp:= )
+"
+DEPEND="
+ ${RDEPEND}
+ dev-libs/tllist
+"
+BDEPEND="
+ dev-libs/wayland-protocols
+ dev-util/wayland-scanner
+ virtual/pkgconfig
+"
+
+src_configure() {
+ local emesonargs=(
+ $(meson_feature jpeg)
+ $(meson_feature jpegxl jxl)
+ $(meson_feature png)
+ $(meson_feature webp)
+ -Dsvg=true
+ )
+
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+ dodoc README.md CHANGELOG.md
+}