commit:     167e9e18d4fd7df04e275e8e8570d8234c3b716f
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Wed Feb 17 09:36:22 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Feb 17 09:36:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=167e9e18

net-print/gtklp: Port to EAPI 7

Closes: https://bugs.gentoo.org/708374
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-print/gtklp/gtklp-1.3.1.ebuild | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/net-print/gtklp/gtklp-1.3.1.ebuild 
b/net-print/gtklp/gtklp-1.3.1.ebuild
index b1eb8322df2..6b98fb7e5f3 100644
--- a/net-print/gtklp/gtklp-1.3.1.ebuild
+++ b/net-print/gtklp/gtklp-1.3.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit autotools eutils
+inherit autotools desktop flag-o-matic
 
 DESCRIPTION="A GUI for cupsd"
 HOMEPAGE="https://gtklp.sirtobi.com/";
@@ -15,14 +15,13 @@ SLOT="0"
 KEYWORDS="amd64 ppc ~sparc x86"
 IUSE="nls ssl"
 
-RDEPEND="x11-libs/gtk+:2
+RDEPEND="
        net-print/cups
+       x11-libs/gtk+:2
        nls? ( sys-devel/gettext )
        ssl? ( dev-libs/openssl:0= )"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
-
-DOCS="AUTHORS BUGS ChangeLog README TODO USAGE"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
 PATCHES=( "${FILESDIR}/${P}-formatsec.patch" )
 
@@ -35,6 +34,7 @@ src_prepare() {
 }
 
 src_configure() {
+       append-cflags -fcommon
        econf \
                $(use_enable nls) \
                $(use_enable ssl) \
@@ -44,6 +44,7 @@ src_configure() {
 src_install() {
        default
 
+       dodoc USAGE
        doicon "${WORKDIR}"/gtklp-logo.xpm
        make_desktop_entry 'gtklp -i' "Print files via CUPS" gtklp-logo 
'System;HardwareSettings;Settings;Printing'
        make_desktop_entry gtklpq "CUPS queue manager" gtklp-logo 
'System;HardwareSettings;Settings;Printing'

Reply via email to