aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-sqlalchemy06
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2012-04-28 16:56:16 +0800
committernivit <nivit@FreeBSD.org>2012-04-28 16:56:16 +0800
commit5997d39597a42784ffd056d4aecbbb178903162d (patch)
tree5d9cdab90ab0ea40383e861ecd52908337733705 /databases/py-sqlalchemy06
parent2c4df114482f9d05466ba2713aebe112816d1f6a (diff)
downloadfreebsd-ports-gnome-5997d39597a42784ffd056d4aecbbb178903162d.tar.gz
freebsd-ports-gnome-5997d39597a42784ffd056d4aecbbb178903162d.tar.zst
freebsd-ports-gnome-5997d39597a42784ffd056d4aecbbb178903162d.zip
- Add databases/py-MySQLdb to RUN_DEPENDS only when
Python version < 3.0, because such port does not build with Py3k - Replace POSTGRE with the standard PGSQL option listed in ports/KNOB [1] PR: ports/166513 Submitted by: olgeni [1]
Diffstat (limited to 'databases/py-sqlalchemy06')
-rw-r--r--databases/py-sqlalchemy06/Makefile7
-rw-r--r--databases/py-sqlalchemy06/pkg-plist1
2 files changed, 5 insertions, 3 deletions
diff --git a/databases/py-sqlalchemy06/Makefile b/databases/py-sqlalchemy06/Makefile
index 943565c91ba3..6c6a7706a181 100644
--- a/databases/py-sqlalchemy06/Makefile
+++ b/databases/py-sqlalchemy06/Makefile
@@ -15,6 +15,7 @@ DISTNAME= SQLAlchemy-${DISTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A Python SQL toolkit and Object Relational Mapper
+# Python3 ready
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= SQLAlchemy
@@ -28,7 +29,7 @@ OPTIONS= FIREBIRD "support FireBird" off
OPTIONS+= MSSQL "support MS SQL Server" off
OPTIONS+= MYSQL "support MySql" on
OPTIONS+= NOSE "install Nose for unit tests" off
-OPTIONS+= POSTGRE "support PostGreSQL" on
+OPTIONS+= PGSQL "support PostGreSQL" on
OPTIONS+= SQLITE "support Sqlite" on
OPTIONS+= SYBASE "support Sybase" off
@@ -50,7 +51,7 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/kinterbasdb/__init__.py:${PORTSDIR}/databases
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pymssql.py:${PORTSDIR}/databases/py-mssql
.endif
-.if !defined(WITHOUT_MYSQL)
+.if !defined(WITHOUT_MYSQL) && ${PYTHON_REL} < 3.0
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb
.endif
@@ -58,7 +59,7 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MyS
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}nose-1.0.0:${PORTSDIR}/devel/py-nose
.endif
-.if !defined(WITHOUT_POSTGRE)
+.if !defined(WITHOUT_PGSQL)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.0.8:${PORTSDIR}/databases/py-psycopg2
.endif
diff --git a/databases/py-sqlalchemy06/pkg-plist b/databases/py-sqlalchemy06/pkg-plist
index 04bda8ce8134..86ceaa1107ac 100644
--- a/databases/py-sqlalchemy06/pkg-plist
+++ b/databases/py-sqlalchemy06/pkg-plist
@@ -1,3 +1,4 @@
+@comment $FreeBSD$
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt