Convert chinese to MDOCS

This commit is contained in:
Adam Weinberger 2014-01-03 15:59:41 +00:00
parent 43b73e5cfa
commit 3273972644
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338553
12 changed files with 32 additions and 14 deletions

View file

@ -15,8 +15,11 @@ CPP= #
MAN1= cless.1 clesskey.1
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${PREFIX}/share/doc/cless
${INSTALL_DATA} ${WRKSRC}/README.CLESS ${PREFIX}/share/doc/cless
.endif

View file

@ -93,9 +93,7 @@ EXTRA_PATCHES+= ${FILESDIR}/tpunc-data_punc.mb.zh_CN
CMAKE_ARGS+= -DENABLE_DEBUG=ON
.endif
.if defined(NOPORTDOCS)
EXTRA_PATCHES+= ${FILESDIR}/nodocs-doc_CMakeLists.txt
.endif
DOCS_EXTRA_PATCHES= ${FILESDIR}/nodocs-doc_CMakeLists.txt
.if defined(NOPORTDATA)
IGNORE= code tables are required, undefine NOPORTDATA

View file

@ -17,6 +17,8 @@ COMMENT= Converts Chinese GB (simple) encoded text to PostScript
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
WRKSRC= ${WRKDIR}/GB2PS
.include <bsd.port.options.mk>
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/chinese/gb
${INSTALL_PROGRAM} ${WRKSRC}/gb2ps ${STAGEDIR}${PREFIX}/bin
@ -24,7 +26,7 @@ do-install:
.for font in csong24.ccf ckai24.ccf cfang24.ccf chei24.ccf cfan24.ccf
${GUNZIP_CMD} -c ${DISTDIR}/${font}.gz > ${STAGEDIR}${PREFIX}/share/chinese/gb/${font}
.endfor
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/gb2ps
${INSTALL_DATA} ${WRKSRC}/gb2ps.help ${STAGEDIR}${PREFIX}/share/doc/gb2ps
.endif

View file

@ -106,7 +106,7 @@ post-install:
@${STRIP_CMD} ${PREFIX}/bin/${f}
.endfor
.endif
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for f in Changelog.html README.html
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}

View file

@ -24,6 +24,9 @@ ALL_TARGET= ${PORTNAME}
MAN1= hanzim.1
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/hanzim.c
@ -32,7 +35,7 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/hanzim.man ${PREFIX}/man/man1/hanzim.1
@${MKDIR} ${PREFIX}/lib/hanzim
${INSTALL_DATA} ${WRKSRC}/Data/* ${PREFIX}/lib/hanzim
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/hanzim.doc ${DOCSDIR}
.endif

View file

@ -55,7 +55,7 @@ post-patch:
.endif
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/tsi-src/README ${DOCSDIR}/README.tsi
.if !defined(WITHOUT_X11)

View file

@ -9,10 +9,12 @@ MASTER_SITES= http://www.whizkidtech.redprince.net/i18n/muni/
MAINTAINER= ports@FreeBSD.org
COMMENT= Find Unicode values for Chinese characters
.include <bsd.port.options.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/muni ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/m7773 ${STAGEDIR}${PREFIX}/bin
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/muni
${INSTALL_DATA} ${WRKSRC}/index.html ${STAGEDIR}${PREFIX}/share/doc/muni
${INSTALL_DATA} ${WRKSRC}/yung.gif ${STAGEDIR}${PREFIX}/share/doc/muni

View file

@ -53,6 +53,8 @@ EXCEPTFILES= ${PREFIX}/${PHPBBDIR}/install/install.php \
${PREFIX}/${PHPBBDIR}/install/upgrade.php \
${PREFIX}/${PHPBBDIR}/install/update_to_latest.php
.include <bsd.port.options.mk>
options:
@ ${ECHO_MSG} "===> Build options for ${PKGNAME}:"
@ ${CAT} ${PKGOPTS}
@ -85,7 +87,7 @@ do-install:
post-install:
# @ cd ${DATADIR} && ${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
# ${EXCEPTFILES} ${PREFIX}/${PHPBBDIR}
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@ ${MKDIR} ${DOCSDIR}
@ cd ${WRKSRC}/docs && ${FIND} * -type f -maxdepth 0 \! -name \*.bak \
\! -name COPYING -exec ${INSTALL_DATA} {} ${DOCSDIR} \;

View file

@ -41,6 +41,8 @@ NO_STAGE= yes
PHPBBDIR= ${WWWDOCROOT}/${PHPBBURL}
PKGOPTS= ${FILESDIR}/pkg-opts
.include <bsd.port.options.mk>
options:
@ ${ECHO_MSG} "===> Build options for ${PKGNAME}:"
@ ${CAT} ${PKGOPTS}
@ -63,7 +65,7 @@ do-install:
@ ${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${PREFIX}/${PHPBBDIR}' >> ${TMPPLIST}
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@ ${MKDIR} ${DOCSDIR}
@ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}

View file

@ -28,6 +28,9 @@ NO_LATEST_LINK= yes
MAN1= pine.1 pico.1 pilot.1
NO_STAGE= yes
.include <bsd.port.options.mk>
pre-fetch:
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
${SH} pkg-install
@ -82,7 +85,7 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/doc/pico.1 ${PREFIX}/man/man1/pico.1
${INSTALL_MAN} ${WRKSRC}/doc/pilot.1 ${PREFIX}/man/man1/pilot.1
${INSTALL_MAN} ${WRKSRC}/doc/pine.1 ${PREFIX}/man/man1/pine.1
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \
${PREFIX}/share/doc/pine \
${PREFIX}/share/doc/pine/tech-notes

View file

@ -36,7 +36,7 @@ post-patch:
post-install:
@${MKDIR} ${DATADIR}
(cd ${WRKDIR}/ && ${COPYTREE_SHARE} "books dicts" ${DATADIR})
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}

View file

@ -20,6 +20,9 @@ PORTDOCS= README USAGE
MAN1= ttfm.sh.1
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' \
-e 's,%%PREFIX%%,${PREFIX},' \
@ -30,7 +33,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ttfinfo ${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/ttfm.sh ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}/