logo

overlay

My (experimental) gentoo overlay
commit: 99ec28e28de8d7a257f2be4f2240d97d05a04086
parent: 47601b172fd9a8ea4ee6876f5464bbb4ef7e8085
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  4 May 2019 11:40:43 +0200

sys-libs/gcompat: Add obstack support

Diffstat:

Msys-libs/gcompat/gcompat-0.4.0.ebuild8+++++++-
Msys-libs/gcompat/metadata.xml3+++
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/sys-libs/gcompat/gcompat-0.4.0.ebuild b/sys-libs/gcompat/gcompat-0.4.0.ebuild @@ -9,9 +9,13 @@ DESCRIPTION="The GNU C Library compatibility layer for musl" HOMEPAGE="https://code.foxkit.us/adelie/gcompat" KEYWORDS="~x86 ~amd64" LICENSE="UoI-NCSA" +IUSE="obstack" SRC_URI="https://distfiles.adelielinux.org/source/gcompat/${P}.tar.xz" SLOT="0" +DEPEND="obstack? ( sys-libs/obstack-standalone )" +RDEPEND="${DEPEND}" + get_loader_name() { # Loosely based on Adélie APKBUILD # TODO: Check against glibc’s logic @@ -33,13 +37,15 @@ get_linker_path() { src_compile() { emake \ LINKER_PATH="$(get_linker_path)" \ - LOADER_NAME="$(get_loader_name)" + LOADER_NAME="$(get_loader_name)" \ + WITH_OBSTACK="$(usex obstack 'obstack-standalone' 'no')" } src_install() { emake \ LINKER_PATH="$(get_linker_path)" \ LOADER_NAME="$(get_loader_name)" \ + WITH_OBSTACK="$(usex obstack 'obstack-standalone' 'no')" \ DESTDIR="${D}" \ install } diff --git a/sys-libs/gcompat/metadata.xml b/sys-libs/gcompat/metadata.xml @@ -5,4 +5,7 @@ <email>contact@hacktivis.me</email> <name>Haelwenn (lanodan) Monnier</name> </maintainer> + <use> + <flag name="obstack">Use <pkg>sys-libs/obstack-standalone</pkg> for greater compatibility</flag> + </use> </pkgmetadata>