| @@ -1,19 +1,20 @@ | | | @@ -1,19 +1,20 @@ |
1 | # $NetBSD: options.mk,v 1.2 2016/09/11 15:48:27 gdt Exp $ | | 1 | # $NetBSD: options.mk,v 1.3 2016/09/11 23:31:22 gdt Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.trac | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.trac |
4 | PKG_OPTIONS_REQUIRED_GROUPS= db | | 4 | PKG_OPTIONS_REQUIRED_GROUPS= db |
5 | PKG_OPTIONS_GROUP.db= sqlite psycopg2 | | 5 | PKG_OPTIONS_GROUP.db= sqlite psycopg2 |
6 | PKG_SUGGESTED_OPTIONS= sqlite | | 6 | PKG_SUGGESTED_OPTIONS= sqlite |
7 | | | 7 | |
8 | .include "../../mk/bsd.options.mk" | | 8 | .include "../../mk/bsd.options.mk" |
9 | | | 9 | |
10 | .if !empty(PKG_OPTIONS:Msqlite) | | 10 | .if !empty(PKG_OPTIONS:Msqlite) |
11 | DEPENDS+= ${PYPKGPREFIX}-sqlite3>=0:../../databases/py-sqlite3 | | 11 | DEPENDS+= ${PYPKGPREFIX}-sqlite3>=0:../../databases/py-sqlite3 |
12 | .endif | | 12 | .endif |
13 | # trac 0.12 dropped support for py-PgSQL. Switching to py-psycopg2 with | | 13 | # trac 0.12 dropped support for py-PgSQL. Switching to py-psycopg2 with |
14 | # an existing database that used to be accessed by py-PgSQL worked. | | 14 | # an existing database that used to be accessed by py-PgSQL worked. |
15 | .if !empty(PKG_OPTIONS:Mpsycopg2) | | 15 | .if !empty(PKG_OPTIONS:Mpsycopg2) |
16 | DEPENDS+= ${PYPKGPREFIX}-psycopg2>=2:../../databases/py-psycopg2 | | 16 | DEPENDS+= ${PYPKGPREFIX}-psycopg2>=2:../../databases/py-psycopg2 |
17 | .endif | | 17 | .endif |
18 | # Upstream has MySQL support but it is not really recommended: | | 18 | # Upstream has MySQL support but there are significant caveats: |
19 | # https://trac.edgewall.org/wiki/MySqlDb | | 19 | # https://trac.edgewall.org/wiki/MySqlDb |
| | | 20 | # Anyone is welcome to add a (tested!) mysql option. |