Commit Graph

27 Commits

Author SHA1 Message Date
Michał Górny
e8057f03b9 python-single-r1.eclass: Document new pattern support 2017-05-16 19:11:38 +02:00
Michał Górny
f6bea5ce22 python-single-r1.eclass: python_gen_impl_dep, use _python_impl_matches() 2017-05-16 19:11:37 +02:00
Michał Górny
7adf37851c python-single-r1.eclass: python_gen_cond_dep, use _python_impl_matches() 2017-05-16 19:11:36 +02:00
Michał Górny
bb7c80417e python-single-r1.eclass: python_gen_useflags, use _python_impl_matches() 2017-05-16 19:11:35 +02:00
Michał Górny
35f5bf6a53 python-single-r1.eclass: python_gen_usedep, use _python_impl_matches() 2017-05-16 19:11:35 +02:00
Michał Górny
a640c3d2a4 python-single-r1.eclass: Add integrity checks for globals 2017-03-08 08:35:51 +01:00
Michał Górny
9d683e6e8c python-single-r1.eclass: Refactor global setter to use locals, NFC 2017-03-08 08:35:50 +01:00
Michał Górny
f71997ca03 python-single-r1.eclass: Remove stale EAPI=4 branch in globals 2017-03-08 08:35:49 +01:00
Robin H. Johnson
61b861acd7 Drop $Id$ per council decision in bug #611234.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2017-02-28 11:50:50 -08:00
Michał Górny
8d2a47de59 python-single-r1.eclass: Always output use-cond in PYTHON_DEPS
Output a USE conditional in PYTHON_DEPS even when using only a single
target. While this does not make a strict difference since the target
flag is in REQUIRED_USE anyway, it results in more unified output
and makes it easier to catch mistakes if someone plays with the eclass
in the future.
2017-02-19 14:03:52 +01:00
Michał Górny
a32e57790e python-single-r1.eclass: Remove EAPI=4 exceptions 2017-02-17 21:24:40 +01:00
Sergei Trofimovich
afc733af60 python-single-r1.eclass: drop stray '}' in example docstring 2016-11-05 22:28:35 +00:00
Michał Górny
7c2f42d899 python-single-r1.eclass: Add python_gen_impl_dep, alike in python-r1 2015-12-31 15:52:03 +01:00
Michał Górny
4a1560e50b python-single-r1.eclass: Support PYTHON_COMPAT_OVERRIDE 2015-12-22 23:12:23 +01:00
Michał Górny
3923a952a7 python-single-r1.eclass: Fix python_gen_* w/ single PYTHON_COMPAT impl
Fix python_gen_useflags() and python_gen_cond_dep() to output correct
flag name when only a single implementation is listed in PYTHON_COMPAT.
In this case, the PYTHON_SINGLE_TARGET flags are not emitted
and PYTHON_TARGETS are used directly instead.
2015-12-22 23:12:23 +01:00
Michał Górny
33380ad5e1 python*-r1.eclass: Commonize PYTHON_COMPAT processing, cache the result
Introduce a common _python_set_impls function in python-utils-r1.eclass
that validates and processes PYTHON_COMPAT, then stores the result in
_PYTHON_SUPPORTED_IMPLS and _PYTHON_UNSUPPORTED_IMPLS variables. Reuse
those variables in all python-r1 suite eclasses, effectively reducing
code duplication and providing cache for repeated implementation support
checks.
2015-12-22 23:12:23 +01:00
Michał Górny
01e902405d python*-r1.eclass: Replace non-portable use of 'declare -g'
Replace uses of 'declare -g -r' (bash-4.2+) with 'readonly'. Reported
by Arfrever. This time use split assignments followed by readonly calls
since combined calls work unreliably.
2015-12-11 23:42:33 +01:00
Mike Gilbert
d296b5daa5 Revert "python*-r1.eclass: Replace non-portable use of 'declare -g'"
This reverts commit 44d3345d82.

This was triggering "No supported implementation in PYTHON_COMPAT.".
2015-12-11 17:26:44 -05:00
Michał Górny
44d3345d82 python*-r1.eclass: Replace non-portable use of 'declare -g'
Replace uses of 'declare -g -r' (bash-4.2+) with 'readonly'. Reported
by Arfrever.
2015-12-11 22:27:19 +01:00
Michał Górny
d7c8024fd8 python-single-r1.eclass: Mark eclass-generated variables read-only 2015-12-09 21:41:16 +01:00
Michał Górny
fafd13b912 python-single-r1.eclass: python_gen_cond_dep(), rename local PYTHON_USEDEP
Rename local PYTHON_USEDEP variable to avoid collisions with read-only
global variable.
2015-12-09 21:41:16 +01:00
Michał Górny
364a366877 python-single-r1.eclass: Unset global-setting function after use 2015-12-09 21:41:16 +01:00
Michał Górny
49c3bd48b8 python-single-r1.eclass: Enable EAPI=6, no changes needed 2015-11-28 20:09:06 +01:00
Mike Gilbert
4d18149d91 python-r1.eclass: Ensure that PYTHON_COMPAT is an array
As suggested by Arfrever.

Bug: https://bugs.gentoo.org/564258
2015-11-07 20:30:52 -05:00
Justin Lecher
c35ee2746e eclass: Exchange obsolete and depreacted Python ABIs in documentation
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2015-09-03 08:06:22 +02:00
Mike Frysinger
a3dac837fc eclass: fix various doc errors #537392 2015-08-14 00:05:33 -04:00
Robin H. Johnson
56bd759df1 proj/gentoo: Initial commit
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
2015-08-08 17:38:18 -07:00