freebsd-ports/databases/py-sqlalchemy06/Makefile
Philip M. Gollucci 32812f86be - Update to 0.63
PR:             ports/146225, ports/149103, ports/148486
Submitted by:   ghostonthewire <ghostonthewire@gmail.com>
Approved by:    maintainer timeout (nivit ; 130 days, 59 days, 41 days)
2010-09-09 01:41:56 +00:00

79 lines
2 KiB
Makefile

# Ports collection makefile for: py-sqlalchemy
# Date created: 12 Auguest 2004
# Whom: Dryice Dong Liu <dryice@dryice.name>
#
# $FreeBSD$
#
PORTNAME= sqlalchemy
PORTVERSION= 0.6.3
CATEGORIES= databases python
MASTER_SITES= SF \
CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= SQLAlchemy-${DISTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A Python SQL toolkit and Object Relational Mapper
USE_PYTHON= 2.4+
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= SQLAlchemy
PYDISTUTILS_PKGVERSION= ${DISTVERSION}
PYDISTUTILS_NOEGGINFO= yes
# bypass infrastructure bug
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS= FIREBIRD "support FireBird" off
OPTIONS+= MSSQL "support MS SQL Server" off
OPTIONS+= MYSQL "support MySql" on
OPTIONS+= POSTGRE "support PostGreSQL" on
OPTIONS+= SQLITE "support Sqlite" on
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
.if !defined(NOPORTDOCS)
AL_PORTDOCS= *.html *.js
.endif
.include <bsd.port.pre.mk>
.if defined(WITH_FIREBIRD)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/kinterbasdb/__init__.py:${PORTSDIR}/databases/kinterbasdb
.endif
.if defined(WITH_MSSQL)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pymssql.py:${PORTSDIR}/databases/py-mssql
.endif
.if !defined(WITHOUT_MYSQL)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb
.endif
.if !defined(WITHOUT_POSTGRE)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.0.8:${PORTSDIR}/databases/py-psycopg2
.endif
.if !defined(WITHOUT_SQLITE)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${AL_PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
${MKDIR} ${DOCSDIR}/reference
@cd ${WRKSRC}/doc/reference && ${COPYTREE_SHARE} . ${DOCSDIR}/reference
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>