sys-devel/gettext - 0.3.3 (lanodanOverlay)

Search

Install

Install this version:

emerge -a =sys-devel/gettext-0.3.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-devel/gettext-0.3.3

Or alternatively:

emerge --autounmask-write -a =sys-devel/gettext-0.3.3

Package Information

Description:
Stub and/or lightweight replacements of the GNU gettext suite
Homepage:
https://github.com/sabotage-linux/gettext-tiny
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.3.3 8 ~amd64 ~arm64 tiny
View Raw Ebuild
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs multilib-minimal

DESCRIPTION="Stub and/or lightweight replacements of the GNU gettext suite"
HOMEPAGE="https://github.com/sabotage-linux/gettext-tiny"
SRC_URI="https://github.com/sabotage-linux/gettext-tiny/archive/refs/tags/v${PV}.tar.gz -> gettext-tiny-${PV}.tar.gz"
S="${WORKDIR}/gettext-tiny-${PV}/"

LICENSE="MIT"
SLOT="tiny"
KEYWORDS="~amd64 ~arm64"
IUSE="shim"

RDEPEND="!<sys-devel/gettext-666:0"

DOCS=( README.md docs )

src_prepare() {
	default

	# 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
}

multilib_src_compile() {
	tc-export AR RANLIB CC

	emake
}

multilib_src_install() {
	local libintl_type

	if use shim ; then
		if use elibc_musl ; then
			libintl_type=MUSL
		else
			libintl_type=NOOP
		fi
	else
		# If they don't want the shim (e.g. glibc users who have their own libintl),
		# don't install a libintl and just install the binaries.
		libintl_type=NONE
	fi

	emake LIBINTL="${libintl_type}" DESTDIR="${D}" libdir="${EPREFIX}/usr/$(get_libdir)" install
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-devel/gettext | euse -E <flag> -p sys-devel/gettext | euse -D <flag> -p sys-devel/gettext

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

!<sys-devel/gettext-666:0

Manifest for 0.3.3

Type File Size Source URLs
DIST gettext-tiny-0.3.3.tar.gz 296129 bytes https://github.com/sabotage-linux/gettext-tiny/archive/refs/tags/v0.3.3.tar.gz