app-containers/podman-compose: Migrate to pypi.eclass

Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
This commit is contained in:
Nils Freydank 2023-03-02 23:14:06 +01:00
parent 9fe920bcc2
commit 3d1032e614
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112

View File

@ -6,12 +6,15 @@ EAPI="8"
COMMIT_ID="" COMMIT_ID=""
DISTUTILS_USE_PEP517=setuptools DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{10..11} ) PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 inherit distutils-r1 pypi
DESCRIPTION="Run docker-compose files without root with podman" DESCRIPTION="Run docker-compose files without root with podman"
HOMEPAGE="https://pypi.org/project/podman-compose/ https://github.com/containers/podman-compose" HOMEPAGE="
https://github.com/containers/podman-compose
https://pypi.org/project/podman-compose/
"
if [[ ${PV} == *9999 ]]; then if [[ ${PV} == *9999 ]]; then
EGIT_REPO_URI="https://github.com/containers/podman-compose.git" EGIT_REPO_URI="https://github.com/containers/podman-compose.git"
inherit git-r3 inherit git-r3
@ -19,8 +22,6 @@ else
if [[ ${PV} == *_p* ]]; then if [[ ${PV} == *_p* ]]; then
SRC_URI="https://github.com/containers/podman-compose/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz" SRC_URI="https://github.com/containers/podman-compose/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/podman-compose-${COMMIT_ID}" S="${WORKDIR}/podman-compose-${COMMIT_ID}"
else
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
fi fi
fi fi
KEYWORDS="~amd64" KEYWORDS="~amd64"