From 7b1f513fac921432cb367ac417abd0bb9e0a2cc0 Mon Sep 17 00:00:00 2001 From: perky Date: Thu, 4 Dec 2008 10:50:45 +0000 Subject: Don't install doc files when NOPORTDOCS is defined. --- astro/py-metar/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'astro') diff --git a/astro/py-metar/Makefile b/astro/py-metar/Makefile index f979656a567..d4fa6e3dfdd 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 -- cgit