2017-07-21 09:12:52 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.78 2017/07/21 09:12:52 ajacoutot Exp $
|
2016-01-30 18:07:46 +00:00
|
|
|
|
|
|
|
COMMENT= manage resources on Google's Cloud Platform
|
|
|
|
|
2017-07-21 09:12:52 +00:00
|
|
|
V= 163.0.0
|
2016-01-30 18:07:46 +00:00
|
|
|
DISTNAME= google-cloud-sdk-${V}-linux-x86
|
|
|
|
PKGNAME= google-cloud-sdk-${V}
|
|
|
|
WRKDIST= ${WRKDIR}/google-cloud-sdk
|
|
|
|
|
|
|
|
CATEGORIES= sysutils
|
|
|
|
|
|
|
|
HOMEPAGE= https://developers.google.com/cloud/sdk
|
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
|
|
|
# Apache 2.0
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= https://dl.google.com/dl/cloudsdk/release/downloads/
|
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
|
|
|
RUN_DEPENDS= devel/git
|
|
|
|
|
|
|
|
NO_TEST= Yes
|
|
|
|
|
2016-01-31 10:02:57 +00:00
|
|
|
do-build:
|
|
|
|
# cannot set NO_BUILD=Yes because it would remove the dependency on python
|
|
|
|
|
2016-01-30 18:07:46 +00:00
|
|
|
pre-configure:
|
2016-01-31 10:02:57 +00:00
|
|
|
# wildcard, cannot use MODPY_ADJ_FILES
|
2016-01-30 18:07:46 +00:00
|
|
|
find ${WRKSRC}/bin{,/bootstrapping}/* -type f -exec \
|
|
|
|
${MODPY_BIN_ADJ} '{}' \+
|
|
|
|
${SUBST_CMD} ${WRKSRC}/lib/googlecloudsdk/core/config.py \
|
2017-05-12 07:40:59 +00:00
|
|
|
${WRKSRC}/bin/{bq,docker-credential-gcloud,gcloud,git-credential-gcloud.sh,gsutil}
|
2016-01-30 18:07:46 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
cp -Rp ${WRKSRC} ${PREFIX}
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/google-cloud-sdk \
|
|
|
|
${PREFIX}/share/zsh/vendor-completions \
|
|
|
|
${PREFIX}/share/bash-completion/completions
|
|
|
|
|
|
|
|
mv ${PREFIX}/google-cloud-sdk/help/man/man1/* ${PREFIX}/man/man1/
|
|
|
|
mv ${PREFIX}/google-cloud-sdk/{LICENSE,README,RELEASE_NOTES} \
|
|
|
|
${PREFIX}/share/doc/google-cloud-sdk
|
|
|
|
mv ${PREFIX}/google-cloud-sdk/completion.bash.inc \
|
|
|
|
${PREFIX}/share/bash-completion/completions/google-cloud-sdk
|
|
|
|
mv ${PREFIX}/google-cloud-sdk/completion.zsh.inc \
|
|
|
|
${PREFIX}/share/zsh/vendor-completions/_google-cloud-sdk
|
|
|
|
|
|
|
|
rm -rf ${PREFIX}/google-cloud-sdk/{.install,install.{sh,bat},help}
|
|
|
|
rm -rf ${PREFIX}/google-cloud-sdk/path.{bash,zsh}.inc
|
|
|
|
|
|
|
|
find ${PREFIX} -type f \( -name '*.beforesubst' -or -name '*.orig' \) \
|
|
|
|
-exec rm '{}' \+
|
|
|
|
|
|
|
|
find ${PREFIX} -type d -name python3 -exec rm -rf '{}' \+
|
2016-09-01 09:06:41 +00:00
|
|
|
# XXX ||true: ignore python >=3.5 syntax in unused examples
|
2016-01-30 18:07:46 +00:00
|
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
|
2016-09-01 09:06:41 +00:00
|
|
|
${PREFIX}/google-cloud-sdk/{lib,platform} || true
|
2016-01-30 18:07:46 +00:00
|
|
|
|
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/google-cloud-sdk
|
|
|
|
chown -R ${BINOWN}:${BINGRP} ${PREFIX}/google-cloud-sdk/bin
|
|
|
|
chown -R ${MANOWN}:${MANGRP} ${PREFIX}/man1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|