Skip site navigation (1)Skip section navigation (2)
Date:      17 Sep 1998 07:45:11 +0900
From:      sada@e-mail.ne.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7954: new port: japanese/FAQ
Message-ID:  <19980916224511.20135.qmail@sada.e-mail.ne.jp>

next in thread | raw e-mail | index | archive | help

>Number:         7954
>Category:       ports
>Synopsis:       new port: japanese/FAQ
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 16 15:50:00 PDT 1998
>Last-Modified:
>Originator:     SADA Kenji
>Organization:
Nagoya.Aichi.Japan
>Release:        FreeBSD 2.2.7-RELEASE i386
>Environment:

	FreeBSD 2.2.7-RELEASE i386

>Description:

	This is a port of japanese FAQ documentation.
	This would build html images from doc/ja/FAQ distribution.

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	FAQ
#	FAQ/pkg
#	FAQ/pkg/COMMENT
#	FAQ/pkg/DESCR
#	FAQ/Makefile
#	FAQ/files
#	FAQ/files/md5
#
echo c - FAQ
mkdir -p FAQ > /dev/null 2>&1
echo c - FAQ/pkg
mkdir -p FAQ/pkg > /dev/null 2>&1
echo x - FAQ/pkg/COMMENT
sed 's/^X//' >FAQ/pkg/COMMENT << 'END-of-FAQ/pkg/COMMENT'
XThe Japanese version of FreeBSD FAQ.
END-of-FAQ/pkg/COMMENT
echo x - FAQ/pkg/DESCR
sed 's/^X//' >FAQ/pkg/DESCR << 'END-of-FAQ/pkg/DESCR'
XThis is the Japanese FAQ.  Note that to build it, you need the
Xsource to be on your machine, in which case you can build and install
Xit by just going to /usr/opt/doc/ja.EUC/FAQ and typing
X"make all install".  (It will also be built automatically if you have
XDOC_LANG set to "ja" or have ALLLANG set to anything during a "make 
Xworld".)
X
XIn other words, this pretty useless as a port, but is here so I can
Xbuild a package.
X
X(original DESCR file by)
XSatoshi
Xasami@freebsd.org
END-of-FAQ/pkg/DESCR
echo x - FAQ/Makefile
sed 's/^X//' >FAQ/Makefile << 'END-of-FAQ/Makefile'
X# New ports collection makefile for:	Japanese FAQ
X# Version required:	2.2
X# Date created:		Sep 16 1998
X# Whom:			sada
X#
X# $Id$
X#
X
XDISTNAME=	ja-FAQ-2.2
XCATEGORIES=	japanese
XDISTFILES=	# none
X
XMAINTAINER=	sada@e-mail.ne.jp
X
XBUILD_DEPENDS=	sgmlfmt:${PORTSDIR}/textproc/sgmlformat
X
XPREFIX=		/usr
XNO_MTREE=	yes
XWRKSRC=		${WRKDIR}/FAQ
XPLIST=		${WRKDIR}/PLIST
X
XFAQDIR?=	/usr/opt/doc/ja/FAQ
XDOC_SUBDIR?=	share/doc/ja/FAQ
X
Xdo-extract:
X	@if [ ! -d ${FAQDIR} ]; then \
X	  ${ECHO} "You need the Japanese FAQ source in"; \
X	  ${ECHO} "\"${FAQDIR}\""; \
X	  ${ECHO} "in order to build this port."; \
X	  exit 1; \
X	fi
X	@${RM} -rf ${WRKDIR}
X	@${MKDIR} ${WRKSRC}
X	${CP} ${FAQDIR}/Makefile ${WRKSRC}
X	${CP} ${FAQDIR}/*.sgml ${WRKSRC}
X
Xpost-build:
X	@${RM} -f ${PLIST}
X	@${ECHO} "${DOC_SUBDIR}/FAQ.ln" >>${PLIST}
X	@${ECHO} "@exec cd %B; /bin/sh %f" >>${PLIST}
X	@${ECHO} "${DOC_SUBDIR}/FAQ.roff" >>${PLIST}
X	@${ECHO} "${DOC_SUBDIR}/FAQ.html" >>${PLIST}
X	@cd ${WRKSRC} && \
X	 ls FAQ[0-9]*.html|sort|${AWK} '{printf "${DOC_SUBDIR}/%s\n", $$1}' \
X	 >>${PLIST}
X	@${ECHO} "${DOC_SUBDIR}/FAQ_toc.html" >>${PLIST}
X	@${ECHO} "@comment remove all links" >>${PLIST}
X	@${ECHO} "@unexec cd %B; for i in *.html; do if [ -h \$$i ]; then /bin/rm -f \$$i; fi; done" \
X	 >>${PLIST}
X	@${ECHO} "@dirrm ${DOC_SUBDIR}" >>${PLIST}
X
Xpre-install:
X	${MKDIR} ${PREFIX}/${DOC_SUBDIR}
X	${INSTALL_DATA} ${WRKSRC}/FAQ.ln ${PREFIX}/${DOC_SUBDIR}/
X
X.include <bsd.port.mk>
END-of-FAQ/Makefile
echo c - FAQ/files
mkdir -p FAQ/files > /dev/null 2>&1
echo x - FAQ/files/md5
sed 's/^X//' >FAQ/files/md5 << 'END-of-FAQ/files/md5'
X#
END-of-FAQ/files/md5
exit
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980916224511.20135.qmail>