summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-12-27 17:30:03 +0100
committerDavid Seifert <soap@gentoo.org>2022-12-27 17:30:03 +0100
commitd8969f60bdeb5d668dba13d7706b0bb9f901e120 (patch)
treeb167348d399208e736ac2d3aabbaaf799ecf2c51 /eclass/postgres.eclass
parentphp-ext-source-r3.eclass: drop EAPI 6 support (diff)
downloadgentoo-d8969f60bdeb5d668dba13d7706b0bb9f901e120.tar.gz
gentoo-d8969f60bdeb5d668dba13d7706b0bb9f901e120.tar.bz2
gentoo-d8969f60bdeb5d668dba13d7706b0bb9f901e120.zip
postgres.eclass: drop EAPI 5, 6 support
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/postgres.eclass')
-rw-r--r--eclass/postgres.eclass18
1 files 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 <pgsql-bugs@gentoo.org>
# @AUTHOR:
# Aaron W. Swenson <titanofold@gentoo.org>
-# @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