diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2013-12-31 20:47:51 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2013-12-31 20:47:51 +0800 |
commit | b9ef5abd1afc9c614b1c3566562819dcf8e87b01 (patch) | |
tree | 5e65305b9b58b2a84df9c02cb8b083366a40c648 | |
parent | 4d2ebcae18734e09aa6af6d0f2bbe6b47168fc58 (diff) | |
download | freebsd-ports-gnome-b9ef5abd1afc9c614b1c3566562819dcf8e87b01.tar.gz freebsd-ports-gnome-b9ef5abd1afc9c614b1c3566562819dcf8e87b01.tar.zst freebsd-ports-gnome-b9ef5abd1afc9c614b1c3566562819dcf8e87b01.zip |
- Merge post-install: to do-install:
- Support STAGEDIR
-rw-r--r-- | astro/weather/Makefile | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/astro/weather/Makefile b/astro/weather/Makefile index 63bab76e6e54..0d3f8a000bf8 100644 --- a/astro/weather/Makefile +++ b/astro/weather/Makefile @@ -15,17 +15,16 @@ LICENSE= ISCL CONFLICTS_INSTALL= expect-[0-9]* expect-nox11-[0-9]* -NO_STAGE= yes USE_PYTHON= yes USE_XZ= yes USES= shebangfix -MAN1= ${PORTNAME}.1 -MAN5= ${PORTNAME}rc.5 PLIST_FILES= bin/${PORTNAME} \ %%PYTHON_SITELIBDIR%%/${PORTNAME}.py \ %%PYTHON_SITELIBDIR%%/${PORTNAME}.pyc \ - %%PYTHON_SITELIBDIR%%/${PORTNAME}.pyo + %%PYTHON_SITELIBDIR%%/${PORTNAME}.pyo \ + man/man1/${PORTNAME}.1.gz \ + man/man5/${PORTNAME}rc.5.gz PORTDATA= airports places stations zctas zones SHEBANG_FILES= ${PORTNAME} @@ -37,14 +36,13 @@ do-build: @${PYTHON_CMD} -O -m compileall ${WRKSRC}/${PORTNAME}.py do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} - cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTNAME}.py ${PORTNAME}.pyc ${PORTNAME}.pyo ${PYTHON_SITELIBDIR}/ - ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1/${PORTNAME}.1 - ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}rc.5 ${MANPREFIX}/man/man5/${PORTNAME}rc.5 - ${MKDIR} ${DATADIR}/ - cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDATA} ${DATADIR}/ - -post-install: + ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/ + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTNAME}.py ${PORTNAME}.pyc ${PORTNAME}.pyo ${STAGEDIR}${PYTHON_SITELIBDIR}/ + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1 + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}rc.5 ${STAGEDIR}${MANPREFIX}/man/man5/${PORTNAME}rc.5 + ${MKDIR} ${STAGEDIR}${DATADIR}/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDATA} ${STAGEDIR}${DATADIR}/ @${ECHO_MSG} "" @${ECHO_MSG} "Please add the following to your .weatherrc in order to use installed data files:" @${ECHO_MSG} "" |