Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 2006 11:07:18 +0800 (CST)
From:      Dryice Liu <dryice@dryice.name>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/97382: [maintainer] www/roundup: add options
Message-ID:  <200605170307.k4H37IdW011446@readonline.info>
Resent-Message-ID: <200605170310.k4H3AEi8045151@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         97382
>Category:       ports
>Synopsis:       [maintainer] www/roundup: add options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 17 03:10:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dryice Liu
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD dryice.3322.org 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Dec 1 15:59:44 CST 2005


	
>Description:

	add options to run depends on various backends

>How-To-Repeat:
	
>Fix:

	

--- attached file begins here ---
diff -ruN roundup.old/Makefile roundup/Makefile
--- roundup.old/Makefile	Wed May 10 08:54:49 2006
+++ roundup/Makefile	Wed May 17 11:03:08 2006
@@ -19,7 +19,30 @@
 USE_PYDISTUTILS=	yes
 USE_GETTEXT=	yes
 
+OPTIONS=	SQLITE	"Support Sqlite as backend" on
+OPTIONS+=	METAKIT	"Support metakit as backend" off
+OPTIONS+=	PGSQL	"Support posggresql as backend" off
+OPTIONS+=	MYSQL	"Support mysql as backend" off
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_SQLITE)
+RUN_DEPENDS+=	${PREFIX}/%%PYTHON_SITELIBDIR%%/sqlite/__init__.py:${PORTSDIR}/databases/py-PySQLite11
+.endif
+
+.if !defined(WITHOUT_METAKIT)
+RUN_DEPENDS+=	${PREFIX}/%%PYTHON_SITELIBDIR%%/metakit.py:${PORTSDIR}/databases/metakit
+.endif
+
+.if !defined(WITHOUT_PGSQL)
+RUN_DEPENDS+=	${PREFIX}/lib/%%PYTHON_VERSION%%/site-packages/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg
+.endif
+
+.if !defined(WITHOUT_MYSQL)
+RUN_DEPENDS+=	${PREFIX}/%%PYTHON_SITELIBDIR%%/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb
+.endif
+
 MAN1=		roundup-admin.1 roundup-demo.1 roundup-mailgw.1 \
 		roundup-server.1
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- attached file ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605170307.k4H37IdW011446>