summaryrefslogtreecommitdiff
path: root/net-misc/lagrange/lagrange-0.6.0.ebuild
blob: 82b09b49fe626b0c99af55b8f0c88648093c0319 (plain) (blame)
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
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake

DESCRIPTION="Lagrange is a desktop GUI client for browsing Geminispace"
HOMEPAGE="https://git.skyjake.fi/skyjake/lagrange"
SRC_URI="https://git.skyjake.fi/skyjake/${PN}/releases/download/v${PV}/${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="audio"

DEPEND="
	${RDEPEND}
	dev-util/cmake
"
RDEPEND="
	>=dev-libs/openssl-1.1.1
	dev-libs/libpcre
	dev-libs/libunistring
	media-libs/libsdl2
	sys-libs/zlib
	audio? ( media-sound/mpg123 )
"

src_configure() {
	local mycmakeargs=(
		-DENABLE_MPG123=$(usex audio ON OFF)
	)
	cmake_src_configure
}

pkg_postinst() {
	xdg_desktop_database_update
	xdg_icon_cache_update
}

pkg_postrm() {
	xdg_desktop_database_update
	xdg_icon_cache_update
}