2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2023 Niklas Poslovski
16 %patch% 02-pytest-indirectly.patch
19 COMPONENT_FMRI = multimedia/yt-dlp
20 COMPONENT_CLASSIFICATION = Applications/Sound and Video
22 # This is a standalone application. Since no other Python project depends on
23 # it we just provide single unversioned package.
24 SINGLE_PYTHON_VERSION = yes
27 # Add optional runtime dependencies. Technically, we do not need all of them
28 # because only subset is strongly recommended but it is easier to add all of
29 # them than to maintain the list of the strongly recommended.
31 # See also https://github.com/yt-dlp/yt-dlp/pull/11255
33 COMPONENT_POST_INSTALL_ACTION += \
34 PYTHONPATH=$(PROTO_DIR)/$(PYTHON_DIR)/site-packages:$(PROTO_DIR)/$(PYTHON_LIB) \
35 $(PYTHON) $(WS_TOOLS)/python-requires $(COMPONENT_NAME) default >> $(@D)/.depend-runtime ;