1998-12-29 23:31:14 +01: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 08:53:31 +02:00
|
|
|
# Whom: SADA Kenji <sada@FreeBSD.org>
|
1998-12-29 23:31:14 +01:00
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1998-12-29 23:31:14 +01:00
|
|
|
#
|
|
|
|
|
2000-04-13 10:34:11 +02:00
|
|
|
PORTNAME= xjman
|
2002-05-17 20:20:44 +02:00
|
|
|
PORTVERSION?= 0.7
|
1998-12-29 23:31:14 +01:00
|
|
|
CATEGORIES= japanese
|
2001-08-17 14:28:58 +02:00
|
|
|
MASTER_SITES?= ${MASTER_SITE_PORTS_JP} \
|
|
|
|
http://xjman.dsl.gr.jp/dist/
|
1998-12-29 23:31:14 +01:00
|
|
|
|
2001-08-08 08:38:05 +02:00
|
|
|
MAINTAINER?= sada@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Japanized X manual from "The X Japanese Documentation Project"
|
1998-12-29 23:31:14 +01:00
|
|
|
|
2002-05-17 20:20:44 +02:00
|
|
|
RUN_DEPENDS= jman:${PORTSDIR}/japanese/man
|
|
|
|
|
2002-11-04 23:57:37 +01:00
|
|
|
USE_REINPLACE= yes
|
2002-11-16 01:55:11 +01:00
|
|
|
USE_PERL5= yes
|
1998-12-29 23:31:14 +01:00
|
|
|
NO_MTREE= yes
|
|
|
|
PLIST= ${WRKDIR}/PLIST
|
1999-10-22 18:22:36 +02:00
|
|
|
USE_BZIP2= yes
|
2002-05-17 20:20:44 +02:00
|
|
|
WRKSRC?= ${WRKDIR}/xjman
|
1999-10-30 17:34:27 +02:00
|
|
|
SCRIPTS_ENV+= MANSECS="${MANSECS}"
|
1998-12-29 23:31:14 +01:00
|
|
|
|
|
|
|
MANSECS= 1 3 5
|
|
|
|
|
2004-02-25 11:43:16 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "i386"
|
|
|
|
BROKEN= "Does not compile on !i386"
|
|
|
|
.endif
|
|
|
|
|
1998-12-29 23:31:14 +01:00
|
|
|
post-extract:
|
|
|
|
.for i in Makefile Makefile.inc
|
|
|
|
@${CP} ${FILESDIR}/$i ${WRKSRC}
|
|
|
|
.endfor
|
2001-08-06 16:07:47 +02:00
|
|
|
.for sec in ${MANSECS}
|
|
|
|
(cd ${WRKSRC}/man${sec}; \
|
|
|
|
for f in *.${sec}x; do ${CP} $$f $${f%x}; done; \
|
2002-11-11 18:07:20 +01:00
|
|
|
${REINPLACE_CMD} -e 's/^\(\.so .*\)x$$/$$1/' *.${sec})
|
2001-08-06 16:07:47 +02:00
|
|
|
.endfor
|
1998-12-29 23:31:14 +01: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 12:08:52 +01:00
|
|
|
set `${ECHO_CMD} $$list " "|${SED} 's/\.\([0-9]\) /.\1 \1 /g'`; \
|
1998-12-29 23:31:14 +01:00
|
|
|
while : ; do \
|
|
|
|
case $$# in \
|
|
|
|
0) break;; \
|
2002-01-29 12:08:52 +01:00
|
|
|
[1]) ${ECHO_CMD} "can not happen"; break;; \
|
1998-12-29 23:31:14 +01:00
|
|
|
esac; \
|
2002-01-29 12:08:52 +01:00
|
|
|
${ECHO_CMD} man/ja/man$$2/$$1.gz; shift 2; \
|
1998-12-29 23:31:14 +01:00
|
|
|
done; \
|
|
|
|
fi; \
|
2004-01-22 12:06:02 +01:00
|
|
|
done|${SORT}|uniq >>${PLIST}
|
2002-01-29 12:08:52 +01: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 23:31:14 +01: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 12:23:48 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1998-12-29 23:31:14 +01:00
|
|
|
|
2004-02-25 11:43:16 +01:00
|
|
|
.include <bsd.port.post.mk>
|