Date: Sun, 5 Aug 2012 07:09:55 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r302083 - head/astro/py-metar Message-ID: <201208050709.q7579trd050131@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208050709.q7579trd050131>