summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* rebar.eclass: depend on slotted rebar2Matthew Smith2022-04-121-2/+2
| | | | Signed-off-by: Matthew Smith <matthew@gentoo.org>
* autotools.eclass: don't use reserved variable (__)Sam James2022-04-121-4/+4
| | | | | Closes: https://bugs.gentoo.org/806368 Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: don't call copy_egg_info if USE_PEP517=setuptoolsSam James2022-04-111-1/+1
| | | | | | Fixes: 6451cf647f04b31a56ea2dc8c3f84a70c2468f87 Thanks-to: Ionen Wolkens <ionen@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: Bump min. dependency versionsMichał Górny2022-04-111-9/+11
| | | | | | | | | Bump min. dependency versions to match oldest stable in ::gentoo, in order to avoid requiring developers to repeat them in BDEPEND with higher version. Closes: https://github.com/gentoo/gentoo/pull/24965 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Print deprecation warning for distutils buildsMichał Górny2022-04-111-0/+9
| | | | | | | | | | Print deprecation warnings for non-PEP517 builds using plain distutils. This is a small subset of Python packages overall, and the first step towards deprecating legacy build support. Transitioning pure distutils packages is also important to avoid .egg-info collisions when we switch from CPython distutils to setuptools-vendored distutils. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Introduce distutils_write_namespaceMichał Górny2022-04-111-0/+41
| | | | | | | | Introduce a distutils_write_namespace helper that can be used to temporarily write a namespace __init__.py as needed to run tests when legacy dev-python/namespace-* packages are installed. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Skip build_ext when there no .c/.pyx filesMichał Górny2022-04-111-1/+11
| | | | | | | | | Skip issuing build_ext when there appears to be no .c/.pyx files. Since starting setuptools is expensive, this gives a major speedup to building pure Python packages. If the check misfires, the worst that can happen is that C extensions will be built serialized. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Call build_ext instead of build in PEP517 modeMichał Górny2022-04-111-1/+5
| | | | | | | | | | | | | | Call `setup.py build_ext` instead of the wholesale `build` in PEP517 mode. After all, the call is not strictly necessary; it is only done in order to build C extensions in parallel (PEP517 backend does not support specifying job count). By skipping the other tasks build command does (and then repeats via PEP517 call), the ebuild can build a few seconds faster. Since this is a potentially breaking change (but very unlikely to actually break anything), let's test it behind GPEP517_TESTING. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Update namespace package doc URLMichał Górny2022-04-111-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Issue a QA warning if "build" existsMichał Górny2022-04-111-1/+7
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Prefer "rm -rf build" over "setup.py clean -a"Michał Górny2022-04-111-1/+5
| | | | | | | | | | | | | | | | | | Prefer using "rm -rf build" directly over "setup.py clean -a". This has three advantages: 1. It is much faster. 2. It works on packages that have broken "setup.py clean", e.g. dev-python/pydantic. 3. It works on packages that block "setup.py clean" and tell you to use "git clean" (sic!), e.g. dev-python/scipy. This is a potentially (but unlikely) breaking change, so do it conditionally to GPEP517_TESTING. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/cdrom.eclass: add EAPI 8Conrad Kostecki2022-04-111-3/+3
| | | | Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
* eclass/common-lisp-3: Properly escape recursive install filesMarco Sirabella2022-04-101-1/+3
| | | | | | | | | | | | This is a bit of a roundabout way to do it, but since we want to pass the results of `find` to a bash function, this is what we need to do. All of these functions are a bit convoluted, I believe something similar could be hacked together that looks like `find -type f -name '*.lisp' -exec doins` (or xargs) without the recursive calling or escaping mess Signed-off-by: Marco Sirabella <marco@sirabella.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cdrom.eclass: fix tabConrad Kostecki2022-04-101-5/+5
| | | | Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
* distutils-r1.eclass: Remove extra deps from jupyter backendMichał Górny2022-04-081-4/+2
| | | | | | | | dev-python/jupyter_packaging depends on these directly, and packages using it don't list these deps in their requires, so I guess it doesn't make sense for us to copy them. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Recognize jupyter PEP517 backendMichał Górny2022-04-081-0/+11
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Fix PEP517 + single-impl w/ no scriptsMichał Górny2022-04-081-1/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* mono.eclass: Remove conditionals for EAPIs 0, 1, 2Ulrich Müller2022-04-071-3/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* mercurial.eclass: Remove conditionals for EAPIs 0, 1, 2Ulrich Müller2022-04-071-3/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* distutils-r1.eclass: Support GPEP517_TESTING modeMichał Górny2022-04-071-31/+57
| | | | | | | | | Support GPEP517_TESTING variable to enable using dev-python/gpep517 instead of inline Python snippets. This is meant to provide the necessary testing before we stabilize it and switch over. Closes: https://github.com/gentoo/gentoo/pull/24910 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Add hatchling support (meh!)Michał Górny2022-04-071-0/+9
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/vim-{doc,plugin}.eclass: revert previous commit.Patrice Clement2022-04-062-30/+29
| | | | | | Let's wait until those patches are reviewed on the gentoo-dev ML. Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* vim-plugin.eclass: support EAPI 8Thomas Bracht Laumann Jespersen2022-04-061-9/+10
| | | | | | | | | | | * Drop EAPI 0, 1, 2 workarounds * Move EXPORT_FUNCTIONS to end of file * Add required @USAGE on functions Bug: https://bugs.gentoo.org/830867 Bug: https://bugs.gentoo.org/830866 Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* vim-doc.eclass: support EAPI 8Thomas Bracht Laumann Jespersen2022-04-061-20/+20
| | | | | | Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Closes: https://github.com/gentoo/gentoo/pull/24928 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* preserve-libs.eclass: Remove conditionals for EAPIs 0, 1, and 2Ulrich Müller2022-04-051-10/+6
| | | | | | Drop an unnecessary die statement. Adjust some quotation marks. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* xorg-3.eclass: Fix unsetting GIT_ECLASSMatt Turner2022-04-031-5/+3
| | | | | | | Apparently I cannot remember how bash works. Closes: https://bugs.gentoo.org/836727 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* emboss-r2.eclass: remove last-rited eclassDavid Seifert2022-04-041-161/+0
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* font.eclass: Support EAPI 8Matt Turner2022-04-031-3/+3
| | | | | Closes: https://bugs.gentoo.org/806496 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* vala.eclass: raise VALA_MIN_API_VERSION to 0.50Matt Turner2022-04-021-2/+2
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* vala.eclass: raise VALA_MAX_API_VERSION to 0.56Matt Turner2022-04-021-2/+2
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* xorg-3.eclass: Unset GIT_ECLASS laterMatt Turner2022-04-021-1/+3
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* xorg-3.eclass: Fix undocumented variable warningsMatt Turner2022-04-021-3/+2
| | | | | | | | - drop WANT_AUTOCONF/WANT_AUTOMAKE declarations: these are the default values - unset other variables after use so they don't leak to consumers Signed-off-by: Matt Turner <mattst88@gentoo.org>
* xorg-3.eclass: Drop EXPORTED_FUNCTIONS variableMatt Turner2022-04-021-2/+1
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* xorg-3.eclass: Drop app-doc/doxygen as a doc dependencyMatt Turner2022-04-021-1/+0
| | | | | Closes: https://bugs.gentoo.org/700308 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* xorg-3.eclass: Support EAPI 8Matt Turner2022-04-021-3/+3
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* distutils-r1.eclass: Revert "Support backend-path in pyproject.toml"Michał Górny2022-04-021-8/+1
| | | | | | | | | | This does not handle packages without pyproject.toml correctly. Reverts: c8b8dc11f7235ad4f7b05f24bd75a85c110ec400 Closes: https://bugs.gentoo.org/836660 Closes: https://bugs.gentoo.org/836661 Closes: https://bugs.gentoo.org/836662 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Support backend-path in pyproject.tomlMichał Górny2022-04-021-1/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Make python_fix_shebang force full pathMichał Górny2022-04-022-114/+106
| | | | | | | | | | | | | | | | | | | | | | Change the behavior of python_fix_shebang to always output full path to the Python interpreter (i.e. ${PYTHON}) instead of mangling the original path. Most importantly, this ensures that: 1. EPREFIX is included in the final path 2. /usr/bin/env is replaced by the absolute path to avoid issues when calling system executables from inside a venv Note that this implies that a few unlikely corner cases may stop working, notably: a. "weird" shebangs such as "/usr/bin/foo python" will no longer work b. the mangled scripts will escape temporary venv e.g. created in distutils-r1 PEP517 mode (python_fix_shebang is not used in such a way in ::gentoo) Signed-off-by: Michał Górny <mgorny@gentoo.org>
* wrapper.eclass: Drop support for EAPIs 0 to 4Ulrich Müller2022-04-011-6/+11
| | | | | | | - Add EAPI conditional - Use sed instead of cat, to preserve indentation of output Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* llvm.org.eclass: Fix patch removal testMichał Górny2022-03-301-9/+4
| | | | | | | | | Fix the test for patch removal to detect non-matching patches correctly. -s is not a reliable test for empty directories. However, grep indicates whether at least one match was found, so it should be good enough for us. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-user.eclass: Refuse to lock out the superuserUlrich Müller2022-03-281-0/+5
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* acct-user.eclass: Use arithmetic test for EUIDUlrich Müller2022-03-281-6/+6
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* user.eclass: Use arithmetic test for UIDUlrich Müller2022-03-281-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* fcaps.eclass: Use arithmetic test for UIDUlrich Müller2022-03-281-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* webapp.eclass: Use UID 0 instead of rootUlrich Müller2022-03-281-2/+2
| | | | | Bug: https://bugs.gentoo.org/595908 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* toolchain.eclass: Use UID 0 instead of rootUlrich Müller2022-03-281-1/+1
| | | | | Bug: https://bugs.gentoo.org/595908 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* qmail.eclass: Use UID 0 instead of rootUlrich Müller2022-03-281-6/+6
| | | | | Bug: https://bugs.gentoo.org/595908 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cron.eclass: Use UID 0 instead of rootUlrich Müller2022-03-281-6/+6
| | | | | Bug: https://bugs.gentoo.org/595908 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* fcaps.eclass: Use UID 0 instead of rootHaelwenn (lanodan) Monnier2022-03-281-2/+2
| | | | | Bug: https://bugs.gentoo.org/595908 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* gstreamer-meson.eclass: fix symlink issue for WORKDIRTony Lee2022-03-261-3/+11
| | | | | | | | | | Fixes symlink issue with a variety of gstreamer plugin packages. Bug: https://bugs.gentoo.org/820416 Bug: https://bugs.gentoo.org/816702 Closes: https://bugs.gentoo.org/805020 Closes: https://github.com/gentoo/gentoo/pull/22967 Signed-off-by: Sam James <sam@gentoo.org>