fix complete brain-damage.
So, moodle needs a database, fine. No need to put flavors around it. package-specs have ALTERNATIVES, so you can just depend on any of mysql and postgresql, and you don't need a flavor for that...
This commit is contained in:
parent
95aa66b3aa
commit
e33e8d3084
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.10 2007/09/15 20:38:22 merdely Exp $
|
||||
# $OpenBSD: Makefile,v 1.11 2009/10/14 18:03:17 espie Exp $
|
||||
|
||||
COMMENT= learning management system
|
||||
|
||||
DISTNAME= moodle-1.6.3
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
CATEGORIES= www education
|
||||
|
||||
HOMEPAGE= http://www.moodle.org/
|
||||
@ -30,17 +30,7 @@ SUBST_VARS= INSTDIR
|
||||
|
||||
RUN_DEPENDS= :php5-gd-*:www/php5/extensions,-gd \
|
||||
:php5-mbstring-*:www/php5/extensions,-mbstring
|
||||
|
||||
FLAVORS= mysql pgsql
|
||||
FLAVOR?=
|
||||
|
||||
.if ${FLAVOR:L:Mmysql}
|
||||
RUN_DEPENDS+= :php5-mysql-*:www/php5/extensions,-mysql
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Mpgsql}
|
||||
RUN_DEPENDS+= :php5-pgsql-*:www/php5/extensions,-pgsql
|
||||
.endif
|
||||
RUN_DEPENDS+= :php5-mysql-*|php5-pgsql-*:www/php5/extensions,-mysql
|
||||
|
||||
do-install:
|
||||
@cd ${PREFIX} && tar zxf ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX}
|
||||
|
@ -1,4 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.7 2006/10/16 14:00:18 kevlo Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.8 2009/10/14 18:03:17 espie Exp $
|
||||
@pkgpath www/moodle,mysql
|
||||
@pkgpath www/moodle,pgsql
|
||||
moodle/
|
||||
moodle/README.txt
|
||||
moodle/admin/
|
||||
|
Loading…
Reference in New Issue
Block a user