ports/104726: [MAINTAINER] databases/py-sqlobject: [PATCH] adding OPTIONS knob
Choe, Cheng-Dae
whitekid at gmail.com
Tue Oct 24 01:30:36 UTC 2006
>Number: 104726
>Category: ports
>Synopsis: [MAINTAINER] databases/py-sqlobject: [PATCH] adding OPTIONS knob
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Oct 24 01:30:24 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: "Choe, Cheng-Dae"
>Release: FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD comdongin.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Fri Oct 13 18:28:52 KST 2006 root at comdongin.com:/usr/obj/usr/src/sys/CDI i386
>Description:
- add PostgreSQL, MySQL, SQLite DBM supports OPTIONS
>How-To-Repeat:
N/A
>Fix:
diff -ruN py-sqlobject.orig/Makefile py-sqlobject/Makefile
--- py-sqlobject.orig/Makefile Fri Nov 18 02:48:26 2005
+++ py-sqlobject/Makefile Tue Oct 24 10:11:49 2006
@@ -7,7 +7,7 @@
PORTNAME= sqlobject
PORTVERSION= 0.7.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases python
MASTER_SITES= http://cheeseshop.python.org/packages/source/S/SQLObject/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,11 +16,6 @@
MAINTAINER= whitekid at gmail.com
COMMENT= A python object for manipulation with SQL table row
-# Someone will add SQLite, Firebird and DBMConnection support things.
-RUN_DEPENDS= ${PYTHON_SITELIBDIR}/formencode/__init__.py:${PORTSDIR}/www/py-formencode \
- ${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb \
- ${PYTHON_SITELIBDIR}/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg
-
USE_PYTHON= yes
USE_PYDISTUTILS= yes
@@ -28,6 +23,29 @@
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= *
+
+OPTIONS= MYSQL "MySQL supports" off \
+ PGSQL "PostgreSQL Supports" off \
+ SQLITE "SQLite Supports" off
+
+# bypass infrastructure bug
+OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
+
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/formencode/__init__.py:${PORTSDIR}/www/py-formencode
+
+.if defined(WITH_MYSQL)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb
+.endif
+
+.if defined(WITH_PGSQL)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg
+.endif
+
+.if defined(WITH_SQLITE)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
+.endif
+
+# currently FireBird, MaxDB(SAP), Sybase, MSSQL, ADODB is not supported
post-install:
.if !defined(NOPORTDOCS)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list