summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* multiprocessing.eclass: Support passing custom inf values for gettersMichał Górny2016-12-182-2/+8
| | | | | | | | Support passing custom values for 'infinity' in makeopts_jobs() and makeopts_loadavg(). This can be used e.g. when a build system does not support --loadavg, and therefore '--jobs 999' would most likely be a really bad idea. Combined with get_nproc(), this can be used to provide a sane replacement instead.
* multiprocessing.eclass: Fix handling multiple short options (e.g. -kj)Michał Górny2016-12-182-0/+6
| | | | | | | | Improve the regular expressions to handle parameters consisting of multiple short options (such as -kj). It should be noted that the code is not perfect but should handle all common (valid) cases; it could e.g. incorrectly process a short option followed by string arg such as '-Wfoo.j' although having this in MAKEOPTS is extremely unlikely.
* eclass/tests: Remove KV_* functions from tests-common.shMichał Górny2016-06-271-41/+0
|
* toolchain-funcs.eclass: tc-ninja_magic_to_arch, remove old KV supportMichał Górny2016-06-271-7/+0
| | | | | | | | Remove the support for old kernel versions that are no longer used in Gentoo, and rely on KV_to_int() function. This functions is provided by Portage but not listed in PMS. Furthermore, for a long time Portage replaced it with 'return 1' in global scope, so they did not really work as expected anyway.
* toolchain-funcs.eclass: Add helpful tc-is-{gcc,clang} wrappersMichał Górny2016-06-261-0/+28
|
* toolchain-funcs.eclass: Add tc-get-compiler-type()Michał Górny2016-06-261-0/+40
| | | | | | | | | | | Add a tc-get-compiler-type() function that can be used to identify the compiler being used, using the preprocessor defines. Alike gcc-*version() routines, it uses CPP (which in turn uses CC). The major usage would be applying compiler-specific quirks and limiting gcc version checks to compilers that actually are gcc, since e.g. clang reports gcc version 4.2 -- which would incorrectly cause numerous gcc version checks in ebuilds to fail.
* rebar.eclass: Optionally provide alternate rebar config to alterAmadeusz Żołnowski2016-05-292-0/+46
| | | | | | Some packages have separate configs for build and tests. Build config is always named 'rebar.config' and there seem to be no standard name for tests config.
* rebar.eclass: Build Erlang/OTP projects using dev-util/rebarAmadeusz Żołnowski2016-05-223-0/+373
| | | | | | It is an eclass providing functions to build Erlang/OTP projects using dev-util/rebar. All packages in upcoming category dev-erlang are going to use this eclass.
* scons-utils.eclass: Use nproc when --jobs is used without an argumentMichał Górny2016-01-081-1/+1
| | | | | | | Try to guess the number of processors when --jobs is passed without an argument. We can't use a high number equivalent to GNU make behavior (no limit) since SCons does not have an equivalent of --load-avg option. Still, this is better than assuming some random, fixed number.
* scons-utils.eclass: _scons_clean_makeopts, fix result cachingMichał Górny2016-01-081-3/+4
| | | | | | Stop calling _scons_clean_makeopts in a subshell in order to make it possible for the cache to be preserved. Pass the result through SCONSOPTS variable.
* scons-utils.eclass: scons_clean_makeopts, mark internalMichał Górny2016-01-081-1/+1
|
* scons-utils.eclass: tests, be more verbose on tests being performedMichał Górny2016-01-081-8/+6
|
* python-utils-r1.eclass tests: Fix to ensure PYTHON for python_exportMichał Górny2015-12-091-1/+1
|
* python-utils-r1.eclass: Disable jython2_5Michał Górny2015-12-091-1/+0
|
* multiprocessing.eclass: makeopts_loadavg: various fixes #543116Mike Frysinger2015-11-241-0/+36
| | | | | | | - Add support for --max-load option - Fix default load value if not specified (999) - Fix trailing flag consumption so we don't leave garbage behind - Add tests!
* eclass/tests: Add standard header to eutils_eshopts.sh.Ulrich Müller2015-11-211-0/+3
| | | | Acknowledged by vapier in bug 548984.
* python-utils-r1.eclass: Fix pypy3 include path in testsMichał Górny2015-11-121-1/+1
|
* python-utils-r1.eclass: Support getting PYTHON_CONFIG pathMichał Górny2015-11-111-0/+2
|
* python-utils-r1.eclass: Obtain PYTHON_SITEDIR from the interpreterMichał Górny2015-11-111-5/+7
| | | | | Obtain the Python site-packages directory path using the distutils.sysconfig module, rather than hardcoding it.
* python-utils-r1.eclass: Obtain library path from the interpreterMichał Górny2015-11-111-2/+2
| | | | | | | Obtain library path as concatenation of LIBDIR and LDLIBRARY config variables (from sysconfig module) rather than hardcoding it in the eclass. This improves maintainability and fixes compatibility with ABIFLAGS-enabled Python 3.3+.
* python-utils-r1.eclass: Obtain include directory from the interpreterMichał Górny2015-11-111-4/+13
| | | | | | | Obtain the Python include directory using the distutils.sysconfig module of the Python interpreter rather than hardcoding values for it. This makes the code more maintainable, and clears the way for re-enabling ABIFLAGS on new Python versions.
* python-utils-r1.eclass: Switch tests to use python3.4Michał Górny2015-11-111-7/+7
| | | | | | Use Python 3.4 during tests since Python 3.3 is now deprecated and is less likely to be installed on user's systems and some tests will require Python installed.
* proj/gentoo: Initial commitRobin H. Johnson2015-08-0820-0/+1729
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed