2004-07-02 01:11:04 +02:00
|
|
|
# Ports collection makefile for: py-sqlobject
|
|
|
|
# Date created: 24 June 2004
|
|
|
|
# Whom: "Choe, Cheng-Dae" whitekid
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sqlobject
|
2009-09-22 09:21:07 +02:00
|
|
|
PORTVERSION= 0.11.1
|
2004-07-02 01:11:04 +02:00
|
|
|
CATEGORIES= databases python
|
2008-12-18 22:26:45 +01:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2004-07-02 01:11:04 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= SQLObject-${PORTVERSION}
|
|
|
|
|
2009-09-22 09:21:07 +02:00
|
|
|
MAINTAINER= wen@FreeBSD.org
|
2004-07-02 01:11:04 +02:00
|
|
|
COMMENT= A python object for manipulation with SQL table row
|
|
|
|
|
2009-09-22 09:21:07 +02:00
|
|
|
USE_PYTHON= yes
|
2008-12-18 22:26:45 +01:00
|
|
|
USE_PYDISTUTILS= easy_install
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= SQLObject
|
|
|
|
PYDISTUTILS_NOEGGINFO= yes # XXX convert easy_install support to bsd.python.mk's
|
2006-12-31 14:48:57 +01:00
|
|
|
|
2005-11-17 18:48:26 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2006-11-10 22:16:00 +01:00
|
|
|
OPTIONS= MYSQL "MySQL supports" off \
|
|
|
|
PGSQL "PostgreSQL Supports" off \
|
2006-12-31 14:48:57 +01:00
|
|
|
SQLITE "SQLite Supports" off \
|
|
|
|
MSSQL "MSSQL Supports" off
|
2006-11-10 22:16:00 +01:00
|
|
|
|
|
|
|
# bypass infrastructure bug
|
|
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
|
2006-12-04 09:55:33 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-12-31 14:48:57 +01:00
|
|
|
PYSQLOBJECT_EGG= SQLObject-${SQLOBJECTVER}-py${PYTHONVER}.egg
|
|
|
|
PYFORMENCODE_EGG!= ${MAKE} -f ${PORTSDIR}/www/py-formencode/Makefile -V PYFORMENCODE_EGG
|
|
|
|
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/${PYFORMENCODE_EGG}:${PORTSDIR}/www/py-formencode
|
2006-11-10 22:16:00 +01:00
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
2007-02-04 13:07:53 +01:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/__init__.py:${PORTSDIR}/databases/py-psycopg2
|
2006-11-10 22:16:00 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SQLITE)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
|
|
|
|
.endif
|
|
|
|
|
2006-12-31 14:48:57 +01:00
|
|
|
.if defined(WITH_MSSQL)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pymssql.py:${PORTSDIR}/databases/py-mssql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# currently FireBird, MaxDB(SAP), Sybase, ADODB are not supported
|
2006-11-10 22:16:00 +01:00
|
|
|
|
2004-10-13 11:25:45 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/README.txt ${DOCSDIR}
|
2005-10-23 01:10:52 +02:00
|
|
|
${CP} -r ${WRKSRC}/docs/* ${DOCSDIR}
|
2004-10-13 11:25:45 +02:00
|
|
|
.endif
|
|
|
|
|
2006-11-10 22:16:00 +01:00
|
|
|
.include <bsd.port.post.mk>
|