diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
commit | 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch) | |
tree | 25413d1cb3a0cbfe36029db32398c0f333609215 /eclass/db-use.eclass | |
parent | 9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff) |
gentoo resync : 14.12.2020
Diffstat (limited to 'eclass/db-use.eclass')
-rw-r--r-- | eclass/db-use.eclass | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/eclass/db-use.eclass b/eclass/db-use.eclass index 83ae94799ca7..de257a9ae23b 100644 --- a/eclass/db-use.eclass +++ b/eclass/db-use.eclass @@ -1,8 +1,15 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -# This is a common location for functions that aid the use of sys-libs/db -# -# Bugs: maintainer-needed@gentoo.org + +# @ECLASS: db-use.eclass +# @MAINTAINER: +# maintainer-needed@gentoo.org +# @AUTHOR: +# Paul de Vrieze <pauldv@gentoo.org> +# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 +# @BLURB: functions that aid the use of sys-libs/db +# @DESCRIPTION: +# functions that aid in the use of sys-libs/db # multilib is used for get_libname in all EAPI case "${EAPI:-0}" in @@ -10,7 +17,10 @@ case "${EAPI:-0}" in *) inherit multilib ;; esac -#Convert a version to a db slot +# @FUNCTION: db_ver_to_slot +# @USAGE: <version> +# @DESCRIPTION: +# Convert a version to a db slot db_ver_to_slot() { if [ $# -ne 1 ]; then eerror "Function db_ver_to_slot needs one argument" >&2 @@ -28,7 +38,10 @@ db_ver_to_slot() { echo -n "$1" } -#Find the version that correspond to the given atom +# @FUNCTION: db_findver +# @USAGE: <atom> +# @DESCRIPTION: +# Find the version that corresponds to the given atom db_findver() { has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= if [ $# -ne 1 ]; then @@ -52,6 +65,9 @@ db_findver() { fi } +# @FUNCTION: db_includedir +# @USAGE: <version> +# @DESCRIPTION: # Get the include dir for berkeley db. # This function has two modes. Without any arguments it will give the best # version available. With arguments that form the versions of db packages @@ -71,7 +87,7 @@ db_includedir() { return 1 fi else - #arguments given + # arguments given for x in $@ do if VER=$(db_findver "=sys-libs/db-${x}*") && @@ -85,7 +101,9 @@ db_includedir() { fi } - +# @FUNCTION: db_libname +# @USAGE: <version> +# @DESCRIPTION: # Get the library name for berkeley db. Something like "db-4.2" will be the # outcome. This function has two modes. Without any arguments it will give # the best version available. With arguments that form the versions of db @@ -103,7 +121,7 @@ db_libname() { return 1 fi else - #arguments given + # arguments given for x in $@ do if VER=$(db_findver "=sys-libs/db-${x}*"); then |