Date: Sun, 20 Aug 2017 12:30:15 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448413 - head/databases/py-sqlobject Message-ID: <201708201230.v7KCUF01003052@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sun Aug 20 12:30:15 2017 New Revision: 448413 URL: https://svnweb.freebsd.org/changeset/ports/448413 Log: 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) Modified: head/databases/py-sqlobject/Makefile Modified: head/databases/py-sqlobject/Makefile ============================================================================== --- head/databases/py-sqlobject/Makefile Sun Aug 20 12:30:10 2017 (r448412) +++ head/databases/py-sqlobject/Makefile Sun Aug 20 12:30:15 2017 (r448413) @@ -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> +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 -.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 - -post-install: +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708201230.v7KCUF01003052>