python3: hide -src package until main pkg selected
authorEneas U de Queiroz <redacted>
Fri, 10 Apr 2020 15:18:32 +0000 (12:18 -0300)
committerEneas U de Queiroz <redacted>
Fri, 10 Apr 2020 15:41:37 +0000 (12:41 -0300)
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 <redacted>
lang/python/python3-package.mk

index 0f5621c9f7feb59b590348af3b57ba0e3061a769..97589b563e29d109819638ed237c83939ad159b2 100644 (file)
@@ -56,6 +56,10 @@ define Py3Package
     (Contains the Python3 sources for this package).
   endef
 
+  define Package/$(1)-src/config
+    depends on PACKAGE_$(1)
+  endef
+
   # Add default PyPackage filespec none defined
   ifndef Py3Package/$(1)/filespec
     define Py3Package/$(1)/filespec
git clone https://git.99rst.org/PROJECT