diff --git a/app-admin/gandi-cli/Manifest b/app-admin/gandi-cli/Manifest new file mode 100644 index 0000000..77a720b --- /dev/null +++ b/app-admin/gandi-cli/Manifest @@ -0,0 +1 @@ +DIST gandi.cli-1.6.tar.gz 170850 BLAKE2B 43ea5dabcce6317835b3cb78cc9f70fb3d50f34f563fb65892ae2095b41c02f575ca8e480dbbfcd43d65902ba248862f9db072c1159581818e5e4230d5390c96 SHA512 d3033edf443248a9b25954df5a6a00850cfabfeb2f9e004a8f65b2363d610c1ce86c9a9235d3ac708140094dee77c51d052969d8b1972e63a4a1d0a26dbe448b diff --git a/app-admin/gandi-cli/gandi-cli-1.6.ebuild b/app-admin/gandi-cli/gandi-cli-1.6.ebuild new file mode 100644 index 0000000..62f18d8 --- /dev/null +++ b/app-admin/gandi-cli/gandi-cli-1.6.ebuild @@ -0,0 +1,53 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +MY_PN="${PN/-/.}" + +DESCRIPTION="Command line interface to Gandi.net products using the public API" +HOMEPAGE="https://cli.gandi.net/" +SRC_URI="https://github.com/Gandi/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${MY_PN}-${PV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + dev-libs/openssl + dev-python/IPy[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-vcs/git + net-misc/openssh +" +RDEPEND="${DEPEND}" +BDEPEND="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + # strip rdep specific to namespaces + sed -i -e "s/'setuptools',//" setup.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + rm "${BUILD_DIR}/install$(python_get_sitedir)"/lib/__init__.py + find "${BUILD_DIR}" -name '*.pth' -delete || die +} + +python_install() { + rm "${BUILD_DIR}"/lib/gandi/__init__.py || die + distutils-r1_python_install +} + +python_install_all() { + distutils-r1_python_install_all + find "${D}" -name '*.pth' -delete || die +} diff --git a/app-admin/gandi-cli/metadata.xml b/app-admin/gandi-cli/metadata.xml new file mode 100644 index 0000000..17361c3 --- /dev/null +++ b/app-admin/gandi-cli/metadata.xml @@ -0,0 +1,8 @@ + + + + + alarig@swordarmor.fr + Alarig Le Lay + +