summaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorsada <sada@FreeBSD.org>2001-03-10 19:17:30 +0000
committersada <sada@FreeBSD.org>2001-03-10 19:17:30 +0000
commit269a3d7764ff6637943377041f6d714b16b25eb1 (patch)
tree884f06a4ba228bb3a087cbdb371b1fa056786b76 /japanese
parent8852106c0e4a6a6001f9e9bed127c7b98a22ad78 (diff)
downloadFreeBSD-ports-269a3d7764ff6637943377041f6d714b16b25eb1.zip
FreeBSD-ports-269a3d7764ff6637943377041f6d714b16b25eb1.tar.gz
New ports import: japanese/linux-JM.
JM is Japanese translated manual pages by JM Project. WWW: http://www.linux.or.jp/JM/
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/linux-JM/Makefile87
-rw-r--r--japanese/linux-JM/distinfo17
-rw-r--r--japanese/linux-JM/files/Makefile9
-rw-r--r--japanese/linux-JM/files/Makefile.inc23
-rw-r--r--japanese/linux-JM/pkg-comment1
-rw-r--r--japanese/linux-JM/pkg-descr3
-rw-r--r--japanese/linux-JM/pkg-message4
-rw-r--r--japanese/linux-JM/scripts/configure47
9 files changed, 192 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index 24df64f..7195b93 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -142,6 +142,7 @@
SUBDIR += libjcode
SUBDIR += libjconv
SUBDIR += libslang
+ SUBDIR += linux-JM
SUBDIR += linux-netscape47-communicator
SUBDIR += linux-netscape47-navigator
SUBDIR += linux_locale
diff --git a/japanese/linux-JM/Makefile b/japanese/linux-JM/Makefile
new file mode 100644
index 0000000..53d0ba3
--- /dev/null
+++ b/japanese/linux-JM/Makefile
@@ -0,0 +1,87 @@
+# New ports collection makefile for: linux-JM japanized man pages
+# Date created: 21 Jan 2001
+# Whom: SADA Kenji <sada@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= linux-JM
+PORTVERSION= ${DATESPEC}
+CATEGORIES= japanese
+MASTER_SITES= http://www.linux.or.jp/JM/per-pkg/
+DISTFILES= ${DISTFILES_GNU} ${DISTFILES_OTHERS}
+
+MAINTAINER= sada@FreeBSD.org
+
+DIST_SUBDIR= ${PORTNAME}
+MANSECS= 1 3 5 8
+NO_MTREE= yes
+NO_WRKSUBDIR= yes
+PLIST= ${WRKDIR}/PLIST
+SCRIPTS_ENV+= MANSECS="${MANSECS}"
+
+DATESPEC= 20010215
+MANPAGES_GNU= bash gdbm
+MANPAGES_OTHERS= \
+ bzip2 \
+ cdparanoia cdrecord cvsup \
+ dhcpcd \
+ eject expect \
+ fetchmail fort77 \
+ mpg123 \
+ ncftp \
+ rdate \
+ smbfs sudo \
+ uudeview
+
+.include <bsd.port.pre.mk>
+
+DISTFILES_GNU!=\
+ ${ECHO} ${MANPAGES_GNU} \
+ | ${SED} 's/[^ ]*/man-pages-ja-GNU_&-${DATESPEC}.tar.gz/g'
+DISTFILES_OTHERS!=\
+ ${ECHO} ${MANPAGES_OTHERS} \
+ | ${SED} 's/[^ ]*/man-pages-ja-&-${DATESPEC}.tar.gz/g'
+
+post-extract:
+.for i in Makefile Makefile.inc
+ @${CP} ${FILESDIR}/$i ${WRKSRC}
+.endfor
+.for i in ${MANSECS}
+ @cd ${WRKSRC} \
+ && ${MKDIR} man$i \
+ && ${LN} man-*/man$i/*.$i man$i
+.endfor
+
+post-build:
+ @${ECHO} -n "" > ${PLIST}
+ @for sec in ${MANSECS}; do \
+ if [ -d ${WRKSRC}/man$${sec} ]; then \
+ cd ${WRKSRC}/man$${sec}; \
+ list=`${MAKE} pages-list`; \
+ set `${ECHO} $$list " "|${SED} 's/\.\([0-9]\) /.\1 \1 /g'`; \
+ while : ; do \
+ case $$# in \
+ 0) break;; \
+ [1]) ${ECHO} "can not happen" >/dev/tty; \
+ exit 1;; \
+ esac; \
+ ${ECHO} man/ja/man$$2/$$1.gz; shift 2; \
+ done; \
+ fi; \
+ done|sort|uniq >>${PLIST}
+.for sec in ${MANSECS}
+ @${ECHO} '@unexec rmdir %D/man/ja/man'${sec}' 2>/dev/null || true' \
+ >>${PLIST}
+.endfor
+ @${ECHO} '@unexec rmdir %D/man/ja 2>/dev/null || true' >>${PLIST}
+
+pre-install:
+.for sec in ${MANSECS}
+ @${MKDIR} ${PREFIX}/man/ja/man${sec}
+.endfor
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/japanese/linux-JM/distinfo b/japanese/linux-JM/distinfo
new file mode 100644
index 0000000..8be8855
--- /dev/null
+++ b/japanese/linux-JM/distinfo
@@ -0,0 +1,17 @@
+MD5 (linux-JM/man-pages-ja-GNU_bash-20010215.tar.gz) = 56e6a756390c6e69a4de77757bda01f4
+MD5 (linux-JM/man-pages-ja-GNU_gdbm-20010215.tar.gz) = b337507391c17aca42c717cda1a5b5d6
+MD5 (linux-JM/man-pages-ja-bzip2-20010215.tar.gz) = cd619ebeab53e1ad18fa3a18c76583db
+MD5 (linux-JM/man-pages-ja-cdparanoia-20010215.tar.gz) = 165e671ae393de0fc497f6412b8b9656
+MD5 (linux-JM/man-pages-ja-cdrecord-20010215.tar.gz) = 5dbeb7358f2103a6293fc91cde8265b8
+MD5 (linux-JM/man-pages-ja-cvsup-20010215.tar.gz) = 191c91e84e63417c09e309f2a03c954b
+MD5 (linux-JM/man-pages-ja-dhcpcd-20010215.tar.gz) = e326a5c1b51763d0d802134d477a542c
+MD5 (linux-JM/man-pages-ja-eject-20010215.tar.gz) = 762f152ad41c593c1786a307b78334f0
+MD5 (linux-JM/man-pages-ja-expect-20010215.tar.gz) = e487da74644938eb309f19bf4299ba95
+MD5 (linux-JM/man-pages-ja-fetchmail-20010215.tar.gz) = f11eb02d72407267babe43c6127cdc19
+MD5 (linux-JM/man-pages-ja-fort77-20010215.tar.gz) = 097e1594f017719aba198224a1b26c36
+MD5 (linux-JM/man-pages-ja-mpg123-20010215.tar.gz) = 4fa0ef23fbd87b773a4575d3824e2f0c
+MD5 (linux-JM/man-pages-ja-ncftp-20010215.tar.gz) = c68964f877a2121b8c64a45dbfe164b3
+MD5 (linux-JM/man-pages-ja-rdate-20010215.tar.gz) = 65509855e38764a41dcc0c4e616f5e6f
+MD5 (linux-JM/man-pages-ja-smbfs-20010215.tar.gz) = 58927b3273db7337082ca9149f5ade3b
+MD5 (linux-JM/man-pages-ja-sudo-20010215.tar.gz) = 656fe652dc0e56bdfdbc1021f31409c5
+MD5 (linux-JM/man-pages-ja-uudeview-20010215.tar.gz) = 22abc1c6282bf30b6b6478fa02cd6073
diff --git a/japanese/linux-JM/files/Makefile b/japanese/linux-JM/files/Makefile
new file mode 100644
index 0000000..9c9e00a
--- /dev/null
+++ b/japanese/linux-JM/files/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+BINDIR= ${PREFIX}
+SUBDIR= man1 man3 man5 man8
+
+makedb:
+ LANG=ja_JP.EUC jmakewhatis ${DESTDIR}${BINDIR}/man/ja/
+
+.include <bsd.subdir.mk>
diff --git a/japanese/linux-JM/files/Makefile.inc b/japanese/linux-JM/files/Makefile.inc
new file mode 100644
index 0000000..25a1038
--- /dev/null
+++ b/japanese/linux-JM/files/Makefile.inc
@@ -0,0 +1,23 @@
+PREFIX?= /usr/local
+MANDIR= ${PREFIX}/man/ja/man
+MROFF_CMD= /usr/local/bin/groff -Tnippon -man
+
+NOMLINKS= yes
+
+afterinstall:
+.if defined(MLINKS) && !empty(MLINKS)
+ @set `echo ${MLINKS} " " | sed 's/\.\([^.]\)\([^.]*\) /.\1\2 \1 /g'`; \
+ while : ; do \
+ case $$# in \
+ 0) break;; \
+ [123]) echo "warn: empty MLINK: $$1 $$2 $$3"; break;; \
+ esac; \
+ name=$$1; shift; sect=$$1; shift; \
+ l=${DESTDIR}${MANDIR}$${sect}${MANSUBDIR}/$$name; \
+ name=$$1; shift; sect=$$1; shift; \
+ t=${DESTDIR}${MANDIR}$${sect}${MANSUBDIR}/$$name; \
+ ${ECHO} $${t}${ZEXT} -\> $${l}${ZEXT}; \
+ rm -f $${t} $${t}${MCOMPRESS_EXT}; \
+ ln $${l}${ZEXT} $${t}${ZEXT}; \
+ done
+.endif
diff --git a/japanese/linux-JM/pkg-comment b/japanese/linux-JM/pkg-comment
new file mode 100644
index 0000000..2878fc7
--- /dev/null
+++ b/japanese/linux-JM/pkg-comment
@@ -0,0 +1 @@
+Japanese translated man pages by JM Project
diff --git a/japanese/linux-JM/pkg-descr b/japanese/linux-JM/pkg-descr
new file mode 100644
index 0000000..7094d47
--- /dev/null
+++ b/japanese/linux-JM/pkg-descr
@@ -0,0 +1,3 @@
+JM is Japanese translated manual pages by JM Project.
+
+WWW: http://www.linux.or.jp/JM/
diff --git a/japanese/linux-JM/pkg-message b/japanese/linux-JM/pkg-message
new file mode 100644
index 0000000..802462a
--- /dev/null
+++ b/japanese/linux-JM/pkg-message
@@ -0,0 +1,4 @@
+Copyright (C) 1999-2000 JM Project All rights reserved.
+
+Those man pages are presented by JM Project <http://www.linux.or.jp/JM/>.
+If you find problem, please send a report to <JM@linux.or.jp>.
diff --git a/japanese/linux-JM/scripts/configure b/japanese/linux-JM/scripts/configure
new file mode 100644
index 0000000..8da3fb5
--- /dev/null
+++ b/japanese/linux-JM/scripts/configure
@@ -0,0 +1,47 @@
+exec /usr/bin/perl -Sx "$0" ${1+"$@"}
+#! perl
+
+$WRKSRC = $ENV{'WRKSRC'};
+@MANSECS = split(/\s+/, $ENV{'MANSECS'});
+
+for $sec (@MANSECS) {
+ print "===> Creating Makefile in man${sec}\n";
+
+ chdir "$WRKSRC/man$sec";
+ @manpages = ();
+ @mlinks = ();
+
+ for $manpage (<*.${sec}>) {
+ open(F, $manpage) || die "cannot open $manpage: $!\n";
+ $_ = <F>;
+ chop;
+ close(F);
+ if (/^\.so /) {
+ ($real = $') =~ s!^man./!!;
+ push(@mlinks, "$real\t$manpage");
+ }
+ else {
+ push(@manpages, $manpage);
+ }
+ }
+
+ open(MAKEFILE, '>Makefile');
+
+ if (@manpages) {
+ print MAKEFILE join("\t\\\n\t", "MAN${sec} =", sort @manpages);
+ print MAKEFILE "\n\n";
+ }
+ if (@mlinks) {
+ print MAKEFILE join("\t\\\n\t", "MLINKS =", sort @mlinks);
+ print MAKEFILE "\n\n";
+ }
+
+ print MAKEFILE <<EOF;
+pages-list:
+ @\${ECHO} \${MAN${sec}} \${MLINKS}
+
+.include <bsd.prog.mk>
+EOF
+
+ close(MAKEFILE);
+}
OpenPOWER on IntegriCloud