app-admin/gandi-cli: new package, add 1.6
This commit is contained in:
parent
15a5237d88
commit
bcb5b0248e
1
app-admin/gandi-cli/Manifest
Normal file
1
app-admin/gandi-cli/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
DIST gandi.cli-1.6.tar.gz 170850 BLAKE2B 43ea5dabcce6317835b3cb78cc9f70fb3d50f34f563fb65892ae2095b41c02f575ca8e480dbbfcd43d65902ba248862f9db072c1159581818e5e4230d5390c96 SHA512 d3033edf443248a9b25954df5a6a00850cfabfeb2f9e004a8f65b2363d610c1ce86c9a9235d3ac708140094dee77c51d052969d8b1972e63a4a1d0a26dbe448b
|
53
app-admin/gandi-cli/gandi-cli-1.6.ebuild
Normal file
53
app-admin/gandi-cli/gandi-cli-1.6.ebuild
Normal file
|
@ -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
|
||||
}
|
8
app-admin/gandi-cli/metadata.xml
Normal file
8
app-admin/gandi-cli/metadata.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>alarig@swordarmor.fr</email>
|
||||
<name>Alarig Le Lay</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Loading…
Reference in a new issue