1998-12-29 22:31:14 +00:00
|
|
|
# New ports collection makefile for: X Japanese man documents
|
1999-10-22 16:22:36 +00:00
|
|
|
# Version required: 0.4
|
1998-12-29 22:31:14 +00:00
|
|
|
# Date created: 24 Dec 1998
|
|
|
|
# Based on: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>'s
|
|
|
|
# japanese/man-doc
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: SADA Kenji <sada@FreeBSD.org>
|
1998-12-29 22:31:14 +00:00
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1998-12-29 22:31:14 +00:00
|
|
|
#
|
|
|
|
|
2000-02-07 14:10:40 +00:00
|
|
|
DISTNAME= xjman-0.5
|
1999-10-22 16:22:36 +00:00
|
|
|
PKGNAME= ja-${DISTNAME}
|
1998-12-29 22:31:14 +00:00
|
|
|
CATEGORIES= japanese
|
1999-03-31 16:41:31 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PORTS_JP} \
|
1999-10-22 16:22:36 +00:00
|
|
|
http://xjman.dsl.gr.jp/
|
1998-12-29 22:31:14 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= sada@FreeBSD.org
|
1998-12-29 22:31:14 +00:00
|
|
|
|
|
|
|
NO_MTREE= yes
|
|
|
|
PLIST= ${WRKDIR}/PLIST
|
1999-10-22 16:22:36 +00:00
|
|
|
USE_BZIP2= yes
|
2000-02-07 14:10:40 +00:00
|
|
|
WRKSRC= ${WRKDIR}/man/ja_JP.eucJP
|
1999-10-30 15:34:27 +00:00
|
|
|
SCRIPTS_ENV+= MANSECS="${MANSECS}"
|
1998-12-29 22:31:14 +00:00
|
|
|
|
|
|
|
MANSECS= 1 3 5
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
.for i in Makefile Makefile.inc
|
|
|
|
@${CP} ${FILESDIR}/$i ${WRKSRC}
|
|
|
|
.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/\.\([0-9]\)x /.\1x \1 /g'`; \
|
|
|
|
while : ; do \
|
|
|
|
case $$# in \
|
|
|
|
0) break;; \
|
|
|
|
[1]) ${ECHO} "can not happen"; break;; \
|
|
|
|
esac; \
|
|
|
|
${ECHO} man/ja/man$$2/$$1.gz; shift 2; \
|
|
|
|
done; \
|
|
|
|
fi; \
|
|
|
|
done|sort|uniq >>${PLIST}
|
1999-08-28 01:58:05 +00:00
|
|
|
@${ECHO} "@exec ${LN} -sf %D/man/ja %D/man/ja_JP.EUC" >>${PLIST}
|
1998-12-29 22:31:14 +00:00
|
|
|
@${ECHO} "@unexec ${RM} -f %D/man/ja_JP.EUC" >>${PLIST}
|
|
|
|
@${ECHO} "share/doc/xjman/COPYRIGHT" >>${PLIST}
|
|
|
|
@${ECHO} "share/doc/xjman/COPYRIGHT.XJDP" >>${PLIST}
|
|
|
|
@${ECHO} "@dirrm share/doc/xjman" >>${PLIST}
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
.for sec in ${MANSECS}
|
|
|
|
@${MKDIR} ${PREFIX}/man/ja/man${sec}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/xjman
|
|
|
|
.for i in COPYRIGHT COPYRIGHT.XJDP
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/$i ${PREFIX}/share/doc/xjman/
|
|
|
|
.endfor
|
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|