summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* eclass/tests/python-utils-r1.sh: Add tests for py3.8Michał Górny2020-04-191-0/+14
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Fix PYTHON_LIBS for py3.8+Michał Górny2020-04-191-2/+6
| | | | | | | | | | | Python 3.8+ provides two pkg-config files: python-3.8 for building Python extensions and python-3.8-embed for embedding Python in other programs. The former no longer lists -lpython*, resulting in empty PYTHON_LIBS. Since our consumers are more likely to want it non-empty if they already query it, switch to the latter file. Closes: https://bugs.gentoo.org/718344 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* texlive-module.eclass: Make SRC_URI more configurableAndreas K. Hüttel2020-04-191-3/+12
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* font.eclass: Fix condition for FONT_S in src_install().Ulrich Müller2020-04-181-1/+1
| | | | | | | Whitespace can be other characters than literal space. Fixes: 58cea2803d7aa7b1a98f72aa55b6221618dc5e5f Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* texlive-module.eclass: migrate from mirror://gentooMikle Kolyada2020-04-161-3/+3
| | | | Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* kde5-functions.eclass: Remove last-rited eclassAndreas Sturmlechner2020-04-161-244/+0
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5.eclass: Remove last-rited eclassAndreas Sturmlechner2020-04-161-439/+0
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Drop references to -DNDEBUG of cmake.eclassAndreas Sturmlechner2020-04-161-3/+2
| | | | | | | Flag has been removed from there. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> (cherry picked from commit 1f4a58b2d53b1ae8d006be6fb53a491c5167a7c1)
* ecm.eclass: Drop kde5.eclass supportAndreas Sturmlechner2020-04-161-39/+14
| | | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> (cherry picked from commit ed6084d902979c53477f2084f9c292e0553b97a5)
* kde.org.eclass: Allow to use SRC_URI in addition to live sourcesAndreas Sturmlechner2020-04-161-5/+4
| | | | | | | Copied from qt5-build.eclass. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> (cherry picked from commit bb9352eaa4e149475a4f2c8a34f115b9e27fe732)
* fcaps.eclass: Remove sys-libs/libcap-ng supportMatt Turner2020-04-151-66/+33
| | | | | | | | | | | | | | | libcap-ng-0.7.10 changed the output format slightly (in upstream commit bc1a9c07ebf5 "- Add capng_have_permitted_capabilities function and use it in filecap"), breaking our usage of it. It's obvious that it's not supposed to be used programmatically given the awful sed'ing we were already doing. It doesn't seem like there was a compelling reason why it was added either (bug #454908), so let's just get rid of it. At the same time, fix the dependency on sys-libs/libcap by moving it to RDEPEND, as dependencies in DEPEND/BDEPEND are not guaranteed to exist during pkg_postinst() when this eclass is intended to run. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* mozextension.eclass: fix sed which determines extension idThomas Deutschmann2020-04-151-8/+8
| | | | | Closes: https://bugs.gentoo.org/717348 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* texlive-module.eclass: Optimize src_unpack()Michał Górny2020-04-141-10/+8
| | | | | | | | | This goes a bit further than slyfox's work. On my machine, it reduces the post-unpack time from ~44m to ~13m. Bug: https://bugs.gentoo.org/688922 Acked-by: Mikle Kolyada <zlogene@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* meson.eclass: update the example to use modern helper functionsMarek Szuba2020-04-141-3/+3
| | | | | | | | We have now got meson_use and meson_feature yet the example still used usex. Signed-off-by: Marek Szuba <marecki@gentoo.org> Reviewed-by: Mike Gilbert <floppym@gentoo.org>
* python-utils-r1.eclass: Bump python:3.7 depMichał Górny2020-04-141-1/+1
| | | | | | Hopefully it resolves package issues that were caused by 3.7.6. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Pass --skip-build when installingMichał Górny2020-04-141-1/+1
| | | | | | | | | | | | | | | Explicitly pass --skip-build in order to prevent distutils from rebuilding files when installing. This is especially relevant to some packages that build extensions, and the extensions get built again in src_install(). Technically, this can break some customized build systems that write implementation-specific data into source directory, and right now the implied rebuild caused it to be rewritten when installing. With this patch, the newest version of the file would be installed for all interpreters. I am not aware of any such packages, though. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Allow using PYTHON_USEDEP againMichał Górny2020-04-141-8/+14
| | | | | | | | | Instead of requiring people to type PYTHON_MULTI_USEDEP, permit shorter form of PYTHON_USEDEP. This does not restore the old behavior but improves consistency between eclasses that was broken by python-single-r1 API changes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* meson.eclass: add MYMESONARGS variableMike Gilbert2020-04-121-0/+11
| | | | | | This was requested to allow users to pass aribtrary arguments to meson. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: clean up meson_src_configureMike Gilbert2020-04-121-10/+20
| | | | | | | This mainly rearranges some code to make it easier to read. Also changes the bare 'meson' call to 'meson setup'. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* toolchain.eclass: use https:// for git protocol, bug #717056Sergei Trofimovich2020-04-111-1/+1
| | | | | | Reported-by: Hanno Böck Closes: https://bugs.gentoo.org/717056 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: fix ada build with ltoAlfredo Tupone2020-04-101-2/+2
| | | | | | Closes: https://bugs.gentoo.org/716570 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* qt5-build.eclass: Drop obsolete in-source build workaround for >=5.14.2Andreas Sturmlechner2020-04-091-5/+11
| | | | | | | | | | | | | Fixed upstream in 5.11.1. See also: https://bugreports.qt.io/browse/QTBUG-37417 Upstream commit 67aa365d41ebfe082b4efcfd725e4d5f08be678c qtbase forwarding header was introduced to fix bug 599636 in commit: d82f92ed064996dfb187ef668d74ed5b05546b2d Closes: https://bugs.gentoo.org/676948 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* qt5-build.eclass: Add missing -no-feature-gssapi switchAndreas Sturmlechner2020-04-091-0/+1
| | | | | | Upstream commit 1a8f4a3c8fa30265e7f184373c738dbc3574663a Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* gnome2-utils.eclass: Inherit eutils.eclass for emktemp().Arfrever Frehtes Taifersar Arahesis2020-04-071-2/+3
| | | | | | Bug: https://bugs.gentoo.org/694012 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Matt Turner <mattst88@gentoo.org>
* gnome2-utils.eclass: Fix missing "/" with EAPI >= 7.Arfrever Frehtes Taifersar Arahesis2020-04-071-9/+9
| | | | | | Bug: https://bugs.gentoo.org/694012 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Matt Turner <mattst88@gentoo.org>
* gnome2-utils.eclass: Fix double "/" with EAPI < 7.Arfrever Frehtes Taifersar Arahesis2020-04-071-10/+10
| | | | | | Bug: https://bugs.gentoo.org/694012 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Matt Turner <mattst88@gentoo.org>
* gnome2-utils.eclass: remove redundant @USAGE linesBen Kohler2020-04-071-5/+0
| | | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org> Signed-off-by: Matt Turner <mattst88@gentoo.org>
* 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>