commit: 61babd5e0674b75990467c96459298c7d191b886 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> AuthorDate: Wed Mar 11 12:51:43 2026 +0000 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> CommitDate: Wed Mar 11 12:51:43 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61babd5e
app-i18n/man-pages-ja: new upstream release Closes: https://bugs.gentoo.org/943689 Closes: https://bugs.gentoo.org/944022 Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> app-i18n/man-pages-ja/Manifest | 1 + app-i18n/man-pages-ja/man-pages-ja-20260115.ebuild | 58 ++++++++++++++++++++++ app-i18n/man-pages-ja/metadata.xml | 32 ++++++------ 3 files changed, 75 insertions(+), 16 deletions(-) diff --git a/app-i18n/man-pages-ja/Manifest b/app-i18n/man-pages-ja/Manifest index e79efe347a74..bb6a94612f14 100644 --- a/app-i18n/man-pages-ja/Manifest +++ b/app-i18n/man-pages-ja/Manifest @@ -1,2 +1,3 @@ DIST man-pages-ja-20180315.tar.gz 4808885 BLAKE2B 961cb265d2a5034368ac5766555440019e3f80710644f9ca6389e9932391f806ab37803b198d4f3619ad2a3fb34a91092b7c50c8f5c69dd1a909268c739fb931 SHA512 5cc8d247f24aeeb5f9ef9b89f214f7d74cf3d1db8f46140cb307f8398bde785c13041ec2947173d3a79121285afb3a5b383d3bff972eba017e88d17d722c173a +DIST man-pages-ja-20260115.tar.gz 5048896 BLAKE2B 36d70ad9c3a76f9d948e70d5532841cb965d5ae56bda136b29c883135a38e71e0d6e592b7a417b26518460c0d7b80a17b0fb0bb5f35d69356167a75c26a56c13 SHA512 4518cf27e6dec2496b6b9f82c8aae4ab4873071f875985e07e23d192d5fb61088b6fe2ba171cbfc94d3868836a15da72c897f04f589fa3a822be3dc05e35e95a DIST portage-man-pages-ja-20060415.tar.gz 67347 BLAKE2B 77be89a79be1d4fc3c09cd7c74cd8ccfd18649cdf0121daec008b21114c5a77618a88f4abed266599b944aa5bf11fe55c5b6e89fbba51ebe2a548eb85d9a2c6d SHA512 37364cdcb27b460663bdae31fea1ac653317ba4d928a5325c51814eb1677d7d9fb9bcc55cf64d63a8e6daaefa34d8604e0efe3582308957397cad31325a6eaad diff --git a/app-i18n/man-pages-ja/man-pages-ja-20260115.ebuild b/app-i18n/man-pages-ja/man-pages-ja-20260115.ebuild new file mode 100644 index 000000000000..526217120979 --- /dev/null +++ b/app-i18n/man-pages-ja/man-pages-ja-20260115.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +DESCRIPTION="Collection of manual pages translated into Japanese" +HOMEPAGE="https://linuxjm.sourceforge.io/" +SRC_URI="https://github.com/linux-jm/manual/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="Apache-2.0 GPL-2+ GPL-2 GPL-3+ LGPL-2 LGPL-2+ 0BSD BSD BSD-2 MIT ISC HPND FDL-1.1+ LDP-1 LDP-1a man-pages Texinfo-manual" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND="virtual/man" + +src_prepare() { + local -A pkgs + # remove man pages that are provided by other packages. + # - sys-apps/man-db +nls + pkgs["man"]= + # - sys-apps/shadow +nls + pkgs["shadow"]= + pkgs["util-linux"]="chfn chsh newgrp vigr vipw" + # - app-arch/rpm +nls + pkgs["rpm"]= + + local pkg regex + for pkg in "${!pkgs[@]}"; do + if [[ -z ${pkgs[${pkg}]} ]]; then + regex+="${pkg}\\|" + else + sed -i "/:\(${pkgs[${pkg}]// /\\|}\):/d" manual/${pkg}/translation_list || die + fi + done + sed -i "/^\(${regex%\\|}\)/s/Y$/N/" script/pkgs.list || die + default +} + +src_compile() { + : +} + +src_install() { + local pkg ans tl man + local _ name sec + while read -r pkg ans; do + tl="manual/${pkg}/translation_list" + [[ ${ans} == "N" || ! -f ${tl} ]] && continue + + einfo "install ${pkg}" + man=() + while IFS=: read -r _ _ _ _ name sec _; do + man+=( "manual/${pkg}/man${sec}/${name}.${sec}" ) + done < <(sed "/^\(\xc3\x97\|\xe2\x96\xb2\|\xe2\x96\xb3\|\xe2\x97\x8f\|\xe2\x80\xbb\|$\)/d" ${tl}) + doman -i18n=ja "${man[@]}" + done < <(tac script/pkgs.list | grep -v "^#") + einstalldocs +} diff --git a/app-i18n/man-pages-ja/metadata.xml b/app-i18n/man-pages-ja/metadata.xml index f65126ea5b95..b089456457f9 100644 --- a/app-i18n/man-pages-ja/metadata.xml +++ b/app-i18n/man-pages-ja/metadata.xml @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="project"> - <email>[email protected]</email> - <name>Cjk</name> - </maintainer> - <longdescription> - Japanese translation of portage/gentoolkit man pages are contributed by - Gentoo Linux User Group Japan and maintained by that mailing list - ([email protected]). All questions and comments should be - posted to that list with regard to man pages translation for - portage/gentoolkit. - </longdescription> - <stabilize-allarches/> - <upstream> - <remote-id type="osdn">linuxjm</remote-id> - <remote-id type="github">hattya/portage-man-pages-ja</remote-id> - </upstream> + <maintainer type="project"> + <email>[email protected]</email> + <name>Cjk</name> + </maintainer> + <longdescription> + Japanese translation of portage/gentoolkit man pages are contributed by + Gentoo Linux User Group Japan and maintained by that mailing list + ([email protected]). All questions and comments should be + posted to that list with regard to man pages translation for + portage/gentoolkit. + </longdescription> + <stabilize-allarches/> + <upstream> + <remote-id type="sourceforge">linuxjm</remote-id> + <remote-id type="github">hattya/portage-man-pages-ja</remote-id> + </upstream> </pkgmetadata>
