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)
This commit is contained in:
parent
d9f4e86950
commit
8b00ad7ff1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448413
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user