commit:     88380a5a3bc7558631f4c9bf983b23ed553c958d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 14 06:30:12 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 14 06:47:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88380a5a

sys-devel/cons: fix doman on compressed file

Closes: https://bugs.gentoo.org/619972
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{cons-2.3.0.ebuild => cons-2.3.0-r1.ebuild}    | 22 ++++++++++++----------
 sys-devel/cons/metadata.xml                        |  8 ++++----
 2 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/sys-devel/cons/cons-2.3.0.ebuild 
b/sys-devel/cons/cons-2.3.0-r1.ebuild
similarity index 71%
rename from sys-devel/cons/cons-2.3.0.ebuild
rename to sys-devel/cons/cons-2.3.0-r1.ebuild
index d9d4a3c6959f..8d49a63d1d80 100644
--- a/sys-devel/cons/cons-2.3.0.ebuild
+++ b/sys-devel/cons/cons-2.3.0-r1.ebuild
@@ -1,29 +1,31 @@
 # Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 DESCRIPTION="Extensible perl-based build utility"
 HOMEPAGE="https://www.gnu.org/software/cons/";
 SRC_URI="https://www.gnu.org/software/${PN}/stable/${P}.tgz
        https://www.gnu.org/software/${PN}/dev/${P}.tgz";
 
-SLOT="2.2"
 LICENSE="GPL-2"
+SLOT="2.2"
 KEYWORDS="~alpha ~amd64 ~ppc ~sparc x86"
-IUSE=""
 
-DEPEND="
-       dev-lang/perl
-       virtual/perl-Digest-MD5"
-RDEPEND="
-       ${DEPEND}
+RDEPEND="dev-lang/perl
+       virtual/perl-Digest-MD5
        !sci-biology/emboss"
+BDEPEND="${RDEPEND}
+       app-arch/gzip"
+
+DOCS=( CHANGES INSTALL MANIFEST README RELEASE TODO )
 
 src_install() {
        dobin cons
-       dodoc CHANGES INSTALL MANIFEST README RELEASE TODO
+
        docinto html
        dodoc *.html
-       doman cons.1.gz
+
+       gunzip cons.1.gz || die
+       doman cons.1
 }

diff --git a/sys-devel/cons/metadata.xml b/sys-devel/cons/metadata.xml
index 73dda144f9ac..b0d83aa2e489 100644
--- a/sys-devel/cons/metadata.xml
+++ b/sys-devel/cons/metadata.xml
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-<maintainer type="project">
-       <email>[email protected]</email>
-       <name>Gentoo Base System</name>
-</maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Base System</name>
+       </maintainer>
 </pkgmetadata>

Reply via email to