summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* Rename dev-python/{setuptools_scm → setuptools-scm}Michał Górny2023-03-031-3/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/ruby-utils.eclass: make ruby30 the preferred stable rubyHans de Graaff2023-02-281-2/+2
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* eclass/ruby-utils.eclass: add ruby32Hans de Graaff2023-02-281-2/+6
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* java-pkg-simple.eclass: MANIFEST.MF show Gentoo in "Created-By: "Volkmar W. Pogatzki2023-02-271-1/+2
| | | | | | | | | | | | Presently, MANIFEST.MF can receive upstream's "Created-By:" if such line is found in a predefined META-INF/MANIFEST.MF in ${JAVA_RESOURCE_DIRS}. This change removes such line before the jar command creates the final MANIFEST.MF putting "Created-By: (Gentoo)" Closes: https://bugs.gentoo.org/897786 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29801 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* Add 17.0.0_pre20230225 snapshotMichał Górny2023-02-251-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Strip pkg_resources namespaces automaticallyMichał Górny2023-02-251-0/+32
| | | | | Closes: https://github.com/gentoo/gentoo/pull/29701 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use --build-option instead of --global-optionMichał Górny2023-02-251-1/+1
| | | | | | | | | | Replace the `--global-option` used to pass custom setup.py arguments with `--build-option`. Using the former to pass arbitrary options is deprecated since setuptools 64.0.0. They are both equivalent right now and `--build-option` will preserve the current behavior, so this should be NFC (except for silencing the warning). Signed-off-by: Michał Górny <mgorny@gentoo.org>
* desktop.eclass: allow 1024 as a size for iconsPacho Ramos2023-02-231-3/+3
| | | | | | | | | 1024x1024 icons are starting to be deployed in some apps as they start to be used in MacOSX environment. https://archives.gentoo.org/gentoo-dev/message/6c01a956d37fd22553bd10a4a03f31ed Closes: https://bugs.gentoo.org/888635 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
* pypi.eclass: Fix @CODE eclassdoc tagMichał Górny2023-02-221-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* go-module.eclass: use tc-endian from toolchain-funcs.eclassSam James2023-02-191-1/+1
| | | | | | | | matoro reports that any Go packages fail on ppc64 right now as USE=big-endian is not an implicit USE flag. Switch to tc-endian from toolchain-funcs.eclass instead. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-funcs.eclass: document tc-endianSam James2023-02-191-0/+7
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-funcs.eclass: remove tc-has-openmpDavid Seifert2023-02-191-10/+0
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* Add 17.0.0_pre20230218 snapshotMichał Górny2023-02-181-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-utils-2.eclass: use find with -path instead of -wholenameVolkmar W. Pogatzki2023-02-171-1/+1
| | | | | | | | according to man page, -wholename is less portable than -path. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29626 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: default to default_src_prepare for future EAPIVolkmar W. Pogatzki2023-02-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | Presently patches from a PATCHES array are not getting applied unless "default" or "eapply_user" is set in the ebuild. In cases where nothing else needs to be prepared it still needs src_prepare in the ebuild src_prepare() { default } With this change, starting from EAPI 9 this will no longer be needed. In cases where any other changes are done in the prepare phase it would only need java-pkg-2_src_prepare be added: src_prepare() { java-pkg-2_src_prepare cp, rm, mv, sed or other changes } Bug: https://bugs.gentoo.org/780585 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-opt-2.eclass: partly reverted conditional eapply_user, restricted ↵Miroslav Šulc2023-02-171-0/+3
| | | | | | | to eapi 6-8 Closes: https://bugs.gentoo.org/895106 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: drop support for EAPI 5Volkmar W. Pogatzki2023-02-171-11/+4
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29556 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-2.eclass: drop support for EAPI 5Volkmar W. Pogatzki2023-02-171-3/+3
| | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-opt-2.eclass: drop support for EAPI 5Volkmar W. Pogatzki2023-02-171-7/+3
| | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-ant-2.eclass: drop support for EAPI 5Volkmar W. Pogatzki2023-02-171-5/+5
| | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: default to java-pkg_clean for future EAPIVolkmar W. Pogatzki2023-02-171-0/+6
| | | | | | Bug: https://bugs.gentoo.org/797733 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* go-module.eclass: typoWilliam Hubbs2023-02-161-1/+1
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* go-module.eclass: fix -buildmode=pie, support makeoptsWilliam Hubbs2023-02-161-1/+8
| | | | | Closes: https://bugs.gentoo.org/893316 Signed-off-by: William Hubbs <williamh@gentoo.org>
* verify-sig.eclass: Revert "Use gemato openpgp-verify-detached"Michał Górny2023-02-131-6/+4
| | | | | | | | | This is causing verification failures when verifying old signatures made with now-expired keys. Reverts: 75ea89a43b8d3efb6b264296f819d04d3c18c3af Bug: https://bugs.gentoo.org/894164 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* verify-sig.eclass: Revert "Accept 1-out-of-n sigs on multisig files"Michał Górny2023-02-131-1/+1
| | | | | Reverts: 89c2617afbfe6250ee7dfd4ee4641c8f74c54004 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gnome2-utils.eclass: Document GLIB_COMPILE_RESOURCESuis2023-02-131-1/+5
| | | | | | | | Also removed @INTERNAL for GLIB_COMPILE_SCHEMAS because it is already used outside of gnome2-utils. Bug: https://bugs.gentoo.org/779871 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* pypi.eclass: Add PYPI_NO_NORMALIZE control varMichał Górny2023-02-121-3/+16
| | | | | Closes: https://github.com/gentoo/gentoo/pull/29526 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pypi.eclass: Normalize PN and translate PV for S as wellMichał Górny2023-02-122-5/+17
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pypi.eclass: Translate ${PV} by defaultMichał Górny2023-02-122-18/+27
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pypi.eclass: Add a version translation functionMichał Górny2023-02-122-0/+26
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pypi.eclass: Normalize sdist filenames by defaultMichał Górny2023-02-122-7/+43
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pypi.eclass: Add `--unpack` to usage error in pypi_wheel_urlMichał Górny2023-02-121-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pypi.eclass: Normalize wheel filenamesMichał Górny2023-02-122-2/+36
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pypi.eclass: Add a name normalization functionMichał Górny2023-02-122-0/+52
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pypi.eclass: Use pypi_sdist_url to generate the default SRC_URIMichał Górny2023-02-121-4/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* verify-sig.eclass: Accept 1-out-of-n sigs on multisig filesMichał Górny2023-02-121-1/+1
| | | | | | | | | | | If a distfile has multiple detached signatures, pass verification if at least one of them can be verified rather than requiring all of them. This is particularly helpful for upstreams where the whole set of release keys is hard to come by. Closes: https://bugs.gentoo.org/873211 Closes: https://github.com/gentoo/gentoo/pull/29224 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* verify-sig.eclass: Use gemato openpgp-verify-detachedMichał Górny2023-02-121-5/+7
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add 17.0.0_pre20230211 snapshotMichał Górny2023-02-111-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cargo.eclass: silence 1 more declare -p stderrGeorgy Yakovlev2023-02-101-1/+1
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* gkrellm-plugin.eclass: remove EAPI 6 supportDavid Seifert2023-02-101-41/+12
| | | | | Closes: https://github.com/gentoo/gentoo/pull/29450 Signed-off-by: David Seifert <soap@gentoo.org>
* java-utils-2.eclass: ECLASS_VARIABLE JAVA_PKG_NO_CLEANVolkmar W. Pogatzki2023-02-101-5/+22
| | | | | | | | | | | | | | | | | | The new ECLASS_VARIABLE JAVA_PKG_NO_CLEAN is an array of expressions to match *.class or *.jar files in order to protect them against deletion by java-pkg_clean. This change helps in cases where most bundled *.class or *.jar files can be deleted while only some few cannot be replaced with system libraries. It also helps to visualize bundled stuff in the ebuild. Cleaning does not work by default. It still needs java-pkg_clean within src_prepare(). Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29470 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* toolchain.eclass: Register the D tc_featureArsen Arsenović2023-02-091-2/+2
| | | | | | | This behavior is relied on elsewhere, for setting BDEPENDs correctly. Fixes: a39d1669ca0f4 ("toolchain.eclass: adjust D dep for non-gcc") Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
* distutils-r1.eclass: fix typo in setuptools versionSam James2023-02-091-1/+1
| | | | | Fixes: 50546c3db84904399e5624eb8f163e3d2be284e3 Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: adjust setuptools dep to avoid known-bad versionsSam James2023-02-091-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | 79071eb9f6f4a5725c1a89700bcfd7f120101179 tried to mitigate this but blockers don't affect dependency resolution (ordering), so let's add a || ( <dev-python/setuptools-... >=dev-python/setuptools-...) dep in the eclass to ensure that the bad in-between versions (which were in ~arch, not stable, for a period, and are no longer in tree) aren't considered good enough to install any distutils-r1 PEP517 packages. We can clean this up once newer setuptools is stable & then simplify (and tighten) the dep. (Worth keeping in mind that Portage (rightly) doesn't aggressively update things listed in RDEPEND in that order simply because they're in RDEPEND. It might update something listed in RDEPEND after the package listing it provided there's no >= or otherwise dep.) Bug: https://bugs.gentoo.org/892529 Bug: https://bugs.gentoo.org/892525 Bug: https://bugs.gentoo.org/893538 Bug: https://bugs.gentoo.org/893632 Bug: https://bugs.gentoo.org/893630 Bug: https://bugs.gentoo.org/893634 Signed-off-by: Sam James <sam@gentoo.org>
* cargo.eclass: fix --frozen logicGeorgy Yakovlev2023-02-081-1/+1
| | | | | | | it was not working as intended. it should only be passed if GIT_CRATES is defined. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: silence declare -p stderrGeorgy Yakovlev2023-02-081-1/+1
| | | | | | | Otherwise it prints cargo.eclass: line 201: declare: GIT_CRATES: not found Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: make GIT_CRATES non-pre-inheritGeorgy Yakovlev2023-02-081-2/+1
| | | | | | it just has to be defined before cargo_gen_config Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: Add support for GIT_CRATESPatrick McLean2023-02-081-0/+103
| | | | | | | | | | | | | | | | | This adds support for an associative array called GIT_CRATES containing any crates that must be fetched from git rather than just cargo crates. This will add the code to the cargo config to make sure that the locations are overridden so cargo won't try to fetch the crates from git. Currently it automatically handle GitHub and GitLab URIs, and will accept arbitrary URIs. Bug: https://bugs.gentoo.org/608396 Issue: https://github.com/gentoo/cargo-ebuild/issues/33 Closes: https://github.com/gentoo/gentoo/pull/29289 Tested-By: Georgy Yakovlev <gyakovlev@gentoo.org> Signed-off-by: Patrick McLean <chutzpah@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* llvm.org.eclass: Remove 16.0.0 snapshot hashesMichał Górny2023-02-081-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pypi.eclass: Support --unpack in pypi_wheel_urlMichał Górny2023-02-071-7/+19
| | | | | | | | | | Add a handy `--unpack` option to pypi_wheel_url, that automatically renames the downloaded distfile to have .zip suffix. This is used e.g. in dev-python/installer and dev-python/tomli to have default_src_unpack unpack the wheels automatically. Closes: https://github.com/gentoo/gentoo/pull/29439 Signed-off-by: Michał Górny <mgorny@gentoo.org>