mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 06:18:21 +04:00
python3: hide -src package until main pkg selected
This adds a 'Package/<pkg>-src/config' definition with a 'depends on <pkg>' line, which will hide <pkg>-src unless <pkg> is selected. This makes the long list of python packages a bit shorter, and also indents the src package: <M> python3-base................................ Python 3.8 interpreter < > python3-base-src................. Python 3.8 interpreter (sources) Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
@@ -56,6 +56,10 @@ define Py3Package
|
|||||||
(Contains the Python3 sources for this package).
|
(Contains the Python3 sources for this package).
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/$(1)-src/config
|
||||||
|
depends on PACKAGE_$(1)
|
||||||
|
endef
|
||||||
|
|
||||||
# Add default PyPackage filespec none defined
|
# Add default PyPackage filespec none defined
|
||||||
ifndef Py3Package/$(1)/filespec
|
ifndef Py3Package/$(1)/filespec
|
||||||
define Py3Package/$(1)/filespec
|
define Py3Package/$(1)/filespec
|
||||||
|
|||||||
Reference in New Issue
Block a user