diff options
Diffstat (limited to 'misc/flyway/Makefile')
-rw-r--r-- | misc/flyway/Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/misc/flyway/Makefile b/misc/flyway/Makefile index fe434e9cbbd9..501a1503f642 100644 --- a/misc/flyway/Makefile +++ b/misc/flyway/Makefile @@ -7,7 +7,7 @@ # PORTNAME= flyway -PORTVERSION= 0.3.1 +PORTVERSION= 0.3.2 CATEGORIES= misc python MASTER_SITES= http://www.bellz.org/flyway/ @@ -16,18 +16,20 @@ COMMENT= A VFR/IFR Route Planner for Pilots RUN_DEPENDS= pyuic:${PORTSDIR}/x11-toolkits/py-qt +USE_X_PREFIX= yes USE_PYTHON= yes +USE_REINPLACE= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/FlyWay +PORTDOCS= README.html INSTALL LICENSE -do-install: - @${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME} - ${CP} ${WRKSRC}/*.py ${PYTHON_SITELIBDIR}/${PORTNAME} - ${CP} ${WRKSRC}/*.dat ${PYTHON_SITELIBDIR}/${PORTNAME} - @${LN} -sf ${PYTHON_SITELIBDIR}/${PORTNAME}/flyway.py ${PREFIX}/bin/flyway -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${CP} ${WRKSRC}/README.html ${DOCSDIR} +post-patch: +.if defined(NOPORTDOCS) + @${REINPLACE_CMD} -e 's|doc||' \ + ${WRKSRC}/install.py .endif +do-install: + (cd ${WRKSRC};${PYTHON_CMD} ${WRKSRC}/install.py -p ${PREFIX}) + .include <bsd.port.mk> |