summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
...
* python-single-r1.eclass: Remove unused PYTHON_TARGETSMichał Górny2019-12-071-27/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Remove deprecated PYTHON_USEDEP APIMichał Górny2019-12-071-109/+13
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Use new-style flags for python-exec depMichał Górny2019-12-071-7/+8
| | | | | | | Depend on PYTHON_TARGETS directly in dev-lang/python-exec dep, instead of relying on old-style PYTHON_USEDEP. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Introduce PYTHON_{SINGLE,MULTI}_USEDEP APIMichał Górny2019-12-071-16/+93
| | | | | | | | | | | | | Introduce a new API that replaces PYTHON_USEDEP with PYTHON_SINGLE_USEDEP variable and PYTHON_MULTI_USEDEP placeholder. The former can be used directly (or via python_gen_cond_dep) when depending on other python-single-r1 packages, the latter can be used via python_gen_cond_dep when depending on python-r1 packages. Long term, the new API will enable us to remove redundant PYTHON_TARGETS flags from python-single-r1 packages. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*r1.eclass: Remove python-exec:0 leftoverMichał Górny2019-12-072-10/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*r1.eclass: Reliably allow empty <pattern>s to gen funcsMichał Górny2019-12-073-14/+14
| | | | | | | | | Reliably allow empty pattern lists (equivalent to no restrictions) in all pattern-based generator functions, notably python_gen_cond_dep. Previously, only some of the functions accepted them while others failed via _python_impl_matches function. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Restore PYTHON_SINGLE_TARGET for one implMichał Górny2019-12-071-94/+49
| | | | | | | | | | | | | | Undo the hack that removes PYTHON_SINGLE_TARGET (in favor of plain PYTHON_TARGETS) when the package supports only one target. Instead, output both kinds of flags consistently for all packages, and use IUSE defaults to enable them when only one interpreter is supported. This should give similar end results without creating unnecessary differences between ebuilds with one and multiple implementations. It will make future API changes easier, as well as simplify tooling used to detect eclass type. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*-r1.eclass: Deprecate python_gen_usedepMichał Górny2019-12-072-32/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | Deprecate python_gen_usedep() in favor of python_gen_cond_dep(). The latter is a newer API that generates full USE-conditional blocks rather than pure USE-dependency strings. As such, it can replace all uses of the former, and is safer to use in general. In particular: dev-python/foo[$(python_gen_usedep -2)] dev-python/bar[$(python_gen_usedep -2)] installs the dependency (with no implementation match enforced) even if there's no python2 implementation enabled, while: $(python_gen_cond_dep ' dev-python/foo[${PYTHON_USEDEP}] dev-python/bar[${PYTHON_USEDEP}] ' -2) installs it only if there's at least one implementation requiring it. Since the functions are used in global scope only, a deprecation warning is emitted only once, during the sourcing for pkg_setup phase. This avoids having it output during metadata cache regeneration. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* git-r3.eclass: Explicitly disable password promptsMichał Górny2019-12-071-0/+3
| | | | | Closes: https://bugs.gentoo.org/701276 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* haskell-cabal.eclass: add a variable to disable verbose build failuresSergei Trofimovich2019-12-071-0/+12
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* haskell-cabal.eclass: pass _EXTRA variables after "$@".Sergei Trofimovich2019-12-071-5/+5
| | | | | | That way user's override has highest precedence. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* cargo.eclass: use verbose cargo invocationsGeorgy Yakovlev2019-12-061-3/+3
| | | | | | | Default output just prints crate name. With -vv we can see all cargo options and rustc args. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: fix cargo_src_install() on prefixGeorgy Yakovlev2019-12-061-2/+2
| | | | | | Closes: https://bugs.gentoo.org/702168 Closes: https://bugs.gentoo.org/702042 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* kernel-2.eclass: update HOMEPAGEJoonas Niilola2019-12-051-1/+1
| | | | | | Signed-off-by: Joonas Niilola <juippis@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/13866 Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
* Add me to the kernel-2 eclass genpatches download listAlice Ferrazzi2019-12-051-1/+1
| | | | Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
* cmake-utiles.eclass: Add cmake_use_find_packageAndreas Sturmlechner2019-12-041-0/+12
| | | | | | Alias for cmake-utils_use_find_package Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde.org.eclass: Prefix internal functions as wellAndreas Sturmlechner2019-12-031-7/+7
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: _ECM_UTILS_ECLASS -> _ECM_ECLASSAndreas Sturmlechner2019-12-031-2/+2
| | | | | | Was forgotten to rename w/ eclass. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* qmake-utils.eclass: Drop obsolete EAPI-5 supportAndreas Sturmlechner2019-12-031-6/+4
| | | | | | Last consumer in Gentoo ebuild repository was dropped. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* 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>