1 |
commit: 4093e35d5c5de76aae2b3cb37217bfcc16d15365 |
2 |
Author: Juanjie Xi <strangemk3 <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Apr 12 08:45:42 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 1 21:29:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4093e35d |
7 |
|
8 |
app-i18n/man-pages-ja: version bump to 20180315. |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/7950 |
11 |
|
12 |
app-i18n/man-pages-ja/Manifest | 1 + |
13 |
app-i18n/man-pages-ja/man-pages-ja-20180315.ebuild | 96 ++++++++++++++++++++++ |
14 |
2 files changed, 97 insertions(+) |
15 |
|
16 |
diff --git a/app-i18n/man-pages-ja/Manifest b/app-i18n/man-pages-ja/Manifest |
17 |
index 07dc6126659..9cf216089c1 100644 |
18 |
--- a/app-i18n/man-pages-ja/Manifest |
19 |
+++ b/app-i18n/man-pages-ja/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST man-pages-ja-20171215.tar.gz 4802604 BLAKE2B 24ded9e82f20df322fa7e96a05806f37f26796475f64e2b075a60b60762e4b331c96e82e0582896da323a643070779204fb50eb8e68156ba2e74a1a41649f10e SHA512 8cef4489e3210c2e30fd880c1639aaf314005c7f3987001677cd869924275cbf9df27fdc855cba9d887e5a185da72779167227a68a080d370b233bcd4eca4d30 |
22 |
+DIST man-pages-ja-20180315.tar.gz 4808885 BLAKE2B 961cb265d2a5034368ac5766555440019e3f80710644f9ca6389e9932391f806ab37803b198d4f3619ad2a3fb34a91092b7c50c8f5c69dd1a909268c739fb931 SHA512 5cc8d247f24aeeb5f9ef9b89f214f7d74cf3d1db8f46140cb307f8398bde785c13041ec2947173d3a79121285afb3a5b383d3bff972eba017e88d17d722c173a |
23 |
DIST portage-man-pages-ja-20060415.tar.gz 67347 BLAKE2B 77be89a79be1d4fc3c09cd7c74cd8ccfd18649cdf0121daec008b21114c5a77618a88f4abed266599b944aa5bf11fe55c5b6e89fbba51ebe2a548eb85d9a2c6d SHA512 37364cdcb27b460663bdae31fea1ac653317ba4d928a5325c51814eb1677d7d9fb9bcc55cf64d63a8e6daaefa34d8604e0efe3582308957397cad31325a6eaad |
24 |
|
25 |
diff --git a/app-i18n/man-pages-ja/man-pages-ja-20180315.ebuild b/app-i18n/man-pages-ja/man-pages-ja-20180315.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..9f26bd6e50f |
28 |
--- /dev/null |
29 |
+++ b/app-i18n/man-pages-ja/man-pages-ja-20180315.ebuild |
30 |
@@ -0,0 +1,96 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="6" |
35 |
+GENTOO_MAN_P="portage-${PN}-20060415" |
36 |
+ |
37 |
+DESCRIPTION="A collection of manual pages translated into Japanese" |
38 |
+HOMEPAGE="http://linuxjm.osdn.jp/ https://github.com/hattya/portage-man-pages-ja" |
39 |
+SRC_URI="http://linuxjm.osdn.jp/${P}.tar.gz |
40 |
+ https://dev.gentoo.org/~hattya/distfiles/${GENTOO_MAN_P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2+ GPL-2 LGPL-2+ LGPL-2 BSD MIT ISC HPND FDL-1.1+ LDP-1 LDP-1a man-pages Texinfo-manual" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
45 |
+IUSE="" |
46 |
+ |
47 |
+RDEPEND="virtual/man" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ |
51 |
+ sed -i -e "/^\(man\|shadow\)/s:Y:N:" script/pkgs.list || die |
52 |
+ |
53 |
+ # remove man pages that are provided by other packages. |
54 |
+ # - sys-apps/shadow +nls |
55 |
+ rm -f manual/*/man1/{chfn,chsh,newgrp,su,passwd,groups}.1 || die |
56 |
+ rm -f manual/*/man8/{vigr,vipw}.8 || die |
57 |
+ # - app-arch/rpm +nls |
58 |
+ rm -rf manual/rpm || die |
59 |
+ |
60 |
+ for f in manual/*/man8/ld{,-linux}.so.8 ; do |
61 |
+ mv ${f} ${f/.so.8/.so.ja.8} || die |
62 |
+ done |
63 |
+ mv "${WORKDIR}"/${GENTOO_MAN_P}/portage/g-cpan.pl{,.ja}.1 || die |
64 |
+ |
65 |
+ eapply_user |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ : |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ |
74 |
+ local x y z pkg |
75 |
+ |
76 |
+ for x in $(tac script/pkgs.list | grep -v '^[#].*'); do |
77 |
+ if [[ -z "$pkg" ]]; then |
78 |
+ pkg=$x |
79 |
+ continue |
80 |
+ fi |
81 |
+ |
82 |
+ if [[ "$x" == "N" ]]; then |
83 |
+ pkg= |
84 |
+ continue |
85 |
+ fi |
86 |
+ |
87 |
+ einfo "install $pkg" |
88 |
+ |
89 |
+ for y in $(ls -d manual/$pkg/man* 2>/dev/null); do |
90 |
+ doman -i18n=ja $y/* |
91 |
+ done |
92 |
+ |
93 |
+ pkg= |
94 |
+ done |
95 |
+ |
96 |
+ dodoc README |
97 |
+ |
98 |
+ cd "${WORKDIR}"/${GENTOO_MAN_P} |
99 |
+ |
100 |
+ for x in *; do |
101 |
+ if [ -d "$x" ]; then |
102 |
+ einfo "install $x" |
103 |
+ |
104 |
+ for z in $(for y in $x/*.[1-9]; do echo ${y##*.}; done | sort | uniq); do |
105 |
+ doman -i18n=ja $x/*.$z |
106 |
+ done |
107 |
+ fi |
108 |
+ done |
109 |
+ |
110 |
+ newdoc ChangeLog ChangeLog.GentooJP |
111 |
+ |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ |
116 |
+ echo |
117 |
+ elog "JM (Japanese Manual) project has used utf8 encoding" |
118 |
+ elog "since 2012/04." |
119 |
+ elog "You need to set appropriate LANG variables to use" |
120 |
+ elog "Japanese manpages." |
121 |
+ elog "e.g." |
122 |
+ elog "\tLANG=\"ja_JP.utf8\"" |
123 |
+ elog "\texport LANG" |
124 |
+ echo |
125 |
+ |
126 |
+} |