pkgsrc/sysutils/py-google-compute-engine/Makefile
wiz 67e1f1a6bf python: egg.mk: add USE_PKG_RESOURCES flag
This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
2022-01-05 15:40:56 +00:00

40 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2022/01/05 15:41:22 wiz Exp $
GITHUB_PROJECT= compute-image-packages
GITHUB_TAG= 20170829
DISTNAME= google-compute-engine-${GITHUB_TAG}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=GoogleCloudPlatform/}
DIST_SUBDIR= ${GITHUB_PROJECT}
MAINTAINER= bsiegert@NetBSD.org
HOMEPAGE= https://cloud.google.com/compute/docs/images
COMMENT= Packages for Google Compute Engine images
LICENSE= apache-2.0
# Uses [[ =~ ]]
USE_TOOLS+= bash:run
REPLACE_BASH+= scripts/optimize_local_ssd scripts/set_multiqueue
WRKSRC= ${WRKDIR}/compute-image-packages-${GITHUB_TAG}
SUBST_CLASSES+= paths
SUBST_FILES.paths= google_compute_engine/config_manager.py \
google_compute_engine/accounts/accounts_daemon.py \
google_compute_engine/accounts/accounts_utils.py \
google_compute_engine/boto/boto_config.py \
google_compute_engine/clock_skew/clock_skew_daemon.py \
google_compute_engine/instance_setup/instance_config.py \
google_compute_engine/ip_forwarding/ip_forwarding_daemon.py
SUBST_STAGE.paths= pre-configure
SUBST_MESSAGE.paths= Fixing absolute paths.
SUBST_SED.paths= -e 's,/etc,${PREFIX},g'
SUBST_SED.paths+= -e 's,/var,${VARBASE},g'
SUBST_NOOP_OK.paths= yes # the paths look broken, someone should fix this
USE_PKG_RESOURCES= yes
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"