/[gentoo-x86]/app-i18n/man-pages-ja/man-pages-ja-20130215.ebuild
Gentoo

Contents of /app-i18n/man-pages-ja/man-pages-ja-20130215.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Thu Jan 30 20:28:15 2014 UTC (5 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +3 -3 lines
Add arm64 love.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/man-pages-ja/man-pages-ja-20130215.ebuild,v 1.11 2013/07/02 07:44:26 ago Exp $
4
5 EAPI="3"
6 GENTOO_MAN_P="portage-${PN}-20060415"
7
8 DESCRIPTION="A collection of manual pages translated into Japanese"
9 HOMEPAGE="http://linuxjm.sourceforge.jp/ http://www.gentoo.gr.jp/jpmain/translation.xml"
10 SRC_URI="http://linuxjm.sourceforge.jp/${P}.tar.gz
11 http://dev.gentoo.org/~hattya/distfiles/${GENTOO_MAN_P}.tar.gz"
12
13 LICENSE="GPL-2+ GPL-2 LGPL-2+ LGPL-2 BSD MIT ISC HPND FDL-1.1+ LDP-1 LDP-1a man-pages Texinfo-manual"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86"
16 IUSE=""
17
18 RDEPEND="virtual/man"
19
20 src_prepare() {
21
22 sed -i -e "/^\(man\|shadow\)/s:Y:N:" script/pkgs.list || die
23
24 # remove man pages that are provided by other packages.
25 # - sys-apps/shadow +nls
26 rm -f manual/*/man1/{chfn,chsh,newgrp,su,passwd,groups}.1 || die
27 rm -f manual/*/man8/{vigr,vipw}.8 || die
28 # - app-arch/rpm +nls
29 rm -f manual/rpm/man8/rpm*.8 || die
30
31 for f in manual/*/man8/ld{,-linux}.so.8 ; do
32 mv ${f} ${f/.so.8/.so.ja.8} || die
33 done
34 mv "${WORKDIR}"/${GENTOO_MAN_P}/portage/g-cpan.pl{,.ja}.1 || die
35 }
36
37 src_compile() {
38 :
39 }
40
41 src_install() {
42
43 local x y z pkg
44
45 for x in $(tac script/pkgs.list | grep -v '^[#].*'); do
46 if [[ -z "$pkg" ]]; then
47 pkg=$x
48 continue
49 fi
50
51 if [[ "$x" == "N" ]]; then
52 pkg=
53 continue
54 fi
55
56 einfo "install $pkg"
57
58 for y in $(ls -d manual/$pkg/man* 2>/dev/null); do
59 doman -i18n=ja $y/*
60 done
61
62 pkg=
63 done
64
65 dodoc README || die
66
67 cd "${WORKDIR}"/${GENTOO_MAN_P}
68
69 for x in *; do
70 if [ -d "$x" ]; then
71 einfo "install $x"
72
73 for z in $(for y in $x/*.[1-9]; do echo ${y##*.}; done | sort | uniq); do
74 doman -i18n=ja $x/*.$z
75 done
76 fi
77 done
78
79 newdoc ChangeLog ChangeLog.GentooJP || die
80
81 }
82
83 pkg_postinst() {
84
85 echo
86 elog "You need to set appropriate LANG variables to use"
87 elog "Japanese manpages."
88 elog "e.g."
89 elog "\tLANG=\"ja_JP.eucJP\""
90 elog "\texport LANG"
91 echo
92
93 }

  ViewVC Help
Powered by ViewVC 1.1.20