blob: e8d03a31464bf9947bf997f20eb7937b34efc21d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# New ports collection makefile for: Japanese man documents
# Version required: 2.2
# Date created: 6 January 1997
# Whom: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
#
# $Id: Makefile,v 1.23 1999/02/12 14:42:43 kuriyama Exp $
#
DISTNAME= jpman-3.2
PKGNAME= ja-man-doc-3.2
CATEGORIES= japanese
DISTFILES= # none
MAINTAINER= horikawa@jp.FreeBSD.org
PREFIX?= /usr
NO_CHECKSUM= yes
NO_MTREE= yes
WRKSRC= ${WRKDIR}/man
PLIST= ${WRKDIR}/PLIST
MANSECS= 1 5 6 7 8
JAMANDIR?= /usr/opt/doc/ja/man
do-extract:
@if [ ! -d ${JAMANDIR} ]; then \
${ECHO} "You need the Japanese manual source in"; \
${ECHO} "\"${JAMANDIR}\""; \
${ECHO} "in order to build this port."; \
exit 1; \
fi
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKSRC}
@(cd ${JAMANDIR}; ${CP} Makefile Makefile.inc ${WRKSRC})
.for sec in ${MANSECS}
@if [ -d ${JAMANDIR}/man${sec} ]; then \
${CP} -R ${JAMANDIR}/man${sec} ${WRKSRC}/ ; \
${ECHO} >>${WRKSRC}/man${sec}/Makefile; \
${ECHO} pages-list: >>${WRKSRC}/man${sec}/Makefile; \
${ECHO} " @\$${ECHO} \$${MAN${sec}} \$${MLINKS}" \
>>${WRKSRC}/man${sec}/Makefile; \
fi
.endfor
post-build:
@${RM} -f ${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/\.\([^.]*\) /.\1 \1 /g'`; \
while : ; do \
case $$# in \
0) break;; \
[1]) ${ECHO} "can not happen"; break;; \
esac; \
${ECHO} share/man/ja/man$$2/$$1.gz; shift 2; \
done; \
fi; \
done|sort|uniq >>${PLIST}
@${ECHO} "@exec ln -sf %D/share/man/ja %D/share/man/ja_JP.EUC" >>${PLIST}
@${ECHO} "@unexec ${RM} -f %D/share/man/ja_JP.EUC" >>${PLIST}
pre-install:
.for sec in ${MANSECS}
@${MKDIR} ${PREFIX}/share/man/ja/man${sec}
.endfor
post-install:
@${CAT} ${PKGDIR}/MESSAGE
.include <bsd.port.mk>
|