summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* leechcraft.eclass: add qtcore and qtgui deps0xd34df00d2020-04-051-0/+6
| | | | | | | | | | | | Every lc plugin necessarily links to both qtcore and qtgui, otherwise it is not loadable by the lc-core. Although possibly being a (mis)feature of the plugin API, this is unlikely to get fixed any time soon if at all, so let's save some duplication and avoid putting these deps in each of the ~70 ebuilds. Signed-off-by: Georg Rudoy <0xd34df00d@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/14924 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* Improve the name-version regexLuca Barbato2020-04-041-1/+1
| | | | | | | | | See: https://doc.rust-lang.org/cargo/reference/manifest.html#the-name-field Unbreaks crates using `curl-sys` version `0.4.30+curl-7.69.1` and such. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* toolchain.eclass: add support to ada during compileTupone Alfredo2020-04-041-3/+22
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* toolchain.eclass: drop I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS guardSergei Trofimovich2020-04-021-16/+0
| | | | | | Let's rely on keywording alone to guard against accidental installation. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* office-ext-r1.eclass: Inherit eutils.eclass for emktemp()Arfrever Frehtes Taifersar Arahesis2020-04-021-2/+5
| | | | | | Closes: https://bugs.gentoo.org/715666 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: do not append -DNDEBUG to CPPFLAGSMike Gilbert2020-04-011-9/+0
| | | | | | | | | | | | | | | | | | | The NDEBUG macro turns the assert() function into a noop. This gives a small performance boost, but may allow subtle programming errors to go unnoticed. This code was added back in 2008, when we started passing -DCMAKE_BUILD_TYPE=None instead of Release or Debug. It probably tries to mimic a default behavior of Release type builds. Other common build systems do not do this by default. For example, autoconf's AC_HEADER_ASSERT macro only sets NDEBUG if --disable-assert is passed to configure (it defaults to enabled). It is better to let users add this to CPPFLAGS themselves if they really want to save those few CPU cycles. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* waf-utils.eclass: Replace NO_WAF_LIBDIR with an automatic checkChris Mayo2020-04-011-8/+4
| | | | | | | | Test `waf --help` for --libdir support instead. Signed-off-by: Chris Mayo <aklhfex@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/15093 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* waf-utils.eclass: Support --docdir and --htmldirChris Mayo2020-04-011-3/+11
| | | | | | | | | | | waf can optionally set the standard GNU directories [1]. Based on the code for econf in Portage's phase-helpers.sh. [1] https://waf.io/apidocs/tools/gnu_dirs.html Closes: https://bugs.gentoo.org/711612 Signed-off-by: Chris Mayo <aklhfex@gmail.com> Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* java-utils-2.eclass: minor @USAGE fixBen Kohler2020-03-311-1/+1
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* bash-completion-r1.eclass: minor @USAGE syntax fixesBen Kohler2020-03-311-2/+2
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* texlive-common.eclass: fix several @USAGE problemsBen Kohler2020-03-311-7/+7
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* gstreamer.eclass: minor @USAGE fixesBen Kohler2020-03-311-2/+2
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* linux-mod.eclass: minor @USAGE syntax fixBen Kohler2020-03-311-1/+1
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* linux-info.eclass: minor @USAGE syntax fixesBen Kohler2020-03-311-7/+7
| | | | | | Use the recommended <required args> [optional args] syntax Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* desktop.eclass: fix up @USAGE for make_desktop_entryBen Kohler2020-03-311-1/+1
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* eclass/tests/python-utils-r1.sh: Remove tests for jython & pypyMichał Górny2020-03-301-31/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/distutils-r1.sh: Update Python versionsMichał Górny2020-03-301-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/flag-o-matic.eclass: Add missing MIPS CPU errata flagsJoshua Kinard2020-03-281-1/+3
| | | | | | | | | | | | | Noticed during a glibc build for MIPS-III ISA that the -mfix-r4000 and -mfix-r4400 gcc flags got stripped off. These are needed to work around known CPU errata in R4000 and R4400 CPUs. In addition, also add the -mfix-rm7000 option (and it's -mno form) to fix errata in the PMC RM7000 CPU, and the -mr10k-cache-barrier to control the generation of cache barriers to work around the side-effects of R10000's speculative execution capabilities. Signed-off-by: Joshua Kinard <kumba@gentoo.org> Reviewed-by: Matt Turner <mattst88@gentoo.org>
* eclass/multilib.eclass: update copyright and fix typosSergei Trofimovich2020-03-282-3/+3
| | | | | Reported-by: Mike Gilbert Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: multilib_env(): set LIBDIR=lib for *-musl*Sergei Trofimovich2020-03-272-1/+16
| | | | | | | | | | | | | | In contrast to glibc musl profiles use 'lib' layour for 32-bit and 64-bit targets. multilib_env() did not take it into account and assumed glibc's lib64 layout. That breaks crossdev as it uses multilib_env to extract target definition. Native builds are unaffected by this change. Bug: https://bugs.gentoo.org/675954 Bug: https://gcc.gnu.org/PR90077 Bug: https://github.com/gentoo/musl/issues/245 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests: add basic tests for multilib_env() expansionSergei Trofimovich2020-03-271-0/+61
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* python-utils-r1.eclass: Bump minimal Python versionsMichał Górny2020-03-271-10/+8
| | | | | | | | | Bump minimal Python versions to current stable to save ebuilds from having to hack around the dependencies. Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/15135 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* texlive-module.eclass: fix doc installationDominik Schmidt2020-03-271-2/+4
| | | | | | | | | | | | | If the package does not create ${WORKDIR}/texmf-doc, then the eclass assumes that no documentation should be installed. This is assumption is incorrect, since the documentation tar-balls can put the docs into texmf-dist and not texmf-doc, as happens with e.g. texlive-mathscience. As a result, the documentation files are not installed anymore. Bug: https://bugs.gentoo.org/714908 Signed-off-by: Dominik Schmidt <dominik@schm1dt.ch> Closes: https://github.com/gentoo/gentoo/pull/15128 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* desktop.eclass: Sanitize filename of desktop entry.Ulrich Müller2020-03-271-3/+3
| | | | | | | | | | | | | | | | | | | | | make_desktop_entry() extracts the first component of the filename from the Exec key in the desktop entry. This can however include arguments which will end up in the filename. For example, www-client/links has "Exec=links -g %u", resulting in links_-g_%u-links-2.desktop as the name of the file. The current extraction pattern originates from this CVS commit: https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?r1=1.271&r2=1.272 with the commit message "scrub exec filename in case someone does something silly like pass the fullpath to a binary". Before that commit, anything after a space in Exec would have been removed. Restore that behaviour, and in addition use only the executable's basename. While at it, get rid of the sed call and handle everything in bash. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* acct-{group,user}: remove sh keywordMikle Kolyada2020-03-262-2/+2
| | | | Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* flag-o-matic.eclass: document assumptions and limitations of test-flag-PROG()Sergei Trofimovich2020-03-261-0/+11
| | | | | Bug: https://bugs.gentoo.org/712488 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* flag-o-matic.eclass: revert "don't use -Werror in test-flag-PROG(), bug #712488"Sergei Trofimovich2020-03-262-14/+15
| | | | | | | | | | This reverts commit ab8fe14ae2e9110faa85ca1c4528b470c0be1535. Triggers build failures on sys-libs/compiler-rt-sanitizers. Reported-by: Craig Andrews Bug: https://bugs.gentoo.org/714742 Bug: https://bugs.gentoo.org/712488 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* fixheadtails.eclass: drop the sed dependencyDavid Michael2020-03-251-3/+1
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* python-utils-r1.eclass: Mark python_export privateMichał Górny2020-03-225-141/+43
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Replace python_export with gettersMichał Górny2020-03-221-11/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Replace python_export with getterMichał Górny2020-03-221-5/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Make python_wrapper_setup privateMichał Górny2020-03-224-9/+24
| | | | | | | | This function was never meant to be a part of the public API. Correct the mistake by renaming it to _python_wrapper_setup(), and adding a QA warning under the old name. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: drop USE=sanitize support for <gcc-5Sergei Trofimovich2020-03-211-5/+10
| | | | | | | | Sanitizer support appeared in gcc-4.8, but <gcc-5 does not support modern glibc. Let's just drop support for it on older gccs. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* check-reqs.eclass: typofixJoonas Niilola2020-03-211-2/+2
| | | | Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* flag-o-matic.eclass: don't use -Werror in test-flag-PROG(), bug #712488Sergei Trofimovich2020-03-202-15/+14
| | | | | | | | | | | -Werror filters out too much (everything) if used compiler happens to always generate warnings. Let's drop cosmetic stripping of ignored flags until we really need it. Then we can consider more selective filtering by using more targeted -Werror= options. Reported-by: Anton Gubarkov Closes: https://bugs.gentoo.org/712488 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* font.eclass: Don't assign FONT_S in global scope, allow an array.Ulrich Müller2020-03-201-12/+24
| | | | | | | | | | | | | | | | Accessing ${S} in global scope is not allowed by PMS, therefore remove the global variable assignment of FONT_S which uses it. Add a fallback to ${S} in font_src_install() instead. Allow FONT_S to be an array, if there are multiple directories. Support for whitespace-separated lists will be kept for some time, and a QA warning will be shown. Die if pushd or popd fails. Closes: https://bugs.gentoo.org/613108 Closes: https://bugs.gentoo.org/709578 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* qt5-build.eclass: Drop unnecessary >=5.13 conditionAndreas Sturmlechner2020-03-191-2/+2
| | | | | | 5.12 was dropped. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* qt5-build.eclass: Drop EAPI-6 supportAndreas Sturmlechner2020-03-191-15/+11
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* qt5-build.eclass: adjust configure options for >=5.15Jimi Huotari2020-03-191-2/+6
| | | | | | | | | | Upstream has removed the -qt-xcb, -system-xcb, -xkb, -xcb-xinput switches [1] in 5.15 and 6.0. 1. https://code.qt.io/cgit/qt/qtbase.git/commit/?h=5.15&id=60588e1a Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Drop KDE Applications 19.08.3 supportAndreas Sturmlechner2020-03-191-27/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde.org.eclass: Drop kde-apps-19.08.3 support, prepare for release-service betaAndreas Sturmlechner2020-03-191-2/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde.org.eclass, ecm.eclass: Re-add kde-apps-19.08 support for nowAndreas Sturmlechner2020-03-192-2/+29
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Drop KDE Applications 19.08.3 supportAndreas Sturmlechner2020-03-191-27/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde.org.eclass: Drop kde-apps-19.08.3 support, prepare for release-service betaAndreas Sturmlechner2020-03-191-2/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* flag-o-matic.eclass: add more verbose conditionalsSergei Trofimovich2020-03-171-2/+9
| | | | | | | | | | | To ease debugging by pluggins debug statements convert foo || return 1 into if ! foo; then return 1 fi Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* kde5.eclass: Add _kde5_really_dead eqawarn in pkg_setup, pkg_postinstAndreas Sturmlechner2020-03-171-1/+8
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5-functions.eclass: eerror and die if inherited directlyAndreas Sturmlechner2020-03-171-0/+5
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* toolchain.eclass: fix cygwinports patchingMichael Haubenwallner2020-03-171-1/+7
| | | | | | | Introduction of tc_apply_patches dropped patch dir, per commit bd758f25a82460f6e7011314f9fb7923864e9e1e Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
* kde5.eclass, kde5-functions.eclass: Mark as DEADAndreas Sturmlechner2020-03-172-0/+2
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* leechcraft.eclass: use the `cmake` eclass for EAPI=70xd34df00d2020-03-161-5/+3
| | | | | | | See also: https://github.com/gentoo/gentoo/pull/14924 Closes: https://bugs.gentoo.org/705820 Signed-off-by: Georg Rudoy <0xd34df00d@gmail.com> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>