2006-08-23 15:47:02 +02:00
|
|
|
# Ports collection makefile for: py-sqlalchemy
|
2011-03-19 14:39:57 +01:00
|
|
|
# Date created: 12 August 2004
|
2006-08-23 15:47:02 +02:00
|
|
|
# Whom: Dryice Dong Liu <dryice@dryice.name>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sqlalchemy
|
2011-08-10 17:55:20 +02:00
|
|
|
PORTVERSION= 0.7.2
|
2006-08-23 15:47:02 +02:00
|
|
|
CATEGORIES= databases python
|
2010-11-14 10:12:46 +01:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2006-12-17 10:49:46 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2009-05-28 10:42:49 +02:00
|
|
|
DISTNAME= SQLAlchemy-${DISTVERSION}
|
2006-08-23 15:47:02 +02:00
|
|
|
|
2008-12-21 22:57:28 +01:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2006-08-23 15:47:02 +02:00
|
|
|
COMMENT= A Python SQL toolkit and Object Relational Mapper
|
|
|
|
|
2010-10-12 08:09:48 +02:00
|
|
|
USE_PYTHON= yes
|
2009-01-13 15:48:36 +01:00
|
|
|
USE_PYDISTUTILS= easy_install
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= SQLAlchemy
|
2009-05-28 10:42:49 +02:00
|
|
|
PYDISTUTILS_PKGVERSION= ${DISTVERSION}
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_NOEGGINFO= yes
|
2011-06-23 16:16:23 +02:00
|
|
|
PYEASYINSTALL_ARCHDEP= yes
|
2006-08-23 15:47:02 +02:00
|
|
|
|
2007-01-28 00:44:00 +01:00
|
|
|
# bypass infrastructure bug
|
|
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
|
2006-08-23 15:47:02 +02:00
|
|
|
OPTIONS= FIREBIRD "support FireBird" off
|
|
|
|
OPTIONS+= MSSQL "support MS SQL Server" off
|
|
|
|
OPTIONS+= MYSQL "support MySql" on
|
2011-03-19 14:39:57 +01:00
|
|
|
OPTIONS+= NOSE "install Nose for unit tests" off
|
2006-08-23 15:47:02 +02:00
|
|
|
OPTIONS+= POSTGRE "support PostGreSQL" on
|
|
|
|
OPTIONS+= SQLITE "support Sqlite" on
|
2010-11-14 10:12:46 +01:00
|
|
|
OPTIONS+= SYBASE "support Sybase" off
|
2006-08-23 15:47:02 +02:00
|
|
|
|
2011-06-23 16:16:23 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
2009-01-18 11:29:16 +01:00
|
|
|
|
2006-08-23 15:47:02 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2009-01-13 15:48:36 +01:00
|
|
|
AL_PORTDOCS= *.html *.js
|
2010-10-12 08:09:48 +02:00
|
|
|
AL_PORTDOCS_SUBDIR= core dialects orm
|
2006-08-23 15:47:02 +02:00
|
|
|
.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)
|
2009-01-13 15:48:36 +01:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb
|
2006-08-23 15:47:02 +02:00
|
|
|
.endif
|
|
|
|
|
2011-03-19 14:39:57 +01:00
|
|
|
.if defined(WITH_NOSE)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}nose-1.0.0:${PORTSDIR}/devel/py-nose
|
|
|
|
.endif
|
|
|
|
|
2006-08-23 15:47:02 +02:00
|
|
|
.if !defined(WITHOUT_POSTGRE)
|
2009-01-13 15:48:36 +01:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.0.8:${PORTSDIR}/databases/py-psycopg2
|
2006-08-23 15:47:02 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SQLITE)
|
2010-11-14 10:12:46 +01:00
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SYBASE)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/Sybase.py:${PORTSDIR}/databases/py-sybase
|
2006-08-23 15:47:02 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2009-01-13 15:48:36 +01:00
|
|
|
.for i in ${AL_PORTDOCS}
|
2006-08-23 15:47:02 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
2010-10-12 08:09:48 +02:00
|
|
|
.for i in ${AL_PORTDOCS_SUBDIR}
|
|
|
|
${MKDIR} ${DOCSDIR}/${i}
|
|
|
|
@cd ${WRKSRC}/doc/${i} && ${COPYTREE_SHARE} . ${DOCSDIR}/${i}
|
|
|
|
.endfor
|
2006-08-23 15:47:02 +02:00
|
|
|
.endif
|
|
|
|
|
2008-11-19 16:17:21 +01:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2006-08-23 15:47:02 +02:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2009-01-13 15:48:36 +01:00
|
|
|
@cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
|
2008-11-19 16:17:21 +01:00
|
|
|
.endif
|
2006-08-23 15:47:02 +02:00
|
|
|
|
2011-08-10 17:55:20 +02:00
|
|
|
.if ${PYTHON_REL} < 300
|
|
|
|
PLIST_SUB+= SPEEDUPS=""
|
|
|
|
.else
|
|
|
|
# C extensions are not supported in py3k
|
|
|
|
PLIST_SUB+= SPEEDUPS="@comment "
|
|
|
|
PYEASYINSTALL_OSARCH=
|
|
|
|
|
|
|
|
easyinstall-setopt:
|
|
|
|
${DO_NADA}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
2006-08-23 15:47:02 +02:00
|
|
|
.include <bsd.port.post.mk>
|