pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/mediawiki Allow selection of mysql or pgsql option...
details: https://anonhg.NetBSD.org/pkgsrc/rev/20dab3bf5eee
branches: trunk
changeset: 396414:20dab3bf5eee
user: abs <abs%pkgsrc.org@localhost>
date: Thu Jul 23 17:34:09 2009 +0000
description:
Allow selection of mysql or pgsql options. Default unchanged at mysql
diffstat:
www/mediawiki/Makefile | 5 ++---
www/mediawiki/options.mk | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+), 3 deletions(-)
diffs (50 lines):
diff -r c2df800d2b57 -r 20dab3bf5eee www/mediawiki/Makefile
--- a/www/mediawiki/Makefile Thu Jul 23 17:19:37 2009 +0000
+++ b/www/mediawiki/Makefile Thu Jul 23 17:34:09 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2009/05/18 21:14:50 abs Exp $
+# $NetBSD: Makefile,v 1.8 2009/07/23 17:34:09 abs Exp $
DISTNAME= mediawiki-${VER}.${PVER}
CATEGORIES= www
@@ -9,8 +9,6 @@
COMMENT= Free software wiki package originally written for Wikipedia
LICENSE= gnu-gpl-v2
-DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.10:../../databases/php-mysql
-
EGDIR= share/examples/mediawiki
MEDIAWIKI= ${PREFIX}/share/mediawiki
@@ -18,6 +16,7 @@
INSTALLATION_DIRS= ${EGDIR} share/mediawiki
.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
PKG_INSTALLATION_TYPES= overwrite pkgviews
VER= 1.13
diff -r c2df800d2b57 -r 20dab3bf5eee www/mediawiki/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/mediawiki/options.mk Thu Jul 23 17:34:09 2009 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: options.mk,v 1.1 2009/07/23 17:34:09 abs Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.bugzilla
+
+PKG_OPTIONS_REQUIRED_GROUPS= db
+PKG_OPTIONS_GROUP.db= mysql pgsql
+
+PKG_SUPPORTED_OPTIONS+= mysql pgsql
+PKG_SUGGESTED_OPTIONS= mysql
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Use mysql or postgresql backend
+###
+.if !empty(PKG_OPTIONS:Mmysql)
+DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.10:../../databases/php-mysql
+.elif !empty(PKG_OPTIONS:Mpgsql)
+DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=8:../../databases/php-pgsql
+.endif
Home |
Main Index |
Thread Index |
Old Index