File:  [cvs.NetBSD.org] / pkgsrc / sysutils / py-google-compute-engine / Makefile
Revision 1.6: download - view: text, annotated - select for diffs
Tue Jan 4 20:54:48 2022 UTC (2 years, 10 months ago) by wiz
Branches: MAIN
CVS tags: HEAD
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS

# $NetBSD: Makefile,v 1.6 2022/01/04 20:54:48 wiz Exp $

GITHUB_PROJECT=	compute-image-packages
GITHUB_TAG=	20170829
DISTNAME=	google-compute-engine-${GITHUB_TAG}
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
PKGREVISION=	1
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

.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>