logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: cfb327aaf17b2be753dc1d051795e8c106208cd6
parent c3e78600326e225915beae4f4024c4081c5e8c69
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 12 Apr 2024 22:12:24 +0200

sys-devel/gettext: Add multilib support

Diffstat:

Msys-devel/gettext/gettext-0.3.2-r3.ebuild10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/sys-devel/gettext/gettext-0.3.2-r3.ebuild b/sys-devel/gettext/gettext-0.3.2-r3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit toolchain-funcs +inherit toolchain-funcs multilib-minimal DESCRIPTION="Stub and/or lightweight replacements of the GNU gettext suite" HOMEPAGE="https://github.com/sabotage-linux/gettext-tiny" @@ -30,15 +30,17 @@ src_prepare() { # Needs to be set early, otherwise scripts like autopoint have a wrong prefix value sed -i "s;^prefix=.*;prefix=${EPREFIX}/usr;" Makefile || die + + multilib_copy_sources } -src_compile() { +multilib_src_compile() { tc-export AR RANLIB CC emake } -src_install() { +multilib_src_install() { local libintl_type if use shim ; then @@ -53,5 +55,5 @@ src_install() { libintl_type=NONE fi - emake LIBINTL="${libintl_type}" DESTDIR="${D}" install + emake LIBINTL="${libintl_type}" DESTDIR="${D}" libdir="${EPREFIX}/usr/$(get_libdir)" install }