diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2017-08-20 20:30:15 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2017-08-20 20:30:15 +0800 |
commit | 79e3c885390c9cb077813990af033821d9133f3c (patch) | |
tree | aa7c5c34a536db885e917c476d01da1a2f764a09 /databases | |
parent | 7491e44fab93dcd5270fd20abd3df39636ee6cdf (diff) | |
download | freebsd-ports-gnome-79e3c885390c9cb077813990af033821d9133f3c.tar.gz freebsd-ports-gnome-79e3c885390c9cb077813990af033821d9133f3c.tar.zst freebsd-ports-gnome-79e3c885390c9cb077813990af033821d9133f3c.zip |
Convert to options helper
- Update RUN_DEPENDS of MSSQL option from expired databases/py-mssql to databases/py-pymssql
- While I'm here:
- Add NO_ARCH
- Sort USE_PYTHON
Approved by: portmgr (blanket)
Diffstat (limited to 'databases')
-rw-r--r-- | databases/py-sqlobject/Makefile | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/databases/py-sqlobject/Makefile b/databases/py-sqlobject/Makefile index a9839c69b274..cd4292e85bff 100644 --- a/databases/py-sqlobject/Makefile +++ b/databases/py-sqlobject/Makefile @@ -16,39 +16,23 @@ LICENSE= LGPL21 BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}formencode>=1.2.2:www/py-formencode RUN_DEPENDS:= ${BUILD_DEPENDS} +NO_ARCH= yes USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist distutils +# currently MaxDB(SAP), ADODB are not supported OPTIONS_DEFINE= MYSQL PGSQL SQLITE MSSQL SYBASE SYBASE_DESC= sybase support PORTDOCS= * -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MMYSQL} -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:databases/py-MySQLdb -.endif - -.if ${PORT_OPTIONS:MPGSQL} -RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/__init__.py:databases/py-psycopg2 -.endif - -.if ${PORT_OPTIONS:MSQLITE} -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3 -.endif - -.if ${PORT_OPTIONS:MMSSQL} -RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pymssql.py:databases/py-mssql -.endif - -.if ${PORT_OPTIONS:MSYBASE} -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sybase>=0.37:databases/py-sybase -.endif - -# currently MaxDB(SAP), ADODB are not supported +MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:databases/py-MySQLdb +PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=0:databases/py-psycopg2 +SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3 +MSSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymssql>=0:databases/py-pymssql +SYBASE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sybase>=0.37:databases/py-sybase -post-install: +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) |