- Add staging support

- Remove leading article from COMMENT
- Define DOCS option
This commit is contained in:
Pawel Pekala 2014-05-13 20:08:38 +00:00
parent 2210bf6848
commit 6493748fee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353985

View file

@ -9,23 +9,22 @@ MASTER_SITES= http://openlab.ring.gr.jp/edict/fpw/dist/pejv/
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= An Esperanto-Japanese dictionary (EPWING V1 format)
COMMENT= Esperanto-Japanese dictionary (EPWING V1 format)
USES= zip:infozip
NO_BUILD= yes
WRKSRC= ${WRKDIR}/pejv
EXTRACT_BEFORE_ARGS= -qL
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
do-install:
${MKDIR} ${PREFIX}/share/dict/pejv-fpw/pejv/data
${INSTALL_DATA} ${WRKSRC}/pejv/data/honmon ${PREFIX}/share/dict/pejv-fpw/pejv/data
${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/pejv-fpw
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in readme legumin.doc pejvo.doc
${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
.endfor
.endif
@${MKDIR} ${STAGEDIR}${PREFIX}/share/dict/pejv-fpw/pejv/data
${INSTALL_DATA} ${WRKSRC}/pejv/data/honmon \
${STAGEDIR}${PREFIX}/share/dict/pejv-fpw/pejv/data
${INSTALL_DATA} ${WRKSRC}/catalogs ${STAGEDIR}${PREFIX}/share/dict/pejv-fpw
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} readme legumin.doc pejvo.doc \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>