summaryrefslogtreecommitdiff
path: root/textproc/codespell
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-01-26 11:57:13 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-01-26 11:57:13 +0000
commit5dd4ea2cab04a53916d2bcfd2cafa38c0186a8fe (patch)
treee14a90edc506e3e05e90c1a0c6b962115578a5c7 /textproc/codespell
parentedf41c0c16910b284f2fbfe8d97561828aa04ed2 (diff)
Notes
Diffstat (limited to 'textproc/codespell')
-rw-r--r--textproc/codespell/Makefile21
1 files changed, 8 insertions, 13 deletions
diff --git a/textproc/codespell/Makefile b/textproc/codespell/Makefile
index 14b9a3241635..958f16ac25e7 100644
--- a/textproc/codespell/Makefile
+++ b/textproc/codespell/Makefile
@@ -17,34 +17,29 @@ USE_PYTHON= 3.1+
USE_PYTHON_RUN= yes
USE_XZ= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
PLIST_FILES= bin/codespell
PORTDOCS= COPYING README TODO
PORTEXAMPLES= *
SUB_FILES+= pkg-message
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
do-build:
${REINPLACE_CMD} 's|#!/usr/bin/env python3|#!${LOCALBASE}/bin/${PYTHON_VERSION}|' \
${WRKSRC}/codespell.py
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/codespell.py ${PREFIX}/bin/codespell
+ ${INSTALL_SCRIPT} ${WRKSRC}/codespell.py ${STAGEDIR}${PREFIX}/bin/codespell
-post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
. for i in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
. endfor
-.endif
.for i in data example
- @${MKDIR} ${EXAMPLESDIR}/${i}
- @${INSTALL_DATA} ${WRKSRC}/${i}/* ${EXAMPLESDIR}/${i}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${i}
+ ${INSTALL_DATA} ${WRKSRC}/${i}/* ${STAGEDIR}${EXAMPLESDIR}/${i}
.endfor
- @${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>