Added
Link Here
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= sqlalchemy |
4 |
PORTVERSION= 1.2.1 |
5 |
PORTREVISION= 0 |
6 |
CATEGORIES= databases python |
7 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
PKGNAMESUFFIX= 12 |
10 |
DISTNAME= SQLAlchemy-${PORTVERSION} |
11 |
|
12 |
MAINTAINER= vishwin@vishwin.info |
13 |
COMMENT= Python SQL toolkit and Object Relational Mapper 1.2.x |
14 |
|
15 |
LICENSE= MIT |
16 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
17 |
|
18 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}pytest>=2.5.2:devel/py-pytest@${FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}pytest-xdist>=0:devel/py-pytest-xdist@${FLAVOR} |
21 |
|
22 |
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}sqlalchemy1[01] |
23 |
|
24 |
OPTIONS_DEFINE= DOCS EXAMPLES |
25 |
OPTIONS_MULTI= BACKEND |
26 |
OPTIONS_MULTI_BACKEND= MSSQL MYSQL PGSQL SQLITE SYBASE |
27 |
OPTIONS_DEFAULT=SQLITE |
28 |
|
29 |
USE_PYTHON= autoplist concurrent distutils |
30 |
USES= python:2.7+ |
31 |
|
32 |
PORTDOCS= * |
33 |
PORTEXAMPLES= * |
34 |
|
35 |
MSSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mssql>=0:databases/py-pymssql@${FLAVOR} |
36 |
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymysql>=0:databases/py-pymysql@${FLAVOR} |
37 |
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.5.0:databases/py-psycopg2@${FLAVOR} |
38 |
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${FLAVOR} |
39 |
SYBASE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sybase>=0:databases/py-sybase@${FLAVOR} |
40 |
|
41 |
post-install: |
42 |
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sqlalchemy/*.so |
43 |
|
44 |
post-install-DOCS-on: |
45 |
${MKDIR} ${STAGEDIR}${DOCSDIR}/ |
46 |
cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} |
47 |
|
48 |
post-install-EXAMPLES-on: |
49 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ |
50 |
cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} |
51 |
|
52 |
.include <bsd.port.mk> |