1998-12-29 22:31:14 +00:00
|
|
|
# New ports collection makefile for: X Japanese man documents
|
|
|
|
# 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-04-13 08:34:11 +00:00
|
|
|
PORTNAME= xjman
|
2002-05-17 18:20:44 +00:00
|
|
|
PORTVERSION?= 0.7
|
2005-04-14 12:56:06 +00:00
|
|
|
PORTREVISION= 1
|
1998-12-29 22:31:14 +00:00
|
|
|
CATEGORIES= japanese
|
2001-08-17 12:28:58 +00:00
|
|
|
MASTER_SITES?= ${MASTER_SITE_PORTS_JP} \
|
|
|
|
http://xjman.dsl.gr.jp/dist/
|
1998-12-29 22:31:14 +00:00
|
|
|
|
2005-04-03 21:30:39 +00:00
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Japanized X manual from "The X Japanese Documentation Project"
|
1998-12-29 22:31:14 +00:00
|
|
|
|
2002-05-17 18:20:44 +00:00
|
|
|
RUN_DEPENDS= jman:${PORTSDIR}/japanese/man
|
|
|
|
|
2002-11-16 00:55:11 +00:00
|
|
|
USE_PERL5= yes
|
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
|
2002-05-17 18:20:44 +00:00
|
|
|
WRKSRC?= ${WRKDIR}/xjman
|
1999-10-30 15:34:27 +00:00
|
|
|
SCRIPTS_ENV+= MANSECS="${MANSECS}"
|
1998-12-29 22:31:14 +00:00
|
|
|
|
|
|
|
MANSECS= 1 3 5
|
|
|
|
|
2004-02-25 10:43:16 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1998-12-29 22:31:14 +00:00
|
|
|
post-extract:
|
|
|
|
.for i in Makefile Makefile.inc
|
|
|
|
@${CP} ${FILESDIR}/$i ${WRKSRC}
|
|
|
|
.endfor
|
2001-08-06 14:07:47 +00:00
|
|
|
.for sec in ${MANSECS}
|
|
|
|
(cd ${WRKSRC}/man${sec}; \
|
|
|
|
for f in *.${sec}x; do ${CP} $$f $${f%x}; done; \
|
2005-04-14 12:56:06 +00:00
|
|
|
${REINPLACE_CMD} -e 's/^\(\.so .*\)x$$/\1/' *.${sec})
|
2001-08-06 14:07:47 +00:00
|
|
|
.endfor
|
1998-12-29 22:31:14 +00:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
@${RM} -f ${PLIST}
|
|
|
|
@for sec in ${MANSECS}; do \
|
|
|
|
if [ -d ${WRKSRC}/man$${sec} ]; then \
|
|
|
|
cd ${WRKSRC}/man$${sec}; \
|
|
|
|
list=`${MAKE} pages-list`; \
|
2002-01-29 11:08:52 +00:00
|
|
|
set `${ECHO_CMD} $$list " "|${SED} 's/\.\([0-9]\) /.\1 \1 /g'`; \
|
1998-12-29 22:31:14 +00:00
|
|
|
while : ; do \
|
|
|
|
case $$# in \
|
|
|
|
0) break;; \
|
2002-01-29 11:08:52 +00:00
|
|
|
[1]) ${ECHO_CMD} "can not happen"; break;; \
|
1998-12-29 22:31:14 +00:00
|
|
|
esac; \
|
2002-01-29 11:08:52 +00:00
|
|
|
${ECHO_CMD} man/ja/man$$2/$$1.gz; shift 2; \
|
1998-12-29 22:31:14 +00:00
|
|
|
done; \
|
|
|
|
fi; \
|
2004-01-22 11:06:02 +00:00
|
|
|
done|${SORT}|uniq >>${PLIST}
|
2002-01-29 11:08:52 +00:00
|
|
|
@${ECHO_CMD} "@exec ${LN} -sf %D/man/ja %D/man/ja_JP.EUC" >>${PLIST}
|
|
|
|
@${ECHO_CMD} "@unexec ${RM} -f %D/man/ja_JP.EUC" >>${PLIST}
|
|
|
|
@${ECHO_CMD} "share/doc/xjman/COPYRIGHT" >>${PLIST}
|
|
|
|
@${ECHO_CMD} "share/doc/xjman/COPYRIGHT.XJDP" >>${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm share/doc/xjman" >>${PLIST}
|
1998-12-29 22:31:14 +00:00
|
|
|
|
|
|
|
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
|
2000-10-08 10:23:48 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-12-29 22:31:14 +00:00
|
|
|
|
2004-02-25 10:43:16 +00:00
|
|
|
.include <bsd.port.post.mk>
|