pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ja-trac Introduce same options for database engine...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a6c30eee3dc5
branches:  trunk
changeset: 534159:a6c30eee3dc5
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Oct 13 08:00:53 2007 +0000

description:
Introduce same options for database engine as www/trac.

Depending sqlite version bump to 3,
need to update db, with dump/restore.

Bump PKGREVISION.

diffstat:

 www/ja-trac/Makefile |  23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 8e4a31889daa -r a6c30eee3dc5 www/ja-trac/Makefile
--- a/www/ja-trac/Makefile      Sat Oct 13 07:54:31 2007 +0000
+++ b/www/ja-trac/Makefile      Sat Oct 13 08:00:53 2007 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.12 2007/05/05 12:46:58 obache Exp $
+# $NetBSD: Makefile,v 1.13 2007/10/13 08:00:53 obache Exp $
 #
 
 DISTNAME=      trac-0.10.4-ja-1
 PKGNAME=       ja-trac-0.10.4.1
+PKGREVISION=   1
 CATEGORIES=    www devel
 MASTER_SITES=  http://www.i-act.co.jp/project/products/downloads/
 EXTRACT_SUFX=  .zip
@@ -15,9 +16,27 @@
 
 DEPENDS+=      ${PYPKGPREFIX}-clearsilver>=0.9.14:../../www/py-clearsilver
 DEPENDS+=      ${PYPKGPREFIX}-subversion>=1.1.0:../../devel/py-subversion
-DEPENDS+=      ${PYPKGPREFIX}-{PgSQL>=2.4,psycopg>=1.1.14,sqlite>=0.5}:../../databases/py-sqlite
 DEPENDS+=      ${PYPKGPREFIX}-jpCodecs>=1.4.11:../../converters/py-jpCodecs
 
+PKG_OPTIONS_VAR=       PKG_OPTOINS.trac
+PKG_OPTIONS_REQUIRED_GROUPS=   db
+PKG_OPTIONS_GROUP.db=  sqlite pgsql psycopg2
+PKG_SUGGESTED_OPTIONS= sqlite
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Msqlite)
+DEPENDS+=      ${PYPKGPREFIX}-sqlite2>=2:../../databases/py-sqlite2
+.endif
+.if !empty(PKG_OPTIONS:Mpgsql)
+DEPENDS+=      ${PYPKGPREFIX}-PgSQL>=2.4:../../databases/py-PgSQL
+.endif
+.if !empty(PKG_OPTIONS:Mpsycopg2)
+DEPENDS+=      ${PYPKGPREFIX}-psycopg>=1.1.14:../../databases/py-psycopg2
+.endif
+# MySQL is sort of supported but not recommended by upstream and hence
+# omitted.
+
 PYDISTUTILSPKG=        YES
 PY_PATCHPLIST= YES
 PYTHON_PATCH_SCRIPTS=  contrib/*.py contrib/*-hook



Home | Main Index | Thread Index | Old Index