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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 507C21581C1 for ; Sun, 14 Jul 2024 07:27:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E3D5E2B2E; Sun, 14 Jul 2024 07:27:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5DB4CE2B2C for ; Sun, 14 Jul 2024 07:27:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 50CFE340BEF for ; Sun, 14 Jul 2024 07:27:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 54C7C1E24 for ; Sun, 14 Jul 2024 07:27:30 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1720941739.50b84aa2d1160992a84dcfeefd7748a491147ccc.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/boinc-app.eclass X-VCS-Directories: eclass/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: 50b84aa2d1160992a84dcfeefd7748a491147ccc X-VCS-Branch: dev Date: Sun, 14 Jul 2024 07:27:30 +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: f65d5325-e77a-406e-86fc-513bee116109 X-Archives-Hash: 939a83b44d5d234cb786e683e4241532 commit: 50b84aa2d1160992a84dcfeefd7748a491147ccc Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Fri Jul 12 08:40:43 2024 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Sun Jul 14 07:22:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=50b84aa2 boinc-app.eclass: use standard inherit guard style Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/boinc-app.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass index 3a26e6738..f6fb82034 100644 --- a/eclass/boinc-app.eclass +++ b/eclass/boinc-app.eclass @@ -22,7 +22,7 @@ case ${EAPI} in 8) ;; - *) die "${ECLASS}: EAPI ${EAPI} unsupported." + *) die "${ECLASS}: EAPI ${EAPI:-0} unsupported" esac # @ECLASS_VARIABLE: BOINC_APP_OPTIONAL @@ -34,10 +34,6 @@ esac # If you enable BOINC_APP_OPTIONAL, you have to call boinc-app # default phase functions and add dependencies manually. -if [[ ! ${BOINC_APP_OPTIONAL} ]]; then - EXPORT_FUNCTIONS pkg_postinst pkg_postrm -fi - if [[ ! ${_BOINC_APP_ECLASS} ]]; then # @ECLASS_VARIABLE: BOINC_MASTER_URL @@ -382,3 +378,7 @@ boinc-app_pkg_postrm() { _BOINC_APP_ECLASS=1 fi + +if [[ ! ${BOINC_APP_OPTIONAL} ]]; then + EXPORT_FUNCTIONS pkg_postinst pkg_postrm +fi