# Created by: "Choe, Cheng-Dae" whitekid # $FreeBSD: head/databases/py-sqlobject/Makefile 412346 2016-04-01 14:00:51Z mat $ PORTNAME= sqlobject PORTVERSION= 1.6.0 CATEGORIES= databases python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= SQLObject-${PORTVERSION} MAINTAINER= wg@FreeBSD.org COMMENT= Python object for manipulation with SQL table row LICENSE= LGPL21 BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}formencode>=1.2.2:www/py-formencode RUN_DEPENDS:= ${BUILD_DEPENDS} USES= python USE_PYTHON= distutils autoplist OPTIONS_DEFINE= MYSQL PGSQL SQLITE MSSQL SYBASE SYBASE_DESC= sybase support PORTDOCS= * .include .if ${PORT_OPTIONS:MMYSQL} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:databases/py-MySQLdb .endif .if ${PORT_OPTIONS:MPGSQL} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/__init__.py:databases/py-psycopg2 .endif .if ${PORT_OPTIONS:MSQLITE} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3 .endif .if ${PORT_OPTIONS:MMSSQL} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pymssql.py:databases/py-mssql .endif .if ${PORT_OPTIONS:MSYBASE} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sybase>=0.37:databases/py-sybase .endif # currently MaxDB(SAP), ADODB are not supported post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include