summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* eclass/pam.eclass: drop openpam referenceMikle Kolyada2019-12-021-1/+1
| | | | Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* nvidia-driver.eclass: Fix GPU vs version compatibility checkJeroen Roovers2019-12-021-6/+6
| | | | | | | | | | | | | | | - In commit 245f417b539760ccf4939630f2c6b826ce34a556 I replaced version_compare() with ver_test but failed to properly adjust the check from the "is at least" return value to its ver_test equivalent. Invert the test return value for clarity and check for a version mask less than PV. - Use lower case for local variable name. - Fix a comment while there. Fixes: https://bugs.gentoo.org/701734 Signed-off-by: Jeroen Roovers <jer@gentoo.org> Tested-by: Kobboi Signed-off-by: Jeroen Roovers <jer@gentoo.org>
* distutils-r1.eclass: Handle missing BUILD_DIR for any-r1 APIMichał Górny2019-12-011-1/+5
| | | | | | | | | | | When any-r1 API is used for *_all sub-phases, an implementation that was not selected by the user may be used. In this case, DISTUTILS_IN_SOURCE_BUILD will not create the BUILD_DIR for this implementation; however, the phase runner will still try to enter it and fail. Handle this gracefully by falling back to ${S}. Closes: https://bugs.gentoo.org/701506 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/toolchain.sh: fix 's/asserv/assert' typoSergei Trofimovich2019-12-011-1/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: drop USE=graphite support for <gcc-6.5Sergei Trofimovich2019-12-011-19/+17
| | | | | | Reported-by: Rolf Eike Beer Closes: https://bugs.gentoo.org/701270 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* python-r1.eclass: Remove python_export_bestMichał Górny2019-11-291-30/+0
| | | | | | Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/13785 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain-autoconf.eclass: Support EAPI-7Lars Wendler2019-11-281-2/+2
| | | | Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* eclass/nvidia-driver.eclass: Add nvidia-driver_check(), various tweaksJeroen Roovers2019-11-271-27/+60
| | | | | | | | | | | | | - Add nvidia-driver_check() to replace nvidia_drivers_versions_check() duplication in every ebuild - Use EAPI=7 ver_test() instead of versionator.eclass's version_compare() - Replace "video card" with "GPU" in various places. - epatch_user() => eapply_user() - Whitespace and formatting - Use nvidia-driver_* format for eclass functions Signed-off-by: Jeroen Roovers <jer@gentoo.org>
* estack.eclass: Fix typo in comment.Ulrich Müller2019-11-261-1/+1
| | | | | Fixes: d2cb9490dbee48a32f196d1aa80d7356a99d9fd8 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Drop epause() and ebeep().Ulrich Müller2019-11-261-48/+1
| | | | | | No ebuilds calling these functions in EAPIs 0 to 2 are left in the tree. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* estack.eclass: Drop isdigit function.Ulrich Müller2019-11-261-13/+2
| | | | | | | It isn't (and never was) used by anything else in the tree. Inline its only usage in evar_pop() and drop the function. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* estack.eclass: Properly restore shopt options.Ulrich Müller2019-11-261-4/+5
| | | | | | | | | | | | | | | | | Calling "eshopts_push; eshopts_pop" makes Portage report a QA issue: * QA Notice: Global shell options changed and were not restored while calling 'src_prepare' This is caused by some side effect in bash, by which disabling the "posix" option (even if it was already disabled before) in a non-interactive shell also disables the "expand_aliases" option. Work around the problem by always saving and restoring both "set -o" and "shopt" option sets. Also fix "estack_push -s" which should not execute shopt when called without further parameters. Closes: https://bugs.gentoo.org/662586 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/savedconfig.eclass: rewrite the ROFF macrosGöktürk Yüksek2019-11-251-5/+5
| | | | | | | | | | | | | man2html cannot cope with multi-character number-register names and also doesn't recognize the square brackets in the '\n' escape sequence. This breaks the autogenerated HTML output. Rename the number-register from "step" to "R" and get rid of the square brackets. URL: https://archives.gentoo.org/gentoo-dev/message/b619a5775cbe6d0b650d827338ef8ca2 Closes: https://bugs.gentoo.org/699476 Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org> Acked-by: Lars Wendler <polynomial-c@gentoo.org>
* distutils-r1.eclass: Add distutils_enable_sphinx helper functionMichał Górny2019-11-251-0/+96
| | | | | | | Add a helper function to easily take care of the most common dev-python/sphinx usage for HTML doc building. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Introduce a build_sphinx() helperMichał Górny2019-11-251-0/+25
| | | | | | | Introduce a helper to build HTML docs using Sphinx, providing for Intersphinx cleanup and HTML_DOCS appending. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: Copy gnat files during installTupone Alfredo2019-11-251-1/+1
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* eclass/tests/python-utils-r1.sh: Add tests for _python_impl_matchesMichał Górny2019-11-241-0/+34
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Fix early return in _python_impl_matchesMichał Górny2019-11-241-3/+2
| | | | | | | | Fix _python_impl_matches() not to return early on unsuccessful -2/-3 match. This caused constructs such as '$(python_gen_cond_dep ... -2 python3_{5,6,7})' to ignore arguments following '-2'. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* sgml-catalog-r1.eclass: Do not generate self-dep in sgml-commonMichał Górny2019-11-241-1/+3
| | | | | Closes: https://bugs.gentoo.org/700976 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Support 9.0.1+ RCsMichał Górny2019-11-231-28/+49
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/toolchain-funcs.sh: fix tc-cpp-is-true testsSergei Trofimovich2019-11-201-2/+2
| | | | | | | | The test was failing on systems without clang because presence of compiler was tested incorrectly (${compielr} typo). Reported-by: Michał Górny Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/flag-o-matic.sh: fix strip-unsupported-flags -B* set of testsSergei Trofimovich2019-11-201-2/+2
| | | | | | | | | Don't know how I tested previous state, it certainly could not work. The fix itself is fine though. The change updates expected output. Reported-by: Michał Górny Bug: https://bugs.gentoo.org/687198 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/git-r3_GIT_DIR.sh: stub out git callsMichał Górny2019-11-201-0/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/savedconfig.sh: Use a supported EAPIMichał Górny2019-11-201-1/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/scons-utils.sh: Fix getting default job countMichał Górny2019-11-201-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/git-r3_GIT_DIR.sh: Use a supported EAPIMichał Górny2019-11-201-1/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/git-r3_subrepos.sh: Use a supported EAPIMichał Górny2019-11-201-1/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/git-r3.sh: Partially fix and disableMichał Górny2019-11-202-1/+8
| | | | | | The tests rely on ext: remote support which apparently no longer works. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Add tests for py3.7Michał Górny2019-11-201-0/+12
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Update PyPy pathsMichał Górny2019-11-201-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: update for modern implsMichał Górny2019-11-201-19/+21
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Add tests for distutils_enable_testsMichał Górny2019-11-201-1/+66
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: distutils_enable_tests, add 'setup.py' optionMichał Górny2019-11-201-0/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Fix stripping :0= from PyPy w/ REQ_USE setMichał Górny2019-11-191-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: Fix stripping :0= from PyPy w/ REQ_USE setMichał Górny2019-11-191-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: distutils_enable_tests, handle no deps betterMichał Górny2019-11-161-11/+12
| | | | | | | Do not set IUSE or other variables if the test runner does not have any deps, and RDEPEND is empty. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kde5-functions.eclass: Add porting and deprecation notesAndreas Sturmlechner2019-11-141-0/+5
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5.eclass: Add porting and deprecation notesAndreas Sturmlechner2019-11-141-7/+18
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5-functions.eclass: Drop obsolete minimum version overridesAndreas Sturmlechner2019-11-121-10/+0
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* qmail.eclass: hide qmail-pop3 behind a use flagRolf Eike Beer2019-11-121-30/+39
| | | | | | | | | Other solutions offer much more features and better security, so do not install this by default. Keep it for the moment for those who explicitely want it. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Closes: https://github.com/gentoo/gentoo/pull/13551 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* python-utils-r1.eclass: Enable python3.8Michał Górny2019-11-111-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cmake-utils.eclass: Fix BUILD_SHARED_LIBS variable typeAlexander Tsoy2019-11-111-1/+1
| | | | | | | | | | This fixes the following warning: CMake Warning (dev) at gentoo_common_config.cmake:8 (SET): implicitly converting 'BOOLEAN' to 'STRING' type. Signed-off-by: Alexander Tsoy <alexander@tsoy.me> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5-functions.eclass: Must not be used directly by ebuildAndreas Sturmlechner2019-11-111-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5.eclass: Inherit kde.org.eclass and drop moved functions/varsAndreas Sturmlechner2019-11-111-210/+13
| | | | | | | | | | | | | | | | | | | | | Functions moved to kde.org: - _kde_is_unreleased - _calculate_src_uri - _calculate_live_repo - kde5_pkg_nofetch - kde5_src_unpack Variables moved to kde.org: - KDE_BUILD_TYPE - KDE_SELINUX_MODULE - KDE_UNRELEASED - HOMEPAGE Variables deprecated: - KDE_SUBSLOT (define SLOT in ebuild) - KMNAME (use KDE_ORG_NAME in kde.org.eclass instead) Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Inherit xdg only if ECM_NONGUI=falseAndreas Sturmlechner2019-11-111-13/+17
| | | | | | xdg phase functions were already only called based on this var. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Fix punt_bogus_dep -> ecm_punt_bogus_depAndreas Sturmlechner2019-11-111-4/+4
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Fix inverted usex handbook logicAndreas Sturmlechner2019-11-101-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Fix typoAndreas Sturmlechner2019-11-101-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde.org.eclass: Standard HOMEPAGE for kde-plasma and kde-frameworksAndreas Sturmlechner2019-11-101-5/+12
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde.org.eclass: Branching for kde-apps/ switched to "release/YY.MM"Andreas Sturmlechner2019-11-101-1/+1
| | | | | | | KDE Applications is dead, long live the KDE release service. See also: https://mail.kde.org/pipermail/release-team/2019-October/011582.html Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>