2021-07-27 03:30:10 +02:00
|
|
|
# Copyright 2021 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit xdg cmake
|
|
|
|
|
|
|
|
DESCRIPTION="Desktop GUI client for browsing Geminispace"
|
|
|
|
HOMEPAGE="https://gmi.skyjake.fi/lagrange/
|
|
|
|
https://git.skyjake.fi/gemini/lagrange"
|
|
|
|
SRC_URI="https://git.skyjake.fi/gemini/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="|| ( MIT Unlicense ) Apache-2.0 BSD-2 OFL-1.1"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2021-09-28 17:14:41 +02:00
|
|
|
IUSE="cpu_flags_x86_sse4_1 +fribidi +harfbuzz mp3 webp"
|
2021-07-27 03:30:10 +02:00
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
dev-libs/libpcre:3
|
2021-09-28 17:14:41 +02:00
|
|
|
dev-libs/libunistring:=
|
|
|
|
dev-libs/openssl:=
|
2021-07-27 03:30:10 +02:00
|
|
|
media-libs/libsdl2[sound(+),video(+)]
|
2021-09-28 17:14:41 +02:00
|
|
|
sys-libs/zlib:=
|
2021-07-27 03:30:10 +02:00
|
|
|
fribidi? ( dev-libs/fribidi )
|
2021-09-28 17:14:41 +02:00
|
|
|
harfbuzz? ( media-libs/harfbuzz:=[truetype(+)] )
|
2021-07-27 03:30:10 +02:00
|
|
|
mp3? ( media-sound/mpg123 )
|
2021-09-28 17:14:41 +02:00
|
|
|
webp? ( media-libs/libwebp:= )
|
2021-07-27 03:30:10 +02:00
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
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-09-28 17:14:41 +02:00
|
|
|
-DENABLE_WEBP=$(usex webp)
|
2021-07-27 03:30:10 +02:00
|
|
|
|
2021-08-03 12:21:56 +02:00
|
|
|
# never build bundled libs
|
|
|
|
-DENABLE_FRIBIDI_BUILD=OFF
|
|
|
|
-DENABLE_HARFBUZZ_MINIMAL=OFF
|
|
|
|
|
2021-07-27 03:30:10 +02:00
|
|
|
# lib/the_Foundation
|
|
|
|
-DTFDN_ENABLE_WARN_ERROR=OFF
|
|
|
|
-DTFDN_ENABLE_SSE41=$(usex cpu_flags_x86_sse4_1)
|
|
|
|
)
|
|
|
|
|
|
|
|
cmake_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2021-08-03 12:21:56 +02:00
|
|
|
xdg_pkg_postinst
|
|
|
|
|
2021-09-28 17:14:41 +02:00
|
|
|
if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 1.7.0 ; then
|
|
|
|
ewarn "Lagrange 1.7 introduces some backwards incompatible changes:"
|
2021-08-03 12:21:56 +02:00
|
|
|
ewarn
|
2021-09-28 17:14:41 +02:00
|
|
|
ewarn "- Bookmarks file format has changed. Your existing bookmarks will be imported to"
|
|
|
|
ewarn " the new format. The old bookmarks.txt file can be found in the config directory"
|
|
|
|
ewarn " and is writable only by v1.6 and earlier versions."
|
|
|
|
ewarn "- Saved UI state format has changed. Downgrading will reset window state, close"
|
|
|
|
ewarn " all tabs, and clear the navigation cache."
|
2021-08-03 12:21:56 +02:00
|
|
|
fi
|
2021-07-27 03:30:10 +02:00
|
|
|
}
|