aboutsummaryrefslogtreecommitdiffstats
path: root/astro/py-metar
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2008-12-04 18:50:45 +0800
committerperky <perky@FreeBSD.org>2008-12-04 18:50:45 +0800
commit7b1f513fac921432cb367ac417abd0bb9e0a2cc0 (patch)
tree2a08fb2858777b63354bb814f4e61ca5d3db571a /astro/py-metar
parent0aa610f271278096251e37f15407861f20140ca6 (diff)
downloadfreebsd-ports-gnome-7b1f513fac921432cb367ac417abd0bb9e0a2cc0.tar.gz
freebsd-ports-gnome-7b1f513fac921432cb367ac417abd0bb9e0a2cc0.tar.zst
freebsd-ports-gnome-7b1f513fac921432cb367ac417abd0bb9e0a2cc0.zip
Don't install doc files when NOPORTDOCS is defined.
Diffstat (limited to 'astro/py-metar')
-rw-r--r--astro/py-metar/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/astro/py-metar/Makefile b/astro/py-metar/Makefile
index f979656a5676..d4fa6e3dfdd9 100644
--- a/astro/py-metar/Makefile
+++ b/astro/py-metar/Makefile
@@ -29,8 +29,14 @@ PORTDOCS= COPYING README THANKS librarydoc.txt
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
post-patch:
+.ifndef NOPORTDOCS
@${REINPLACE_CMD} \
-e 's|"share/doc/pymetar-%s/"%pymetar.__version__|"${DOCSDIR}"|' \
${WRKSRC}/setup.py
+.else
+ @${REINPLACE_CMD} \
+ -e 's|"share/doc/pymetar-%s/"%pymetar.__version__|""|' \
+ -e "s|\['README.*'\]|[]|" ${WRKSRC}/setup.py
+.endif
.include <bsd.port.mk>