# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit zig

DESCRIPTION="Mepo is a fast, simple, hackable OSM map viewer for mobile and desktop Linux! Free your navigation now."

HOMEPAGE="https://mepo.lrdu.org/index.html"

SRC_URI="https://git.sr.ht/~mil/mepo/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"

SLOT="0"

KEYWORDS="~arm64"

IUSE="
		X
"

RDEPENDS="
		media-libs/libsdl2
		media-libs/sdl2-image
		media-libs/sdl2-gfx
		media-libs/sdl2-ttf
		net-misc/curl
		app-misc/jq
		sys-libs/ncurses
		gnome-extra/zenity
		X? ( x11-apps/xwininfo )
		dev-lang/zig
"

DEPEND="${RDEPEND}"

BDEPEND="
"
