2022-01-21 16:24:08 +01:00
|
|
|
# Copyright 2021-2022 Gentoo Authors
|
2021-07-31 19:55:31 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-10-19 17:50:07 +02:00
|
|
|
EAPI=8
|
2021-07-31 19:55:31 +02:00
|
|
|
|
2021-12-24 11:34:59 +01:00
|
|
|
inherit cmake xdg
|
2021-07-31 19:55:31 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Desktop GUI client for browsing Geminispace"
|
2021-11-23 10:34:10 +01:00
|
|
|
HOMEPAGE="https://gmi.skyjake.fi/lagrange/ https://git.skyjake.fi/gemini/lagrange"
|
2021-07-31 19:55:31 +02:00
|
|
|
SRC_URI="https://git.skyjake.fi/gemini/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
|
|
|
|
2021-11-23 10:34:10 +01:00
|
|
|
LICENSE="|| ( MIT Unlicense ) Apache-2.0 BSD-2 CC-BY-SA-4.0 OFL-1.1"
|
2021-07-31 19:55:31 +02:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2021-10-09 04:16:47 +02:00
|
|
|
IUSE="cpu_flags_x86_sse4_1 +fribidi +harfbuzz mp3 webp"
|
2021-07-31 19:55:31 +02:00
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
dev-libs/libpcre:3
|
2021-10-09 04:16:47 +02:00
|
|
|
dev-libs/libunistring:=
|
|
|
|
dev-libs/openssl:=
|
2021-07-31 19:55:31 +02:00
|
|
|
media-libs/libsdl2[sound(+),video(+)]
|
2021-10-09 04:16:47 +02:00
|
|
|
sys-libs/zlib:=
|
2021-07-31 19:55:31 +02:00
|
|
|
fribidi? ( dev-libs/fribidi )
|
2021-10-09 04:16:47 +02:00
|
|
|
harfbuzz? ( media-libs/harfbuzz:=[truetype(+)] )
|
2021-07-31 19:55:31 +02:00
|
|
|
mp3? ( media-sound/mpg123 )
|
2021-10-09 04:16:47 +02:00
|
|
|
webp? ( media-libs/libwebp:= )
|
2021-07-31 19:55:31 +02:00
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
2021-11-23 10:34:10 +01:00
|
|
|
BDEPEND="app-arch/zip"
|
2021-07-31 19:55:31 +02:00
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
# do not add use flags that don't pull dependencies
|
|
|
|
# and only choose which files to compile (e.g. "ipc")
|
|
|
|
local mycmakeargs=(
|
|
|
|
-DENABLE_FRIBIDI=$(usex fribidi)
|
|
|
|
-DENABLE_HARFBUZZ=$(usex harfbuzz)
|
|
|
|
-DENABLE_MPG123=$(usex mp3)
|
2021-10-09 04:16:47 +02:00
|
|
|
-DENABLE_WEBP=$(usex webp)
|
2021-07-31 19:55:31 +02:00
|
|
|
|
|
|
|
# never build bundled libs
|
|
|
|
-DENABLE_FRIBIDI_BUILD=OFF
|
|
|
|
-DENABLE_HARFBUZZ_MINIMAL=OFF
|
|
|
|
|
|
|
|
# lib/the_Foundation
|
|
|
|
-DTFDN_ENABLE_WARN_ERROR=OFF
|
|
|
|
-DTFDN_ENABLE_SSE41=$(usex cpu_flags_x86_sse4_1)
|
|
|
|
)
|
|
|
|
|
|
|
|
cmake_src_configure
|
|
|
|
}
|