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
This commit is contained in:
parent
96b02eb435
commit
4db9af1d34
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=491290
41
Mk/Uses/azurepy.mk
Normal file
41
Mk/Uses/azurepy.mk
Normal file
@ -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
|
@ -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
|
||||
|
31
sysutils/py-azure-cli-base/Makefile
Normal file
31
sysutils/py-azure-cli-base/Makefile
Normal file
@ -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>
|
7
sysutils/py-azure-cli-base/files/__init__.py
Normal file
7
sysutils/py-azure-cli-base/files/__init__.py
Normal file
@ -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__)
|
9
sysutils/py-azure-cli-base/pkg-descr
Normal file
9
sysutils/py-azure-cli-base/pkg-descr
Normal file
@ -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
|
15
sysutils/py-azure-cli-base/pkg-plist
Normal file
15
sysutils/py-azure-cli-base/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user