summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* lua-single.eclass: new eclass for single-implementation Lua ebuildsMarek Szuba2020-10-051-0/+510
| | | | | | | With many thanks to Michał Górny and other authors of python-single-r1.eclass. Signed-off-by: Marek Szuba <marecki@gentoo.org>
* lua.eclass: die if lua-single.eclass has already been loadedMarek Szuba2020-10-051-0/+4
| | | | Signed-off-by: Marek Szuba <marecki@gentoo.org>
* lua.eclass: split some stuff out as lua-utils.eclassMarek Szuba2020-10-052-339/+379
| | | | | | These are the things that will be used by both lua and lua-single. Signed-off-by: Marek Szuba <marecki@gentoo.org>
* xorg-3.eclass: Require --disable-all-encodings for fontsMatt Turner2020-10-021-23/+5
| | | | | | | Presumably in the distant past all font packages did not support this option. They do today, so we can simplify our logic. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* xorg-3.eclass: Drop font IUSE=nls handlingMatt Turner2020-10-021-2/+0
| | | | | | | | | | | | | The previous logic incorrectly added IUSE=nls for font-bitstream-100dpi, font-bitstream-75dpi, font-cronyx-cyrillic, font-misc-cyrillic, font-screen-cyrillic, and font-winitzki-cyrillic. This caused "QA Notice: Unrecognized configure options: ..." with USE=-nls. Instead, we'll simply have IUSE="nls" in the packages' ebuilds that need it. Closes: https://bugs.gentoo.org/745756 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* apache-2.eclass: Removed EAPI-5 supportLars Wendler2020-10-011-23/+6
| | | | Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* apache-2.eclass: Added missing "|| die" statementsLars Wendler2020-10-011-14/+21
| | | | Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* apache-2.eclass: Mark some variables as localLars Wendler2020-10-011-2/+3
| | | | Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* apache-2.eclass: Removed version specific suexec handlingLars Wendler2020-10-011-11/+6
| | | | Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* apache-2.eclass: Drop apache-2.2 specific codeLars Wendler2020-10-011-7/+1
| | | | Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* cmake.eclass: Reformat the cmake code we write to lowercase callsAndreas Sturmlechner2020-09-291-55/+51
| | | | | | | | Add some indendation, drop space between function name and brackets, cleanup old style if-else-endif. Bug: https://bugs.gentoo.org/739230 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* eclass/cargo.eclass: move cargo_gen_config definition to the topGeorgy Yakovlev2020-09-281-38/+38
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: require cargo_gen_config in cargo_src* functionsGeorgy Yakovlev2020-09-281-0/+10
| | | | | | | | | | | | | | cargo_gen_config sets required config values and env vars, which cargo_src_{compile,test,install} rely on. it should be called as last step of src_unpack normally, so check it did. Crate sources may have been vendored or cargo is wrapped by other build system and pre-fetched, so cargo_*unpack may not have been used. In that case our config does not work for external build system, our cargo_src_ functions should not be used. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: support cached downloads for live ebuildsGeorgy Yakovlev2020-09-281-7/+106
| | | | | | | Also honor ECARGO_OFFLINE/EVCS_OFFLINE Good portion of the code/logic inspired by git-r3.eclass. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* Remove unused private eclassesMichał Górny2020-09-252-652/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* elisp-common.eclass: Fix QA warning in elisp-site-file-install.Ulrich Müller2020-09-251-3/+6
| | | | | | Thanks to ago for pointing this out. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/cargo.eclass: add cargo_src_configure (revised)Georgy Yakovlev2020-09-221-16/+87
| | | | | | | | simple src_configure implementation inspired by cmake.eclass plus some nice improvements to eclass. Closes: https://bugs.gentoo.org/721936 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* distutils-r1.eclass: Remove obsolete DISTUTILS_USE_SETUPTOOLS checkMichał Górny2020-09-211-42/+0
| | | | | | | The DISTUTILS_USE_SETUPTOOLS check is now done in install-qa-check.d, so remove the duplicate. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multilib-build.eclass: Drop ABI_RISCV multilib overkillAndreas K. Hüttel2020-09-181-18/+0
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* python-utils-r1.eclass: Make python_optimize fail if -x $PYTHONMichał Górny2020-09-171-0/+1
| | | | | | | | | | | Make python_optimize() fail if the expected Python interpreter is not executable. Since some errors are expected during Python byte-compilation (e.g. CPython includes test .py modules with syntax errors), we can't rely on compileall result. However, this will catch at least the very bad mistake of wrong ${PYTHON} that affects e.g. dev-python/pypy*. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* elisp-common.eclass: Avoid @ character at beginning of comment.Ulrich Müller2020-09-171-3/+3
| | | | | | Bug: https://github.com/mgorny/eclass-to-manpage/issues/3 Reported-by: John Helmert III <jchelmert3@posteo.net> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/go-module.eclass: add a missing die callWilliam Hubbs2020-09-141-1/+1
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* ltprune.eclass: update find command per qa policy-guideJoonas Niilola2020-09-131-1/+1
| | | | | | - policy-guide/commit/2ab9dac1a436e8698963da0aa0a00c978611a747 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* ltprune.eclass: match removing libtool files command with policy guideJoonas Niilola2020-09-131-2/+2
| | | | | | - https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* multilib-build.eclass: Fix riscv abi conditionals in pseudo-headerAndreas K. Hüttel2020-09-131-5/+5
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* eutils.eclass: Add a global deprecation warning.Ulrich Müller2020-09-121-0/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Deprecate use_if_iuse().Ulrich Müller2020-09-125-39/+51
| | | | | | | | The function is not called from any ebuilds in the gentoo repository. Inline it as "in_iuse foo && use foo" in other eclasses, or define it as a local function when it is called multiple times. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Deprecate emktemp().Ulrich Müller2020-09-121-2/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* l10n.eclass: strip-linguas() moved from eutils to here.Ulrich Müller2020-09-122-51/+49
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* l10n.eclass: Add conditional to prevent multiple inclusion.Ulrich Müller2020-09-121-1/+6
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* wrapper.eclass: Do not use emktemp.Ulrich Müller2020-09-121-3/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* wrapper.eclass: New eclass, split off from eutils.Ulrich Müller2020-09-122-49/+63
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* edos2unix.eclass: New eclass, split off from eutils.Ulrich Müller2020-09-122-15/+24
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Specify supported EAPIs.Ulrich Müller2020-09-121-4/+7
| | | | | | Proactively deprecate in future EAPIs, as requested by soap. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Remove optfeature()David Seifert2020-09-121-46/+1
| | | | | | | | * optfeature() is now defined in optfeature.eclass since e9caee95d9c7ec69a8b8a12be2ae9bcd98c46e2d. Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* multilib*.eclass: Add support for rv32 abiAndreas K. Hüttel2020-09-112-6/+38
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* systemd.eclass: deprecate tmpfiles functionsMike Gilbert2020-09-091-0/+6
| | | | | Bug: https://bugs.gentoo.org/740638 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* systemd.eclass: fix systemd_tmpfiles_create under EAPI 7Mike Gilbert2020-09-091-1/+1
| | | | | Closes: https://bugs.gentoo.org/740586 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eclass: Add first version of lua.eclassMarek Szuba2020-09-081-0/+710
| | | | | | | | | | | | | | | | | This eclass should be to Lua what python-r1 is to Python. Indeed, most of the plumbing has been shamelessly stolen from that eclass. What works: - support for slotted dev-lang/lua - building and installing Lua modules, for multiple Lua implementations - dependencies on other Lua modules What doesn't work yet: - support for dev-lang/luajit (not in the least because the versions currently in the tree share module directories with dev-lang/lua) - proper support for building against a single Lua target Signed-off-by: Marek Szuba <marecki@gentoo.org>
* oasis.eclass: Fix @SUPPORTED_EAPIS.Ulrich Müller2020-09-081-2/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* optfeature.eclass: Remove unnecessary quotes in case statement.Ulrich Müller2020-09-071-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* optfeature.eclass: New eclass with definition from eutilsDavid Seifert2020-09-071-0/+63
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* acct-*.eclass: Create sysusers.d filesMichał Górny2020-09-052-4/+32
| | | | | | Thanks to David Michael for the initial patch and upstream fixes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-pkg-simple.eclass: fixed copyrightMiroslav Šulc2020-09-051-1/+1
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: Fix typos and commentsHenning Sudbrock2020-09-051-13/+12
| | | | | | | | | | | | | | | Mostly fixes typos (most of them in comments, only one in an actual variable, 'dependency'). Non-typos: * After the recent extensions of this eclass, it now supports resources - hence the change in the eclass description. * The usage description of java-pkg-simple_getclasspath mentions the optional parameter --runtime-only, which appears not to be provided by the function. Signed-off-by: Henning Sudbrock <github@hsudbrock.de> Closes: https://github.com/gentoo/gentoo/pull/17425 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* eclass/s6.eclass: add eapi 7 supportWilliam Hubbs2020-09-041-2/+2
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* git-r3.eclass: fetch pullrequest refs on mirror clone typeFrédéric Pierret (fepitre)2020-09-021-0/+2
| | | | | | Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret@qubes-os.org> Closes: https://github.com/gentoo/gentoo/pull/17265 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: add rv32 abi namesAndreas K. Hüttel2020-09-021-1/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* cmake.eclass: If inherited from ecm.eclass, set ECM_DISABLE_QMLPLUGINDUMPAndreas Sturmlechner2020-09-011-0/+4
| | | | | | | | | Works with downstream patch added to kde-frameworks/extra-cmake-modules in commit f5b2cf80ea9696a5efbc2064cd432670670af486 Bug: https://bugs.gentoo.org/640432 Bug: https://bugs.gentoo.org/683102 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: cmake_comment_add_subdirectory: line length reductionAndreas Sturmlechner2020-09-011-8/+9
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>