From: Eneas U de Queiroz Date: Fri, 10 Apr 2020 15:18:32 +0000 (-0300) Subject: python3: hide -src package until main pkg selected X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3d28b776bcaae76f7d1a9731e6b804f6ce16988a;p=openwrt-packages.git python3: hide -src package until main pkg selected This adds a 'Package/-src/config' definition with a 'depends on ' line, which will hide -src unless is selected. This makes the long list of python packages a bit shorter, and also indents the src package: python3-base................................ Python 3.8 interpreter < > python3-base-src................. Python 3.8 interpreter (sources) Signed-off-by: Eneas U de Queiroz --- diff --git a/lang/python/python3-package.mk b/lang/python/python3-package.mk index 0f5621c9f..97589b563 100644 --- a/lang/python/python3-package.mk +++ b/lang/python/python3-package.mk @@ -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