mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
dev-embedded/esp-idf-kconfig: fix patch for kconfiglib compatibility
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
26
dev-embedded/esp-idf-kconfig/esp-idf-kconfig-2.5.1-r1.ebuild
Normal file
26
dev-embedded/esp-idf-kconfig/esp-idf-kconfig-2.5.1-r1.ebuild
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Copyright 2026 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{{11..14},13t} )
|
||||||
|
|
||||||
|
inherit distutils-r1 pypi
|
||||||
|
|
||||||
|
DESCRIPTION="Kconfig tooling for esp-idf"
|
||||||
|
HOMEPAGE="https://github.com/espressif/esp-idf-kconfig"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}/${P}-rename-kconfiglib.patch" )
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
rm -r docs || die
|
||||||
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
# Needed to avoid conflicts with dev-python/kconfiglib
|
# Needed to avoid conflicts with dev-python/kconfiglib
|
||||||
# See https://github.com/espressif/esp-idf-kconfig/issues/13 for context
|
# See https://github.com/espressif/esp-idf-kconfig/issues/13 for context
|
||||||
|
diff --git c/esp_idf_kconfig/gen_kconfig_doc.py w/esp_idf_kconfig/gen_kconfig_doc.py
|
||||||
|
index 87d0c1a..cb83260 100644
|
||||||
--- c/esp_idf_kconfig/gen_kconfig_doc.py
|
--- c/esp_idf_kconfig/gen_kconfig_doc.py
|
||||||
+++ w/esp_idf_kconfig/gen_kconfig_doc.py
|
+++ w/esp_idf_kconfig/gen_kconfig_doc.py
|
||||||
@@ -11,7 +11,7 @@
|
@@ -11,7 +11,7 @@
|
||||||
@@ -11,12 +13,15 @@
|
|||||||
|
|
||||||
# Indentation to be used in the generated file
|
# Indentation to be used in the generated file
|
||||||
INDENT = " "
|
INDENT = " "
|
||||||
|
diff --git c/kconfiglib/__init__.py w/espkconfiglib/__init__.py
|
||||||
similarity index 100%
|
similarity index 100%
|
||||||
rename from kconfiglib/__init__.py
|
rename from kconfiglib/__init__.py
|
||||||
rename to espkconfiglib/__init__.py
|
rename to espkconfiglib/__init__.py
|
||||||
|
diff --git c/kconfiglib/core.py w/espkconfiglib/core.py
|
||||||
similarity index 99%
|
similarity index 99%
|
||||||
rename from kconfiglib/core.py
|
rename from kconfiglib/core.py
|
||||||
rename to espkconfiglib/core.py
|
rename to espkconfiglib/core.py
|
||||||
|
index 971b53e..cf2a5ec 100644
|
||||||
--- c/kconfiglib/core.py
|
--- c/kconfiglib/core.py
|
||||||
+++ w/espkconfiglib/core.py
|
+++ w/espkconfiglib/core.py
|
||||||
@@ -2,7 +2,7 @@
|
@@ -2,7 +2,7 @@
|
||||||
@@ -37,9 +42,11 @@ rename to espkconfiglib/core.py
|
|||||||
|
|
||||||
parser = Parser(kconfig=self)
|
parser = Parser(kconfig=self)
|
||||||
|
|
||||||
|
diff --git c/kconfiglib/kconfig_grammar.py w/espkconfiglib/kconfig_grammar.py
|
||||||
similarity index 99%
|
similarity index 99%
|
||||||
rename from kconfiglib/kconfig_grammar.py
|
rename from kconfiglib/kconfig_grammar.py
|
||||||
rename to espkconfiglib/kconfig_grammar.py
|
rename to espkconfiglib/kconfig_grammar.py
|
||||||
|
index d4c8fee..5f00c1f 100644
|
||||||
--- c/kconfiglib/kconfig_grammar.py
|
--- c/kconfiglib/kconfig_grammar.py
|
||||||
+++ w/espkconfiglib/kconfig_grammar.py
|
+++ w/espkconfiglib/kconfig_grammar.py
|
||||||
@@ -29,7 +29,7 @@ from pyparsing import one_of
|
@@ -29,7 +29,7 @@ from pyparsing import one_of
|
||||||
@@ -51,9 +58,11 @@ rename to espkconfiglib/kconfig_grammar.py
|
|||||||
|
|
||||||
|
|
||||||
class KconfigBlock(Token):
|
class KconfigBlock(Token):
|
||||||
|
diff --git c/kconfiglib/kconfig_parser.py w/espkconfiglib/kconfig_parser.py
|
||||||
similarity index 99%
|
similarity index 99%
|
||||||
rename from kconfiglib/kconfig_parser.py
|
rename from kconfiglib/kconfig_parser.py
|
||||||
rename to espkconfiglib/kconfig_parser.py
|
rename to espkconfiglib/kconfig_parser.py
|
||||||
|
index 86e6f7f..4bab061 100644
|
||||||
--- c/kconfiglib/kconfig_parser.py
|
--- c/kconfiglib/kconfig_parser.py
|
||||||
+++ w/espkconfiglib/kconfig_parser.py
|
+++ w/espkconfiglib/kconfig_parser.py
|
||||||
@@ -17,7 +17,7 @@ from pyparsing import ParseResults
|
@@ -17,7 +17,7 @@ from pyparsing import ParseResults
|
||||||
@@ -65,6 +74,8 @@ rename to espkconfiglib/kconfig_parser.py
|
|||||||
|
|
||||||
from .core import AND
|
from .core import AND
|
||||||
from .core import BOOL
|
from .core import BOOL
|
||||||
|
diff --git c/kconfgen/core.py w/kconfgen/core.py
|
||||||
|
index dbcf8c3..37f3205 100755
|
||||||
--- c/kconfgen/core.py
|
--- c/kconfgen/core.py
|
||||||
+++ w/kconfgen/core.py
|
+++ w/kconfgen/core.py
|
||||||
@@ -27,7 +27,7 @@ from typing import Set
|
@@ -27,7 +27,7 @@ from typing import Set
|
||||||
@@ -76,6 +87,8 @@ rename to espkconfiglib/kconfig_parser.py
|
|||||||
from esp_idf_kconfig import __version__
|
from esp_idf_kconfig import __version__
|
||||||
|
|
||||||
|
|
||||||
|
diff --git c/kconfserver/core.py w/kconfserver/core.py
|
||||||
|
index fead552..8693663 100644
|
||||||
--- c/kconfserver/core.py
|
--- c/kconfserver/core.py
|
||||||
+++ w/kconfserver/core.py
|
+++ w/kconfserver/core.py
|
||||||
@@ -13,7 +13,7 @@ import tempfile
|
@@ -13,7 +13,7 @@ import tempfile
|
||||||
@@ -87,6 +100,8 @@ rename to espkconfiglib/kconfig_parser.py
|
|||||||
from esp_idf_kconfig import __version__
|
from esp_idf_kconfig import __version__
|
||||||
|
|
||||||
# Min/Max supported protocol versions
|
# Min/Max supported protocol versions
|
||||||
|
diff --git c/menuconfig/core.py w/menuconfig/core.py
|
||||||
|
index 1d71292..2fa6cdd 100755
|
||||||
--- c/menuconfig/core.py
|
--- c/menuconfig/core.py
|
||||||
+++ w/menuconfig/core.py
|
+++ w/menuconfig/core.py
|
||||||
@@ -2,7 +2,7 @@
|
@@ -2,7 +2,7 @@
|
||||||
|
|||||||
Reference in New Issue
Block a user