1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Convert to USES+=tk

- Convert to OPTIONSng
- Stage-safe
This commit is contained in:
Pietro Cerutti 2013-09-25 09:55:38 +00:00
parent 4cfe5a185a
commit aa3e2dd4be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328259

View File

@ -13,24 +13,29 @@ DISTNAME= ${PORTNAME}-1.1p8
MAINTAINER= ports@FreeBSD.org
COMMENT= A simple to-do list manager
USE_TK_RUN= yes
USES+= tk:run
NO_BUILD= yes
PLIST_FILES= bin/zorro
PORTDOCS= DOTzorrorc
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/bin/wish|${WISH}|' \
${WRKSRC}/zorro
@${REINPLACE_CMD} -e 's|oof|of|' ${WRKSRC}/DOTzorrorc
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/zorro ${PREFIX}/bin/zorro
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOTzorrorc ${DOCSDIR}
${INSTALL_SCRIPT} ${WRKSRC}/zorro ${STAGEDIR}${PREFIX}/bin/zorro
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOTzorrorc ${STAGEDIR}${DOCSDIR}/
@${ECHO_MSG} ""
@${ECHO_MSG} "Take a look at ${DOCSDIR}/DOTzorrorc"
@${ECHO_MSG} "Take a look at ${STAGEDIR}${DOCSDIR}/DOTzorrorc"
@${ECHO_MSG} ""
.endif