2005-11-13 17:10:37 +00:00
|
|
|
# New ports collection makefile for: quixote-session2
|
|
|
|
# Date created: 15 June 2005
|
|
|
|
# Whom: Dryice Liu <dryice@liu.com.cn>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= session2
|
2006-02-09 10:30:50 +00:00
|
|
|
PORTVERSION= 0.6.1
|
2005-11-13 17:10:37 +00:00
|
|
|
CATEGORIES= www python
|
|
|
|
MASTER_SITES= http://quixote.idyll.org/session2/ \
|
2006-03-15 18:21:26 +00:00
|
|
|
http://dryice.name/computer/FreeBSD/distfiles/
|
2005-11-13 17:10:37 +00:00
|
|
|
DISTNAME= session2-${PORTVERSION}
|
|
|
|
|
2006-01-11 04:01:50 +00:00
|
|
|
MAINTAINER= dryice@dryice.name
|
2005-11-13 17:10:37 +00:00
|
|
|
COMMENT= A quixote session manager with persistence support
|
|
|
|
|
|
|
|
USE_PYTHON= 2.3+
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
|
|
|
|
OPTIONS= MYSQL "MySQLdb support" on
|
|
|
|
OPTIONS+= POSTGRESQL "psycopg support" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_POSTGRESQL)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
2006-02-09 10:30:50 +00:00
|
|
|
.for docfile in ChangeLog default.css README.html README.txt TODO
|
2005-11-13 17:10:37 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|