diff options
| author | Nicola Vitale <nivit@FreeBSD.org> | 2006-12-31 13:48:57 +0000 |
|---|---|---|
| committer | Nicola Vitale <nivit@FreeBSD.org> | 2006-12-31 13:48:57 +0000 |
| commit | e5413cf277eafb88195a2454215a7c7aadce5617 (patch) | |
| tree | 09527a38e3b217039a4e8fe57d7da85bafd9ea27 /databases/py-sqlobject/Makefile | |
| parent | - add USE_GNUSTEP_LOCAL_SERVICES (diff) | |
- Updated to 0.7.2
- Added files/pkg-deinstall files/pkg-install
- Added another MASTER_SITE
- Added optional MSSQL support
- Removed files/patch-setup.py
- Taken maintainership by dryice@
PR: 106775
Submitted by: dryice@dryice.name
Approved by: alexbl (mentor), dryice (maintainer)
Notes
Notes:
svn path=/head/; revision=181145
Diffstat (limited to 'databases/py-sqlobject/Makefile')
| -rw-r--r-- | databases/py-sqlobject/Makefile | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/databases/py-sqlobject/Makefile b/databases/py-sqlobject/Makefile index a4ac7d7b8720..9a62f4dad4cb 100644 --- a/databases/py-sqlobject/Makefile +++ b/databases/py-sqlobject/Makefile @@ -6,18 +6,28 @@ # PORTNAME= sqlobject -PORTVERSION= 0.7.0 -PORTREVISION= 2 +PORTVERSION= 0.7.2 CATEGORIES= databases python -MASTER_SITES= http://cheeseshop.python.org/packages/source/S/SQLObject/ +MASTER_SITES= http://cheeseshop.python.org/packages/source/S/SQLObject/ \ + http://dryice.name/computer/FreeBSD/distfiles/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= SQLObject-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= dryice@FreeBSD.org COMMENT= A python object for manipulation with SQL table row +BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools +RUN_DEPENDS+= ${BUILD_DEPENDS} + USE_PYTHON= yes USE_PYDISTUTILS= yes +SQLOBJECTVER?= ${PORTVERSION} +PYTHONVER?= ${PYTHON_VERSION:S/^python//} +PLIST_SUB= PYSQLOBJECT_EGG=${PYSQLOBJECT_EGG} + +SUB_FILES+= pkg-deinstall pkg-install +SUB_LIST+= EGG="SQLObject==${SQLOBJECTVER}" \ + PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} @@ -26,14 +36,18 @@ PORTDOCS= * OPTIONS= MYSQL "MySQL supports" off \ PGSQL "PostgreSQL Supports" off \ - SQLITE "SQLite Supports" off + SQLITE "SQLite Supports" off \ + MSSQL "MSSQL Supports" off # bypass infrastructure bug OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options .include <bsd.port.pre.mk> -RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/formencode/__init__.py:${PORTSDIR}/www/py-formencode +PYSQLOBJECT_EGG= SQLObject-${SQLOBJECTVER}-py${PYTHONVER}.egg +PYFORMENCODE_EGG!= ${MAKE} -f ${PORTSDIR}/www/py-formencode/Makefile -V PYFORMENCODE_EGG + +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/${PYFORMENCODE_EGG}:${PORTSDIR}/www/py-formencode .if defined(WITH_MYSQL) RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb @@ -47,7 +61,11 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopgmodule.so:${PORTSDIR}/databases/py-psy RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20 .endif -# currently FireBird, MaxDB(SAP), Sybase, MSSQL, ADODB are not supported +.if defined(WITH_MSSQL) +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pymssql.py:${PORTSDIR}/databases/py-mssql +.endif + +# currently FireBird, MaxDB(SAP), Sybase, ADODB are not supported post-install: .if !defined(NOPORTDOCS) |
