www-client/dillo: EAPI7 and improve ebuild.
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Tue, 11 Sep 2018 17:58:59 +0000 (19:58 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Wed, 26 Sep 2018 23:01:16 +0000 (01:01 +0200)
Closes: https://bugs.gentoo.org/665720
Closes: https://github.com/gentoo/gentoo/pull/9830

www-client/dillo/dillo-9999.ebuild

index 0d478f4ab15dbe7826fbb74eabcfd8ffacdb4fa6..b0388a0b17e326372cf4dc6f85d0778f82beb72c 100644 (file)
@@ -1,8 +1,9 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit autotools eutils mercurial multilib toolchain-funcs
+EAPI=7
+
+inherit autotools desktop mercurial toolchain-funcs
 
 DESCRIPTION="Lean FLTK based web browser"
 HOMEPAGE="https://www.dillo.org/"
@@ -29,6 +30,8 @@ PATCHES=(
        "${FILESDIR}"/${PN}2-inbuf.patch
 )
 
+DOCS="AUTHORS ChangeLog README NEWS doc/*.txt doc/README"
+
 src_prepare() {
        default
        eautoreconf
@@ -52,12 +55,12 @@ src_compile() {
 }
 
 src_install() {
-       dodir /etc
        default
 
-       use doc && dohtml html/*
-       dodoc AUTHORS ChangeLog README NEWS
-       dodoc doc/*.txt doc/README
+       if use doc; then
+               docinto html
+               dodoc -r html/
+       fi
 
        doicon "${DISTDIR}"/${PN}.png
        make_desktop_entry ${PN} Dillo