+----[ Steve Pole <[EMAIL PROTECTED]> (13.Feb.2007 03:09):
|
| Hey Fernan,
| 
|  > If you need PostgreSQL or MySQL
|  > I can send you a patch (or a modified port) that will let you
|  > select your db backend support and will install required dependencies
|  > as needed.
| 
| I'd be interested in that patch as well. Could you post it here ?
| 
| Thanks,
| 
| CU Steve
|
+----]

Of course. Here it is. Feedback is appreciated. I'll submit
a PR with the changes to the port soon. 

I've added support for MySQL as per the trac guide, but I
haven't tried to run trac against MySQL as installed by the
port. Caveat emptor.

Fernan



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

diff -ruN /usr/ports/www/trac/Makefile trac/Makefile
--- /usr/ports/www/trac/Makefile	Wed Dec 13 09:18:40 2006
+++ trac/Makefile	Tue Jan 16 11:54:39 2007
@@ -20,7 +20,10 @@
 RUN_DEPENDS=	${BUILD_DEPENDS}
 
 OPTIONS=	SILVERCITY "Use Silvercity for syntax highlighting" On \
-		DOCUTILS   "Allow additional text markup" On
+		DOCUTILS   "Allow additional text markup" On \
+		SQLITE "Use SQLite database backend" On \
+		POSTGRES "Use PostgreSQL database backend" Off \
+		MYSQL "Use MySQL database backend (experimental)" Off
 CONFLICTS=	ja-trac-*
 
 USE_PYTHON=	yes
@@ -47,11 +50,26 @@
 .include <bsd.port.pre.mk>
 
 .if defined(WITH_SILVERCITY)
-RUN_DEPENDS+=	${PREFIX}/bin/source2html.py:${PORTSDIR}/textproc/silvercity
+RUN_DEPENDS+=	source2html.py:${PORTSDIR}/textproc/silvercity
 .endif
 
 .if defined(WITH_DOCUTILS)
-RUN_DEPENDS+=	${PREFIX}/bin/rst2html:${PORTSDIR}/textproc/py-docutils
+RUN_DEPENDS+=	rst2html:${PORTSDIR}/textproc/py-docutils
 .endif
+
+.if defined(WITH_POSTGRES)
+RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/pyPgSQL/PgSQL.py:${PORTSDIR}/databases/py-pyPgSQL \
+		${PYTHON_SITELIBDIR}/mx/Tools/Tools.py:${PORTSDIR}/lang/py-mx-base
+.endif
+
+.if !defined(WITHOUT_SQLITE)
+RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
+.endif
+
+.if defined(WITH_MYSQL)
+# py-MySQLdb/
+RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/MySQLdb/connections.py:${PORTSDIR}/databases/py-MySQLdb
+.endif
+
 
 .include <bsd.port.post.mk>

Reply via email to