From 3d402fe065f28cf7252d2b3e706eb4f0687784b4 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Tue, 23 Nov 2021 14:34:24 +0500 Subject: [PATCH] net-misc/lagrange: add 1.8.3, drop 1.7.3 Signed-off-by: Anna (cybertailor) Vyalkova --- net-misc/lagrange/Manifest | 2 +- net-misc/lagrange/lagrange-1.7.3.ebuild | 64 ------------------------- net-misc/lagrange/lagrange-1.8.3.ebuild | 50 +++++++++++++++++++ 3 files changed, 51 insertions(+), 65 deletions(-) delete mode 100644 net-misc/lagrange/lagrange-1.7.3.ebuild create mode 100644 net-misc/lagrange/lagrange-1.8.3.ebuild diff --git a/net-misc/lagrange/Manifest b/net-misc/lagrange/Manifest index 0ecaaa7dcc..8d1faf9331 100644 --- a/net-misc/lagrange/Manifest +++ b/net-misc/lagrange/Manifest @@ -1,2 +1,2 @@ -DIST lagrange-1.7.3.tar.gz 22816390 BLAKE2B 3574db3b231872b5b935a9b4a7c544631dc58da3a5e6cd296347a29a76d807edbe5c5378ae81175ba4ff59f7225d4f2190fd8b82ef46bcea1515a1411a45dd1d SHA512 ee5261769aab6db63a7e70d21376682ed1946e49ad3b6483a4752ad37f13922561f3a16413dce76b8f928849f50e911aac6f906c1ac750da0d45f1f8dc94e5e0 DIST lagrange-1.8.1.tar.gz 8531160 BLAKE2B 43998692a85046efc3cbcc4fb1ae01d30e8e17c0429d2920f79a2877f5fb87bca0241b798b5f59d6fbef1e26dec122db42811a71351588d9ad27fbb82ddf5018 SHA512 0b80a8f606036fa5aeb126814dfb542a82bb71d7b563e43380c1be9ae74d9b950d06cbd866edf9decd253d25ffa6af3fbd769b8a2621f9aff246c87cb76627c3 +DIST lagrange-1.8.3.tar.gz 8535767 BLAKE2B 73f51022335a625a12b0d5379f76deccb0d06af05474ded5ede193dd54a598d14cdf1b02bf7db5485f185d81a40c47af847996d86838b78b029b571657173b4c SHA512 807195b4edc3ed7e5c1576a7c33de79346d21924a159d6552a026437872f4a41a7827a031711bfeb386a3405d4c387ed0fe4705f05ca835f8733acaf5d47c826 diff --git a/net-misc/lagrange/lagrange-1.7.3.ebuild b/net-misc/lagrange/lagrange-1.7.3.ebuild deleted file mode 100644 index 71eb49d1a9..0000000000 --- a/net-misc/lagrange/lagrange-1.7.3.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -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" -IUSE="cpu_flags_x86_sse4_1 +fribidi +harfbuzz mp3 webp" - -DEPEND=" - dev-libs/libpcre:3 - dev-libs/libunistring:= - dev-libs/openssl:= - media-libs/libsdl2[sound(+),video(+)] - sys-libs/zlib:= - fribidi? ( dev-libs/fribidi ) - harfbuzz? ( media-libs/harfbuzz:=[truetype(+)] ) - mp3? ( media-sound/mpg123 ) - webp? ( media-libs/libwebp:= ) -" -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) - -DENABLE_WEBP=$(usex webp) - - # 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 -} - -pkg_postinst() { - xdg_pkg_postinst - - if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 1.7.0 ; then - ewarn "Lagrange 1.7 introduces some backwards incompatible changes:" - ewarn - 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." - fi -} diff --git a/net-misc/lagrange/lagrange-1.8.3.ebuild b/net-misc/lagrange/lagrange-1.8.3.ebuild new file mode 100644 index 0000000000..47e8b11fd3 --- /dev/null +++ b/net-misc/lagrange/lagrange-1.8.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 CC-BY-SA-4.0 OFL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+fribidi +harfbuzz mp3 webp" + +DEPEND=" + dev-libs/tfdn:=[ssl] + media-libs/libsdl2[sound(+),video(+)] + fribidi? ( dev-libs/fribidi ) + harfbuzz? ( media-libs/harfbuzz:=[truetype(+)] ) + mp3? ( media-sound/mpg123 ) + webp? ( media-libs/libwebp:= ) +" +RDEPEND="${DEPEND}" +BDEPEND="app-arch/zip" + +src_prepare() { + # checked by Depends.cmake + rm -r lib/the_Foundation/CMakeLists.txt || die + + cmake_src_prepare +} + +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) + -DENABLE_WEBP=$(usex webp) + + # never build bundled libs + -DENABLE_FRIBIDI_BUILD=OFF + -DENABLE_HARFBUZZ_MINIMAL=OFF + ) + + cmake_src_configure +}