From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8076E1382C5 for ; Sun, 30 May 2021 21:11:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D51C3E077F; Sun, 30 May 2021 21:11:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B737DE077F for ; Sun, 30 May 2021 21:11:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3481D340D09 for ; Sun, 30 May 2021 21:11:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD09E73A for ; Sun, 30 May 2021 21:11:03 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1622408872.128d253494c94840403eb5688f501f5a090e2989.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/sgt-puzzles/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-puzzle/sgt-puzzles/sgt-puzzles-20190415.ebuild X-VCS-Directories: games-puzzle/sgt-puzzles/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 128d253494c94840403eb5688f501f5a090e2989 X-VCS-Branch: master Date: Sun, 30 May 2021 21:11:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b113b1a4-fe90-43de-a6e3-c814a805b384 X-Archives-Hash: 7b08e6722f25b8b785e06e24fc020630 commit: 128d253494c94840403eb5688f501f5a090e2989 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat May 15 15:02:45 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun May 30 21:07:52 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=128d2534 games-puzzle/sgt-puzzles: EAPI-7 bump, drop IUSE=gtk3, fix menu entry Use desktop.eclass, xdg-utils.eclass Thanks-to: Simon gmx.de> Bug: https://bugs.gentoo.org/656490 Bug: https://bugs.gentoo.org/769167 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> .../sgt-puzzles/sgt-puzzles-20190415.ebuild | 29 ++++++++++------------ 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/games-puzzle/sgt-puzzles/sgt-puzzles-20190415.ebuild b/games-puzzle/sgt-puzzles/sgt-puzzles-20190415.ebuild index 2988d396d97..902b9c92892 100644 --- a/games-puzzle/sgt-puzzles/sgt-puzzles-20190415.ebuild +++ b/games-puzzle/sgt-puzzles/sgt-puzzles-20190415.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit eutils gnome2-utils toolchain-funcs autotools +inherit autotools desktop toolchain-funcs xdg-utils if [[ ${PV} == "99999999" ]] ; then inherit git-r3 @@ -22,16 +22,17 @@ HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/puzzles/" LICENSE="MIT" SLOT="0" -IUSE="+doc gtk3" +IUSE="+doc" COMMON_DEPEND=" - !gtk3? ( x11-libs/gtk+:2 ) - gtk3? ( x11-libs/gtk+:3 )" + x11-libs/gtk+:3" RDEPEND="${COMMON_DEPEND} x11-misc/xdg-utils" # Used by builtin help patch -DEPEND="${COMMON_DEPEND} +DEPEND="${COMMON_DEPEND}" + +BDEPEND=" dev-lang/perl virtual/pkgconfig doc? ( >=app-doc/halibut-1.2 )" @@ -67,7 +68,7 @@ src_prepare() { src_configure() { econf \ --program-prefix="${PN}_" \ - --with-gtk=$(usex gtk3 3 2) + --with-gtk=3 } src_compile() { @@ -86,12 +87,12 @@ src_install() { name=$(awk -F: '/exe:/ { print $3 }' "${file}") file=${file%.R} newicon -s 48 icons/${file}-48d24.png ${PN}_${file}.png - make_desktop_entry "${PN}_${file}" "${name}" "${PN}_${file}" "Game;LogicGame;X-${PN};" + make_desktop_entry "${PN}_${file}" "${name}" "${PN}_${file}" "LogicGame;X-${PN};" done if use doc ; then - DOCS=( puzzles.{pdf,ps,txt} ) - HTML_DOCS=( *.html ) + local DOCS=( puzzles.{pdf,ps,txt} ) + local HTML_DOCS=( *.html ) einstalldocs doinfo puzzles.info{,-1,-2,-3} fi @@ -102,14 +103,10 @@ src_install() { doins "${FILESDIR}/${PN}.directory" } -pkg_preinst() { - gnome2_icon_savelist -} - pkg_postinst() { - gnome2_icon_cache_update + xdg_icon_cache_update } pkg_postrm() { - gnome2_icon_cache_update + xdg_icon_cache_update }