pkgsrc/www/ja-trac/options.mk
gdt 70efe0cef8 Add comment explaining that py-sqlite2 is for sqlite3.
(I'm assuming that if I can't follow this, at least some others will
be confused as well.)

This is a comment-only change.
2013-02-14 14:53:31 +00:00

23 lines
823 B
Makefile

# $NetBSD: options.mk,v 1.4 2013/02/14 14:53:31 gdt Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.trac
PKG_OPTIONS_REQUIRED_GROUPS= db
PKG_OPTIONS_GROUP.db= sqlite pgsql mysql
PKG_SUGGESTED_OPTIONS= sqlite
PKG_OPTIONS_LEGACY_OPTS= psycopg2:pgsql
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Msqlite)
# py-sqlite2 is the external (vs. bundled with Python source)
# implementation of Python DB API 2.0 for sqlite version 3. It is
# preferred over "py-sqlite3", the bundled version of sqlite3 support,
# because it is more up to date.
DEPENDS+= ${PYPKGPREFIX}-sqlite2>=2.5.5:../../databases/py-sqlite2
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= ${PYPKGPREFIX}-psycopg2>=2:../../databases/py-psycopg2
.endif
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= ${PYPKGPREFIX}-mysqldb>=1.2.2:../../databases/py-mysqldb
.endif