summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* subversion.eclass: Support EAPI 8Ulrich Müller2022-02-281-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* subversion.eclass: Drop support for EAPIs 4 and 5Ulrich Müller2022-02-281-80/+5
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/unpacker.eclass: Add support for makeself 2.3.0Christian Ruppert2022-02-281-1/+1
| | | | Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
* verify-sig.eclass: Link to the guideMichał Górny2022-02-251-1/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Do not filter error output from backend getterMichał Górny2022-02-251-2/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Make build-backend getting more reliableMichał Górny2022-02-251-2/+4
| | | | | | Protect build-backend getter against stray output to stdout. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Update the desc for PEP517 modeMichał Górny2022-02-251-5/+10
| | | | | | | Do not call PEP517 mode "experimental" anymore, and instead describe the potential problem with it. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: Fix unsupported/invalid EPYTHON logicMichał Górny2022-02-251-3/+5
| | | | | | | | | | | Fix the unsupported/invalid EPYTHON logic to make more sense. As a result of prior refactoring, the eclass would report all invalid EPYTHON values as unsupported and the invalid branch would never be reached -- except for the special case of python2_7 where it would incorrectly reject it. Fix it, so that unsupported EPYTHON values are reported either as "just unsupported" or incorrect values correctly. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* go-module.eclass: add helper function to call goWilliam Hubbs2022-02-251-0/+13
| | | | | | | | This function will cause the ebuild to die if Go fails. Also, it outputs the go command that is being run. Closes: https://bugs.gentoo.org/833497 Signed-off-by: William Hubbs <williamh@gentoo.org>
* ruby-fakegem.eclass: Fix @SUPPORTED_EAPISUlrich Müller2022-02-221-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* db-use.eclass: add support for EAPI 8, die on unknown EAPIFlorian Schmaus2022-02-221-8/+6
| | | | | | | | | | | | | | | | | Add support for EAPI 8 and drop support for EAPIs < 5. Also explicitly die on unknown EAPI values. Note that this is a deviation from the currenty approach that the eclass uses since 86416d2c4bf1 ("eclass: db-use - Update to eapi7-ver"). But I argue that it is confusing that your static ananlysis tools (pkgcheck, repoman) complain about an unsupported EAPI in an eclass, while the ebuild works just fine. While I also think it is likely that this eclass will support future EAPI versions without any modifications, my conclusion is that this is actually an argument to die on unknown EAPIs, since it is trivial to bump, while on the other hand, you never know if it really works. Signed-off-by: Florian Schmaus <flow@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/24246 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* cmake.eclass: Document MYCMAKEARGSAndreas Sturmlechner2022-02-211-0/+6
| | | | | Closes: https://bugs.gentoo.org/824030 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: Fix MYCMAKEARGS support with >=dev-util/cmake-3.23Andreas Sturmlechner2022-02-211-1/+4
| | | | | Closes: https://bugs.gentoo.org/833100 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kernel-2.eclass: Document variables, minor style clean-upMike Pagano2022-02-201-80/+163
| | | | | | | | | Document variables in the eclass, reorder alphabetically. Make spacing consistent in comment lines. Closes: https://bugs.gentoo.org/833188 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* vala.eclass: Support EAPI 8Ulrich Müller2022-02-201-13/+22
| | | | | | | | | | | | | | Function vala_src_prepare did not call eapply_user, so it could not be used as a stand-alone phase function but must be called explicitly. Rename it to vala_setup, which can be called either from pkg_setup or from src_prepare. Add a trivial vala_src_prepare wrapper in existing EAPIs, so that functionality there does not change. Apparently, eutils and multilib eclasses are not used, therefore no longer inherit them in EAPI 8. Reviewed-by: Mart Raudsepp <leio@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* go-module.eclass: set a default for GOMODCACHEWilliam Hubbs2022-02-181-0/+6
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* go-module.eclass: add a manual example of how to extract the content of EGO_SUMWilliam Hubbs2022-02-171-0/+8
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* go-module.eclass: update documentationWilliam Hubbs2022-02-161-6/+14
| | | | | | - document the minimum version of go that should be listed in go.mod. - show how to generate the contents of EGO_SUM Signed-off-by: William Hubbs <williamh@gentoo.org>
* verify-sig.eclass: Add a function to verify pure checksumsMichał Górny2022-02-161-7/+38
| | | | | | | | | Split the logic for verifying checksums into a dedicated functions that can also be used directly when dealing with a checksum file that uses a detached signature. Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* vdr-plugin-2.eclass: prefix qa notices with "QA Notice:"Martin Dummer2022-02-161-8/+8
| | | | | | | Closes: https://github.com/gentoo/gentoo/pull/24171 Closes: https://bugs.gentoo.org/813363 Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
* openib.eclass: treecleanDavid Seifert2022-02-151-158/+0
| | | | | Closes: https://bugs.gentoo.org/830999 Signed-off-by: David Seifert <soap@gentoo.org>
* distutils-r1.eclass: Use python_has_version in ...enable_sphinxMichał Górny2022-02-151-3/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Add a verbose python_has_version() wrapperMichał Górny2022-02-151-0/+42
| | | | | | | | | | | Add a python_has_version() wrapper for convenient use in python_check_deps(). It includes: - verbose output - default "-b" root that's more suitable for build-time checks - forward compatibility for -b/-d/-r arguments in EAPI 6 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Require explicit root for d_pep517_installMichał Górny2022-02-151-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: source tests-common.sh || exitMike Gilbert2022-02-1427-27/+27
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eclass/tests/savedconfig.sh: abort when source tests-common.sh failsMike Gilbert2022-02-141-1/+1
| | | | | Closes: https://bugs.gentoo.org/833342 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* llvm.eclass: enable EAPI 8Stephan Hartmann2022-02-141-2/+2
| | | | Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
* emboss-r2.eclass: last-riteDavid Seifert2022-02-141-1/+4
| | | | | Closes: https://github.com/gentoo/gentoo/pull/24178 Signed-off-by: David Seifert <soap@gentoo.org>
* emboss-r3.eclass: revbump for EAPI 8David Seifert2022-02-141-0/+131
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* eclass/go-module.eclass: documentation and bdepend adjustmentWilliam Hubbs2022-02-131-6/+8
| | | | | | | | Update the documentation to not refer to golang* eclasses. Bump the go dependency to 1.16 so the behavior for modules is consistent. Signed-off-by: William Hubbs <williamh@gentoo.org>
* eclass/golang-*: fix deprecation noticesWilliam Hubbs2022-02-134-4/+4
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* eclass/dune.eclass: inherit multiprocessingMaciej Barć2022-02-131-3/+5
| | | | | | | in order to run up to makeopts_jobs number of jobs in dune_src_compile and dune_src_test Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* tree-sitter-grammar.eclass: Re-assign maintainerMatthew Smith2022-02-121-3/+3
| | | | Signed-off-by: Matthew Smith <matthew@gentoo.org>
* linux-mod.eclass: Fix EAPI 8 supportMike Pagano2022-02-121-1/+5
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Remove eutils inherit for EAPI 8Mike Pagano2022-02-121-1/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: enable EAPI 8, remove EAPI 5Mike Pagano2022-02-121-7/+2
| | | | | | Clean-up code needed for deprecated EAPIs (EAPI < 4) Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* llvm.org.eclass: Add LoongArch targetMichał Górny2022-02-101-1/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Silence missing locale(1) errorMichał Górny2022-02-091-1/+1
| | | | | | | | | The python_export_utf8_locale() function checks for missing locale(1) and handles it gracefully. However, it does not redirect stderr probably, so systems without the executable (e.g. musl) get unintended console output. Redirect it to /dev/null. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Add min version to tomli depMichał Górny2022-02-091-1/+1
| | | | | Closes: https://bugs.gentoo.org/832782 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Add QA check for obsolete PYTHON_COMPATMichał Górny2022-02-091-1/+17
| | | | | | | | Add a QA check that reports obsolete implementation in PYTHON_COMPAT if ebuild has been modified in 2022 (based on copyright year). Requested by sam. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: Do not test EPYTHON twiceMichał Górny2022-02-091-6/+8
| | | | | | | | Avoid checking the implementation from EPYTHON via fallback iteration. While there's no technical harm in doing that, now that we output verbosely the users will notice ;-). Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Support matching impls by stdlib versionMichał Górny2022-02-094-44/+36
| | | | | | | | | | | | | | Update _python_impl_matches() (used to implement python_gen*, python_setup) to support specifying stdlib versions ("3.8", "3.9") in addition to exact implementation names. This makes handling PyPy3 version changes much easier when dealing with backports. For example, if you specify "3.8", then the spec will match python3_8 and pypy3, for as long as we supply PyPy3.8. Once we upgrade to PyPy3.9 completely, it will stop matching pypy3 and we won't have to manually keep updating these deps. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Add status messages to python_optimizeMichał Górny2022-02-091-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Remove old phase check from python_optimizeMichał Górny2022-02-091-9/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Use heredoc instead of "python -c"Michał Górny2022-02-091-5/+36
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use heredoc instead of "python -c"Michał Górny2022-02-091-10/+22
| | | | | | | Use heredocs instead of inlining longish scripts in "python -c", for greater readability. Thanks to arthurzam for the suggestion. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Remove PYTHON_MULTI_USEDEPMichał Górny2022-02-091-7/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Remove python_is_python3Michał Górny2022-02-093-27/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Improve comment for USE-dep generationMichał Górny2022-02-091-3/+9
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Inline & simplify USE-deps in gen_cond_depMichał Górny2022-02-091-42/+3
| | | | | | | | | | | Generate simpler USE-deps inline in python_gen_cond_dep() and remove _python_gen_usedep(). The original code always repeated USE deps on all targets to aid Portage in giving better suggestions. However, since there always will be exactly one implementation selected, this is unnecessary and we can just have every cond-dep match exactly that one target. Signed-off-by: Michał Górny <mgorny@gentoo.org>