aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorDanilo G. Baio <dbaio@FreeBSD.org>2019-01-26 12:52:06 +0000
committerDanilo G. Baio <dbaio@FreeBSD.org>2019-01-26 12:52:06 +0000
commit4db9af1d348f8f6c1cc13905efca91758ee81e44 (patch)
tree0db4b554419431281cc4ba24b7f336735fd8d288 /Mk
parent96b02eb435af98ce4fc9a720afb72476d68c5473 (diff)
downloadports-4db9af1d348f8f6c1cc13905efca91758ee81e44.tar.gz
ports-4db9af1d348f8f6c1cc13905efca91758ee81e44.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/azurepy.mk41
1 files changed, 41 insertions, 0 deletions
diff --git a/Mk/Uses/azurepy.mk b/Mk/Uses/azurepy.mk
new file mode 100644
index 000000000000..48764636ee6d
--- /dev/null
+++ b/Mk/Uses/azurepy.mk
@@ -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