Date: Sat, 26 Jan 2019 12:52:07 +0000 (UTC) From: "Danilo G. Baio" <dbaio@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r491290 - in head: Mk/Uses sysutils sysutils/py-azure-cli-base sysutils/py-azure-cli-base/files Message-ID: <201901261252.x0QCq7sI024778@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dbaio Date: Sat Jan 26 12:52:06 2019 New Revision: 491290 URL: https://svnweb.freebsd.org/changeset/ports/491290 Log: Add USES azurepy: Shared namespace for py-azure-* ports USES=azurepy provides common files that are shared among all py-azure-* ports: azure/__init__.py azure/cli/__init__.py azure/cli/command_modules/__init__.py azure/mgmt/__init__.py azure/mgmt/datalake/__init__.py Reviewed by: antoine, mat Approved by: portmgr (mat) Differential Revision: https://reviews.freebsd.org/D18573 Added: head/Mk/Uses/azurepy.mk (contents, props changed) head/sysutils/py-azure-cli-base/ head/sysutils/py-azure-cli-base/Makefile (contents, props changed) head/sysutils/py-azure-cli-base/files/ head/sysutils/py-azure-cli-base/files/__init__.py (contents, props changed) head/sysutils/py-azure-cli-base/pkg-descr (contents, props changed) head/sysutils/py-azure-cli-base/pkg-plist (contents, props changed) Modified: head/sysutils/Makefile Added: head/Mk/Uses/azurepy.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/azurepy.mk Sat Jan 26 12:52:06 2019 (r491290) @@ -0,0 +1,41 @@ +# $FreeBSD$ +# +# Shared namespace for py-azure-* ports +# Feature: azurepy +# Usage: USES= azurepy +# MAINTAINER: dbaio@FreeBSD.org + +.if !defined(_INCLUDE_USES_AZUREPY_MK) +_INCLUDE_USES_AZUREPY_MK= yes + +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}azure-cli-base>=0:sysutils/py-azure-cli-base@${PY_FLAVOR} + +POST_PLIST= trim-backports-namespace + +_USES_install+= 701:remove-common-files +remove-common-files: + @${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/__init__.py* \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/__init__.py* \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/command_modules/__init__.py* \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt/__init__.py* \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt/datalake/__init__.py* + @${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/__pycache__ \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/__pycache__ \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/command_modules/__pycache__ \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt/__pycache__ \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt/datalake/__pycache__ + +trim-backports-namespace: + @${REINPLACE_CMD} -e '/azure\/__init__.py*/d' \ + -e '/azure\/cli\/__init__.py*/d' \ + -e '/azure\/cli\/command_modules\/__init__.py*/d' \ + -e '/azure\/mgmt\/__init__.py*/d' \ + -e '/azure\/mgmt\/datalake\/__init__.py*/d' \ + -e '/azure\/__pycache__*/d' \ + -e '/azure\/cli\/__pycache__*/d' \ + -e '/azure\/cli\/command_modules\/__pycache__*/d' \ + -e '/azure\/mgmt\/__pycache__*/d' \ + -e '/azure\/mgmt\/datalake\/__pycache__*/d' \ + ${TMPPLIST} + +.endif Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Sat Jan 26 12:44:17 2019 (r491289) +++ head/sysutils/Makefile Sat Jan 26 12:52:06 2019 (r491290) @@ -954,6 +954,7 @@ SUBDIR += py-analyzemft SUBDIR += py-ansible-lint SUBDIR += py-ansible-runner + SUBDIR += py-azure-cli-base SUBDIR += py-bcfg2 SUBDIR += py-cdmi SUBDIR += py-consul Added: head/sysutils/py-azure-cli-base/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-azure-cli-base/Makefile Sat Jan 26 12:52:06 2019 (r491290) @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= azure-cli-base +PORTVERSION= 1.0.0 +CATEGORIES= sysutils python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= + +MAINTAINER= dbaio@FreeBSD.org +COMMENT= Shared namespace for py-azure-* ports + +LICENSE= MIT + +NO_FETCH= yes +NO_BUILD= yes +NO_ARCH= yes +USES= python +USE_PYTHON= flavors py3kplist + +do-install: + ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/command_modules + ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt/datalake + ${INSTALL_DATA} ${FILESDIR}/__init__.py ${STAGEDIR}${PYTHON_SITELIBDIR}/azure + ${INSTALL_DATA} ${FILESDIR}/__init__.py ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli + ${INSTALL_DATA} ${FILESDIR}/__init__.py ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/cli/command_modules + ${INSTALL_DATA} ${FILESDIR}/__init__.py ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt + ${INSTALL_DATA} ${FILESDIR}/__init__.py ${STAGEDIR}${PYTHON_SITELIBDIR}/azure/mgmt/datalake + ${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} + ${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} + +.include <bsd.port.mk> Added: head/sysutils/py-azure-cli-base/files/__init__.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-azure-cli-base/files/__init__.py Sat Jan 26 12:52:06 2019 (r491290) @@ -0,0 +1,7 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import pkg_resources +pkg_resources.declare_namespace(__name__) Added: head/sysutils/py-azure-cli-base/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-azure-cli-base/pkg-descr Sat Jan 26 12:52:06 2019 (r491290) @@ -0,0 +1,9 @@ +Shared namespace for py-azure-* ports + +py-azure-cli-base provides common files that are shared among all py-azure-* +ports: + azure/__init__.py + azure/cli/__init__.py + azure/cli/command_modules/__init__.py + azure/mgmt/__init__.py + azure/mgmt/datalake/__init__.py Added: head/sysutils/py-azure-cli-base/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-azure-cli-base/pkg-plist Sat Jan 26 12:52:06 2019 (r491290) @@ -0,0 +1,15 @@ +%%PYTHON_SITELIBDIR%%/azure/__init__.py +%%PYTHON_SITELIBDIR%%/azure/cli/__init__.py +%%PYTHON_SITELIBDIR%%/azure/cli/command_modules/__init__.py +%%PYTHON_SITELIBDIR%%/azure/mgmt/__init__.py +%%PYTHON_SITELIBDIR%%/azure/mgmt/datalake/__init__.py +%%PYTHON_SITELIBDIR%%/azure/__init__.pyo +%%PYTHON_SITELIBDIR%%/azure/__init__.pyc +%%PYTHON_SITELIBDIR%%/azure/cli/__init__.pyo +%%PYTHON_SITELIBDIR%%/azure/cli/__init__.pyc +%%PYTHON_SITELIBDIR%%/azure/cli/command_modules/__init__.pyo +%%PYTHON_SITELIBDIR%%/azure/cli/command_modules/__init__.pyc +%%PYTHON_SITELIBDIR%%/azure/mgmt/__init__.pyo +%%PYTHON_SITELIBDIR%%/azure/mgmt/__init__.pyc +%%PYTHON_SITELIBDIR%%/azure/mgmt/datalake/__init__.pyo +%%PYTHON_SITELIBDIR%%/azure/mgmt/datalake/__init__.pyc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901261252.x0QCq7sI024778>