diff options
author | B. Watson <yalhcru@gmail.com> | 2014-08-28 06:23:53 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-08-30 14:19:22 +0700 |
commit | 6f703baaf6e1258e0397f10aace3993e4e3e65e5 (patch) | |
tree | 321878c418209cb84d9a6dcfce8a8adc5c29dcf0 | |
parent | ea2c90a80ff481d03375e54bd7535029aa222598 (diff) | |
download | slackbuilds-6f703baaf6e1258e0397f10aace3993e4e3e65e5.tar.gz |
system/man-pages-ja: Added (Japanese language man pages).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | system/man-pages-ja/README | 34 | ||||
-rw-r--r-- | system/man-pages-ja/man-pages-ja.SlackBuild | 79 | ||||
-rw-r--r-- | system/man-pages-ja/man-pages-ja.info | 10 | ||||
-rw-r--r-- | system/man-pages-ja/noninteractive_install.diff | 126 | ||||
-rw-r--r-- | system/man-pages-ja/slack-desc | 19 |
5 files changed, 268 insertions, 0 deletions
diff --git a/system/man-pages-ja/README b/system/man-pages-ja/README new file mode 100644 index 0000000000..53341f3c8c --- /dev/null +++ b/system/man-pages-ja/README @@ -0,0 +1,34 @@ +man-pages-ja (Japanese language man pages) + +日本語のマニュアルページ. + +Notes: + +- Script author doesn't speak or read Japanese. If there are problems with + the contents of the man pages themselves, contact the upstream author or + join the linuxjm-discuss@lists.sourceforge.jp mailing list. + +- Upstream appears to update the source on the 15th of every month. I won't + have time to update this SlackBuild every month, but most likely you can + use the updated versions like so: + + # VERSION=20160115 ./man-pages-ja.SlackBuild + + If this doesn't work, let me know and I'll update the build script. + +- Don't forget to source /etc/profile.d/man-db.sh or log out and back + in after installing man-db. Slackware's standard man can't handle these. + +- I tested with LANG=ja_JP.UTF-8 in the environment. You can set this + system-wide in /etc/profile.d/lang.sh, or per-user in e.g. .bash_profile. + +- In X, use a unicode-capable terminal (urxvt, xcfe4-terminal, or even + xterm with appropriate .Xdefaults) with a font that has glyphs for + Japanese, such as "WenQuanYi Zen Hei Mono". + +- I suspect it would also work to use LANG=ja_JP.eucjp if a eucjp terminal + is used, but don't know how to test this. + +- I have no idea how (or if) it's possible to use a Japanese font in the + Linux console. If anyone has any information, contact me at the email + address in the .info file and I'll add it to this README. diff --git a/system/man-pages-ja/man-pages-ja.SlackBuild b/system/man-pages-ja/man-pages-ja.SlackBuild new file mode 100644 index 0000000000..30e75e9a1e --- /dev/null +++ b/system/man-pages-ja/man-pages-ja.SlackBuild @@ -0,0 +1,79 @@ +#!/bin/sh + +# Slackware build script for man-pages-ja + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=man-pages-ja +VERSION=${VERSION:-20140815} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# I'm almost certain this is correct, based on how other distros do it. +# The other possibility was "ja.UTF-8". A /usr/man/jp dir does exist on +# Slackware (containing cdparanoia's man pages), but it shouldn't. +MANLANG=ja + +# this thing uses an interactive script with lots of prompts, not +# suited to automated builds. the patch just makes the script read +# from the environment instead of stdin, and gets rid of the 120 or +# so prompts for the sub-package conflicts (just taking the default). + +patch -p1 < $CWD/noninteractive_install.diff +MANROOT=$PKG/usr/man/$MANLANG make config +make install + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README_SBo.txt +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/man-pages-ja/man-pages-ja.info b/system/man-pages-ja/man-pages-ja.info new file mode 100644 index 0000000000..faef7225b3 --- /dev/null +++ b/system/man-pages-ja/man-pages-ja.info @@ -0,0 +1,10 @@ +PRGNAM="man-pages-ja" +VERSION="20140815" +HOMEPAGE="http://linuxjm.sourceforge.jp/" +DOWNLOAD="http://linuxjm.sourceforge.jp/man-pages-ja-20140815.tar.gz" +MD5SUM="f81250198f28680308e2b0a403dbbd94" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="man-db" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/system/man-pages-ja/noninteractive_install.diff b/system/man-pages-ja/noninteractive_install.diff new file mode 100644 index 0000000000..5593e1a225 --- /dev/null +++ b/system/man-pages-ja/noninteractive_install.diff @@ -0,0 +1,126 @@ +diff -Naur man-pages-ja-20140715/script/configure.perl man-pages-ja-20140715.patched/script/configure.perl +--- man-pages-ja-20140715/script/configure.perl 2010-11-09 13:14:23.000000000 -0500 ++++ man-pages-ja-20140715.patched/script/configure.perl 2014-08-09 15:55:43.000000000 -0400 +@@ -14,49 +14,10 @@ + my @pack_method = ("none", "gzip", "bzip2", "compress"); + my $podsec = "1"; + +-# +-# インストール情報 +-# +-print "[INSTALLATION INFORMATION]\n"; +-print "(just Return if you accept default)\n"; +- +-do{ +- $MANROOT = "/usr/share/man/$LANG"; +- print " Install directory [$MANROOT] ?: "; +- $ans = <STDIN>; chomp $ans; +- if ($ans ne "") {$MANROOT = $ans;} +- +- print " compress manual with..\n"; +- for my $i (0 .. $#pack_method){ +- print " $i: $pack_method[$i]\n"; +- } +- print " select [0..$#pack_method] : "; +- $ans = <STDIN>; chomp $ans; +- if ($ans eq "") {$ans = 0;} +- if ($ans < 0 || $ans > $#pack_method) {$PACK = $pack_method[0]} +- else {$PACK = $pack_method[$ans]} +- +- $OWNER = "root"; +- print " uname of page owner [$OWNER] ?: "; +- $ans = <STDIN>; chomp $ans; +- if ($ans ne "") {$OWNER = $ans;} +- +- $GROUP = "root"; +- print " group of page owner [$GROUP] ?: "; +- $ans = <STDIN>; chomp $ans; +- if ($ans ne "") {$GROUP = $ans;} +- +- print "\n"; +- print " Directory: $MANROOT\n"; +- print " Compression: $PACK\n"; +- print " Page uid/gid: $OWNER/$GROUP\n"; +- print "\n"; +- do { +- print "All OK? (Yes, [C]ontinue / No, [R]eselect) : "; +- $ans = <STDIN>; chomp $ans; +- } until ($ans =~ /^[yYnNcCrR]/); +- +-} until ($ans =~ /^[yYcC]/); ++$MANROOT = $ENV{MANROOT}; ++$PACK = "gzip"; ++$OWNER = "root"; ++$GROUP = "root"; + + # + # パッケージデータの読み込み (ファイルの先にあるほうが +@@ -80,30 +41,7 @@ + } + close(PL); + +-# +-# インストールするパッケージの選択 +-# インストールしない奴は優先度 $pw{$name} を -1 にする。 +-# +-print "\n\n"; +-print "[INSTALL PACKAGE SELECTION]\n"; +-print "(just Return if you accept default choice)\n"; +-print "(you can change the default by editing script/pkgs.list)\n"; +- +-do{ +- for $i (0 .. $#pl){ +- my $qstr = ($main::pw{$pl[$i]} > -1) ? "[Y/n]" : "[y/N]"; +- printf " [%2d/%2d] %-15s %s ?: ", $i, $#pl, $pl[$i], $qstr; +- $ans = <STDIN>; chomp $ans; +- if ($ans =~ /[Yy].*/) { $main::pw{$pl[$i]} = $i;} +- if ($ans =~ /[Nn].*/) { $main::pw{$pl[$i]} = -1;} +- } +- +- do { +- print "All OK? (Yes, [C]ontinue / No, [R]eselect) : "; +- $ans = <STDIN>; chomp $ans; +- } until ($ans =~ /[yYnNcCrR].*/); +- +-} until ($ans =~ /^[yYcC]/); ++for $i (0 .. $#pl) { $main::pw{$pl[$i]} = $i; } + + # + # translation_list からインストールすべきファイルを取得. +@@ -147,7 +85,7 @@ + print "[RESOLVE CONFLICTS]\n"; + print "(just Return if you accept item 0)\n"; + +-do{ ++#do{ + my $i = 0; + foreach my $key (sort keys %ppage) { + if (@{$ppage{$key}} < 2) { next; } +@@ -165,7 +103,8 @@ + } + print " Which to install? (0..$cf) : "; + +- $ans = <STDIN>; chomp $ans; ++# $ans = <STDIN>; chomp $ans; ++ $ans = 0; + if ($ans eq "") {$ans = 0}; + if ($ans < 0 || $ans > $cf) { $ans = 0 }; + +@@ -178,12 +117,12 @@ + $i++; + } + +- do { +- print "All OK? (Yes, [C]ontinue / No, [R]eselect) : "; +- $ans = <STDIN>; chomp $ans; +- } until ($ans =~ /^[yYnNcCrR]/); ++# do { ++# print "All OK? (Yes, [C]ontinue / No, [R]eselect) : "; ++# $ans = <STDIN>; chomp $ans; ++# } until ($ans =~ /^[yYnNcCrR]/); + +-} until ($ans =~ /^[yYcC]/); ++#} until ($ans =~ /^[yYcC]/); + + # + # インストールスクリプトを作る。 diff --git a/system/man-pages-ja/slack-desc b/system/man-pages-ja/slack-desc new file mode 100644 index 0000000000..8026cd4e6b --- /dev/null +++ b/system/man-pages-ja/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +man-pages-ja: man-pages-ja (Japanese language man pages) +man-pages-ja: +man-pages-ja: 日本語のマニュアルページ. +man-pages-ja: +man-pages-ja: +man-pages-ja: +man-pages-ja: +man-pages-ja: +man-pages-ja: +man-pages-ja: +man-pages-ja: |