diff options
Diffstat (limited to 'app-i18n/man-pages-l10n/man-pages-l10n-4.25.1.ebuild')
-rw-r--r-- | app-i18n/man-pages-l10n/man-pages-l10n-4.25.1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app-i18n/man-pages-l10n/man-pages-l10n-4.25.1.ebuild b/app-i18n/man-pages-l10n/man-pages-l10n-4.25.1.ebuild new file mode 100644 index 000000000000..0e2d425a3329 --- /dev/null +++ b/app-i18n/man-pages-l10n/man-pages-l10n-4.25.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A somewhat comprehensive collection of man page translations" +HOMEPAGE="https://manpages-l10n-team.pages.debian.net/manpages-l10n/" +SRC_URI="https://salsa.debian.org/manpages-l10n-team/${PN/-}/-/archive/${PV}/${P/-}.tar.bz2" +S="${WORKDIR}/${P/-}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +# fa omitted because of build failures (patches are welcome!) +MY_L10N=(cs da de el es fi fr hu id it ko mk nb nl pl pt-BR ro ru sr sv uk vi) +IUSE="${MY_L10N[@]/#/l10n_}" +# require at least one language lest we install an empty package +# pkgcheck warning: RequiredUseDefaults +REQUIRED_USE="|| ( ${MY_L10N[@]/#/l10n_} )" + +RDEPEND="virtual/man + l10n_it? ( !app-i18n/man-pages-it ) + l10n_ru? ( !app-i18n/man-pages-ru )" + +BDEPEND="app-text/po4a + dev-lang/perl" + +DOCS=(AUTHORS.md CHANGES.md CONTRIBUTING.md COPYRIGHT.md README.md) + +src_prepare() { + default + sed -i -e "/^SUBDIRS/s/=.*/= ${L10N//-/_}/" po/Makefile.{am,in} || die + + # some packages have their own translations + local f noinst_manpages=( + # sys-apps/shadow + groups.1 + su.1 + # sys-apps/sysvinit + last.1 + mesg.1 + mountpoint.1 + utmpdump.1 + wall.1 + killall5.8 + runlevel.8 + shutdown.8 + sulogin.8 + ) + + for f in "${noinst_manpages[@]}"; do + rm po/*/"man${f##*.}/${f}.po" || die + done +} + +src_configure() { + econf --enable-compression=none +} |