aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2008-12-04 10:50:45 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2008-12-04 10:50:45 +0000
commit0a37c74de1da1a545420b1e81b2859f0756551e3 (patch)
tree4bf9407f5347fe5e65b3fed4117fada7e85c9d5c /astro
parentd38da15d45cfa3aa1e7c599b0fb256e34177f89e (diff)
Notes
Diffstat (limited to 'astro')
-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>