eapi9-ver.eclass

Name

eapi9-ver.eclass — Testing implementation of EAPI 9 ver_replacing

Description

A stand-alone implementation of the ver_replacing function aimed for EAPI 9. Intended to be used for wider testing of the proposed function and to allow ebuilds to switch to the new model early, with minimal change needed for the actual EAPI 9.

if ver_replacing -lt 1.2; then
    elog "The frobnicate command was dropped in version 1.2"
fi

Supported EAPIs

7 8

Functions

ver_replacing <op> <ver>

Compare each element <v> of REPLACING_VERSIONS with version <ver> using ver_test(). Return 0 (true) if any element <v> fulfills "ver_test <v> <op> <ver>", 1 (false) otherwise.

Note: If REPLACING_VERSIONS is empty, 1 (false) is returned.

Return value: 0 if any element of REPLACING_VERSIONS qualifies, 1 otherwise

Authors

Ulrich Müller <ulm@gentoo.org>

Maintainers

Ulrich Müller <ulm@gentoo.org>

Reporting Bugs

Please report bugs via https://bugs.gentoo.org/