logo

overlay

My own overlay for experimentations, use with caution, no support is provided
commit: 481eb56aa2a58db59ab376684e68e74f54861d5f
parent: 9300b8e118fb0bfffbeb64e562087685fcdea4cb
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 14 Feb 2020 17:58:09 +0100

sys-libs/gcompat: Add libucontext support

Diffstat:

Msys-libs/gcompat/gcompat-0.4.0.ebuild15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/sys-libs/gcompat/gcompat-0.4.0.ebuild b/sys-libs/gcompat/gcompat-0.4.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2018 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Copyright 2018-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me> # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -9,11 +9,14 @@ DESCRIPTION="The GNU C Library compatibility layer for musl" HOMEPAGE="https://code.foxkit.us/adelie/gcompat" KEYWORDS="~amd64 ~x86" LICENSE="UoI-NCSA" -IUSE="obstack" -SRC_URI="https://distfiles.adelielinux.org/source/gcompat/${P}.tar.xz" +IUSE="libucontext obstack" +SRC_URI="https://distfiles.adelielinux.org/source/${PN}/${P}.tar.xz" SLOT="0" -DEPEND="obstack? ( sys-libs/obstack-standalone )" +DEPEND=" + libucontext? ( sys-libs/libucontext ) + obstack? ( sys-libs/obstack-standalone ) +" RDEPEND="${DEPEND}" get_loader_name() { @@ -38,7 +41,8 @@ src_compile() { emake \ LINKER_PATH="$(get_linker_path)" \ LOADER_NAME="$(get_loader_name)" \ - WITH_OBSTACK="$(usex obstack 'obstack-standalone' 'no')" + WITH_OBSTACK="$(usex obstack 'obstack-standalone' 'no')" \ + $(usex libucontext WITH_LIBUCONTEXT=yes '') } src_install() { @@ -46,6 +50,7 @@ src_install() { LINKER_PATH="$(get_linker_path)" \ LOADER_NAME="$(get_loader_name)" \ WITH_OBSTACK="$(usex obstack 'obstack-standalone' 'no')" \ + $(usex libucontext WITH_LIBUCONTEXT=yes '') \ DESTDIR="${D}" \ install }