From 424941746fab63c1edfc32ba5e7c221f2cfa52e3 Mon Sep 17 00:00:00 2001 From: bapt Date: Tue, 8 Jan 2013 07:06:24 +0000 Subject: Convert last python@ ports to new options framework for both make options work as expected (previous version were missing include ) for databases/py-pyPgSQL reverse the logic for the option test so that it actually works as expected Approved by: python (crees) --- databases/py-pyPgSQL/Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'databases/py-pyPgSQL') diff --git a/databases/py-pyPgSQL/Makefile b/databases/py-pyPgSQL/Makefile index 3c52ebd6178a..98673a4bd3d5 100644 --- a/databases/py-pyPgSQL/Makefile +++ b/databases/py-pyPgSQL/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: py-pypgsql -# Date created: 01 Nov 2001 -# Whom: Gerhard Haering -# +# Created by: Gerhard Haering # $FreeBSD$ -# PORTNAME= pyPgSQL PORTVERSION= 2.5.1 @@ -26,12 +22,16 @@ EXAMPLES= examples/*.py DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py -OPTIONS= BYTEA_CONN "Apply Bytea connection patch" On +OPTIONS_DEFINE= BYTEA_CONN EXAMPLES DOCS +OPTIONS_DEFAULT= BYTEA_CONN +BYTEA_CONN_DESC= Apply Bytea connection patch # bypass infrastructure bug OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options -.if !defined(WITH_BYTEA_CONN) +.include + +.if ${PORT_OPTIONS:MBYTEA_CONN} PATCH_SITES= http://sourceforge.net/tracker/download.php?group_id=16528&atid=316528&file_id=273956&aid=1939119/ PATCHFILES= pyPgSQL-patch_byteaconn .endif @@ -40,13 +40,13 @@ DOCSDIR= ${PREFIX}/share/doc/py-pyPgSQL EXAMPLESDIR= ${PREFIX}/share/examples/py-pyPgSQL post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for f in ${DOCS} @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} .endfor .endif -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} .for f in ${EXAMPLES} @${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR} -- cgit