Bug 97382

Summary: [maintainer] www/roundup: add options
Product: Ports & Packages Reporter: dryice
Component: Individual Port(s)Assignee: Ion-Mihai "IOnut" Tetcu <itetcu>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description dryice 2006-05-17 04:10:14 UTC
	add options to run depends on various backends

Fix: --- attached file begins here ---
Comment 1 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-05-17 09:02:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->itetcu

I like OPTIONS
Comment 2 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-05-17 09:14:24 UTC
State Changed
From-To: open->feedback

Ask for submitter fix.
Comment 3 dryice 2006-05-17 14:21:48 UTC
Thanks Ion-Mihai for pointing this out. Here is a new patch with fix.

======================================================================
diff -ruN roundup.old/Makefile roundup/Makefile
--- roundup.old/Makefile	Wed May 10 08:54:49 2006
+++ roundup/Makefile	Wed May 17 21:16:22 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(WITH_METAKIT)
+RUN_DEPENDS+=	${PREFIX}/%%PYTHON_SITELIBDIR%%/metakit.py:${PORTSDIR}/databases/metakit
+.endif
+
+.if defined(WITH_PGSQL)
+RUN_DEPENDS+=	${PREFIX}/lib/%%PYTHON_VERSION%%/site-packages/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg
+.endif
+
+.if defined(WITH_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>
======================================================================
-- 
Dryice @ http://dryice.name

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/sylvester-response.html
Comment 4 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-05-17 14:34:03 UTC
State Changed
From-To: feedback->open

new patch received
Comment 5 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-05-19 07:04:27 UTC
State Changed
From-To: open->closed

Commited with fixes: 
s:${PREFIX}/%%PYTHON_SITELIBDIR%%:${PYTHON_SITELIBDIR}: in RUN_DEPENDS