svn commit: r302083 - head/astro/py-metar

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Aug 5 07:09:56 UTC 2012


Author: sunpoet
Date: Sun Aug  5 07:09:55 2012
New Revision: 302083
URL: http://svn.freebsd.org/changeset/ports/302083

Log:
  - Convert to new options framework
  - Cosmetic change

Modified:
  head/astro/py-metar/Makefile   (contents, props changed)

Modified: head/astro/py-metar/Makefile
==============================================================================
--- head/astro/py-metar/Makefile	Sun Aug  5 07:08:11 2012	(r302082)
+++ head/astro/py-metar/Makefile	Sun Aug  5 07:09:55 2012	(r302083)
@@ -14,15 +14,17 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	${REALPORTNAME}-${PORTVERSION}
 
 MAINTAINER=	sunpoet at FreeBSD.org
-COMMENT=	Python module that provides access to NOAA's METAR weather reports
+COMMENT=	Python module that provides access to NOAA METAR weather reports
 
 LICENSE=	GPLv2
 
-DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
+OPTIONS_DEFINE=	DOCS
+
 PYDISTUTILS_PKGNAME=	${REALPORTNAME}
 USE_PYDISTUTILS=	yes
 USE_PYTHON=	-2.7
 
+DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
 PLIST_FILES=	bin/${REALPORTNAME} \
 		%%PYTHON_SITELIBDIR%%/${REALPORTNAME}.py \
 		%%PYTHON_SITELIBDIR%%/${REALPORTNAME}.pyc \
@@ -31,10 +33,12 @@ PORTDOCS=	COPYING README THANKS libraryd
 
 REALPORTNAME=	pymetar
 
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -E '1 s|/usr/bin/(env *)?python|${PYTHON_CMD}|' \
 		${WRKSRC}/setup.py ${WRKSRC}/bin/${REALPORTNAME}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${REINPLACE_CMD} \
 		-e 's|"share/doc/pymetar-%s/"%pymetar.__version__|"${DOCSDIR}"|' \
 		${WRKSRC}/setup.py



More information about the svn-ports-head mailing list