From owner-svn-ports-head@freebsd.org Sun Aug 20 12:30:16 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8BE7DCF56E; Sun, 20 Aug 2017 12:30:16 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8222C2CF3; Sun, 20 Aug 2017 12:30:16 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7KCUFGM003053; Sun, 20 Aug 2017 12:30:15 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7KCUF01003052; Sun, 20 Aug 2017 12:30:15 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201708201230.v7KCUF01003052@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 20 Aug 2017 12:30:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448413 - head/databases/py-sqlobject X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: head/databases/py-sqlobject X-SVN-Commit-Revision: 448413 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Aug 2017 12:30:16 -0000 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 +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})