app-emulation/google-compute-engine: EAPI 8, fix pkgcheck, use eclass

I can't find any evidence that this actually uses setuptools at runtime.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2024-08-21 13:38:27 +01:00
parent 3d544fe172
commit d3a90670c8
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137
3 changed files with 18 additions and 22 deletions

View File

@ -1 +1 @@
DIST 20190124.tar.gz 126211 BLAKE2B 7608ec8370f9c1aa1da4cf0f0ec20ff86ef07846bdcb6aabac6de441326a78e98b559502b11ee4028065eb8056f9ee6c2f3247e26485e8c9af70892d955236f7 SHA512 8f12c2a361ebd833b0eb3fa6ef26f42a82b4ef6497d8e5231eeaaf5b2e6dd1662ec596e1bbad73e06207ac29e098863311538c360c62efe9fd5cc9b58d1b8ad4 DIST google-compute-engine-20190124.tar.gz 126211 BLAKE2B 7608ec8370f9c1aa1da4cf0f0ec20ff86ef07846bdcb6aabac6de441326a78e98b559502b11ee4028065eb8056f9ee6c2f3247e26485e8c9af70892d955236f7 SHA512 8f12c2a361ebd833b0eb3fa6ef26f42a82b4ef6497d8e5231eeaaf5b2e6dd1662ec596e1bbad73e06207ac29e098863311538c360c62efe9fd5cc9b58d1b8ad4

View File

@ -1,27 +1,26 @@
# Copyright (c) 2016-2018 CoreOS, Inc. All rights reserved. # Copyright (c) 2016-2018 CoreOS, Inc. All rights reserved.
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=6 EAPI=8
inherit eutils PYTHON_COMPAT=( python3_11 )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="Linux Guest Environment for Google Compute Engine" DESCRIPTION="Linux Guest Environment for Google Compute Engine"
HOMEPAGE="https://github.com/GoogleCloudPlatform/compute-image-packages" HOMEPAGE="https://github.com/GoogleCloudPlatform/compute-image-packages"
SRC_URI="https://github.com/GoogleCloudPlatform/compute-image-packages/archive/${PV}.tar.gz" SRC_URI="https://github.com/GoogleCloudPlatform/compute-image-packages/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/compute-image-packages-${PV}"
LICENSE="MIT" LICENSE="MIT"
SLOT="0" SLOT="0"
KEYWORDS="amd64 x86" KEYWORDS="amd64"
IUSE=""
DEPEND="dev-python/setuptools"
# These dependencies cover all commands called by the scripts. # These dependencies cover all commands called by the scripts.
RDEPEND=" RDEPEND="
app-admin/sudo app-admin/sudo
dev-python/boto dev-python/boto[${PYTHON_USEDEP}]
dev-python/distro dev-python/distro[${PYTHON_USEDEP}]
dev-python/setuptools
sys-apps/ethtool sys-apps/ethtool
sys-apps/coreutils sys-apps/coreutils
sys-apps/gawk sys-apps/gawk
@ -29,13 +28,3 @@ RDEPEND="
sys-apps/iproute2 sys-apps/iproute2
sys-apps/shadow sys-apps/shadow
" "
S="${WORKDIR}/compute-image-packages-${PV}"
src_compile() {
(cd "${S}" && exec python3 setup.py build)
}
src_install() {
(cd "${S}" && exec python3 setup.py install -O1 --skip-build --root "${D}")
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">GoogleCloudPlatform/compute-image-packages</remote-id>
</upstream>
</pkgmetadata>