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 458CC158020 for ; Tue, 27 Dec 2022 16:31:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50484E0878; Tue, 27 Dec 2022 16:31:17 +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 363D5E0874 for ; Tue, 27 Dec 2022 16:31:17 +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 3CAD5340DBA for ; Tue, 27 Dec 2022 16:31:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 624727F5 for ; Tue, 27 Dec 2022 16:31:13 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1672158603.d8969f60bdeb5d668dba13d7706b0bb9f901e120.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/postgres.eclass X-VCS-Directories: eclass/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: d8969f60bdeb5d668dba13d7706b0bb9f901e120 X-VCS-Branch: master Date: Tue, 27 Dec 2022 16:31:13 +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: 5d5fb66f-b88b-4673-85c6-4af833f85b2b X-Archives-Hash: 9da5d804f153840dc190c5998d4d307c commit: d8969f60bdeb5d668dba13d7706b0bb9f901e120 Author: David Seifert gentoo org> AuthorDate: Tue Dec 27 16:30:03 2022 +0000 Commit: David Seifert gentoo org> CommitDate: Tue Dec 27 16:30:03 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8969f60 postgres.eclass: drop EAPI 5, 6 support Signed-off-by: David Seifert gentoo.org> eclass/postgres.eclass | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/eclass/postgres.eclass b/eclass/postgres.eclass index 8e204e2ade8c..e94ab56a40ae 100644 --- a/eclass/postgres.eclass +++ b/eclass/postgres.eclass @@ -1,14 +1,12 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EXPORT_FUNCTIONS pkg_setup - # @ECLASS: postgres.eclass # @MAINTAINER: # PostgreSQL # @AUTHOR: # Aaron W. Swenson -# @SUPPORTED_EAPIS: 5 6 7 +# @SUPPORTED_EAPIS: 7 # @BLURB: An eclass for PostgreSQL-related packages # @DESCRIPTION: # This eclass provides common utility functions that many @@ -16,12 +14,14 @@ EXPORT_FUNCTIONS pkg_setup # currently selected PostgreSQL slot is within a range, adding a system # user to the postgres system group, and generating dependencies. - -case ${EAPI:-0} in - 5|6|7) ;; - *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;; +case ${EAPI} in + 7) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac +if [[ ! ${_POSTGRES_ECLASS} ]]; then +_POSTGRES_ECLASS=1 + # @ECLASS_VARIABLE: _POSTGRES_ALL_VERSIONS # @INTERNAL # @DESCRIPTION: @@ -159,3 +159,7 @@ postgres_pkg_setup() { elog "PostgreSQL Target: ${best_slot}" } + +fi + +EXPORT_FUNCTIONS pkg_setup