From eb8152135c105f461466850c65d558ee8a764142 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Thu, 18 Oct 2018 18:16:26 +0200 Subject: [PATCH] gandi-cli: really generate man page Needs setuptools for the entry point. --- srcpkgs/gandi-cli/template | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/srcpkgs/gandi-cli/template b/srcpkgs/gandi-cli/template index c70fb0a5720..76a2fa615f3 100644 --- a/srcpkgs/gandi-cli/template +++ b/srcpkgs/gandi-cli/template @@ -1,21 +1,26 @@ # Template file for 'gandi-cli' pkgname=gandi-cli version=1.3 -revision=1 +revision=2 noarch=yes wrksrc="gandi.cli-${version}" build_style=python3-module pycompile_module="gandi/cli" hostmakedepends="python3-docutils python3-setuptools" -depends="python3-IPy python3-click python3-requests python3-yaml" +depends="python3-setuptools python3-IPy python3-click python3-requests python3-yaml" checkdepends="$depends python3-pytest" short_desc="Command line interface to Gandi.net" maintainer="Lon Willett " -license="GPL-3" +license="GPL-3.0-or-later" homepage="http://cli.gandi.net" -distfiles="https://github.com/Gandi/gandi.cli/archive/${version}.tar.gz>${wrksrc}.tar.gz" +distfiles="https://github.com/Gandi/gandi.cli/archive/${version}.tar.gz" checksum=e6a28a26cfa16ad4d369958146152b293b4a0e68df6e9cfbfc2d07f84fbaa5e7 do_check() { python3 -m pytest } + +post_install() { + rst2man --no-generator gandicli.man.rst > gandi.1 + vman gandi.1 +}