perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / python / mutagen / Makefile
blob3324eb08c3ecee40091cd16f96c7dfb389ebcdae
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
5 # 1.0 of the CDDL.
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 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project mutagen
17 BUILD_STYLE = pyproject
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME = mutagen
22 HUMAN_VERSION = 1.47.0
23 COMPONENT_SUMMARY = mutagen - read and write audio tags for many formats
24 COMPONENT_PROJECT_URL = https://github.com/quodlibet/mutagen
25 COMPONENT_ARCHIVE_URL = \
26 https://files.pythonhosted.org/packages/81/e6/64bc71b74eef4b68e61eb921dcf72dabd9e4ec4af1e11891bbd312ccbb77/mutagen-1.47.0.tar.gz
27 COMPONENT_ARCHIVE_HASH = \
28 sha256:719fadef0a978c31b4cf3c956261b3c58b6948b32023078a2117b1de09f0fc99
29 COMPONENT_LICENSE = GPL-2.0-only
30 COMPONENT_LICENSE_FILE = COPYING
32 TEST_STYLE = pytest
34 include $(WS_MAKE_RULES)/common.mk
36 # Rename section 1 man page(s) to contain version number
37 COMPONENT_POST_INSTALL_ACTION += \
38 for f in $(PROTOUSRSHAREMAN1DIR)/*.1 ; do \
39 [[ -f $$f ]] || continue ; \
40 for v in $(PYTHON_VERSIONS) ; do \
41 [[ "$$f" == "$${f%%$$v.1}" ]] || continue 2 ; \
42 done ; \
43 $(MV) $$f $${f%%.1}-$(PYTHON_VERSION).1 ; \
44 done ;
46 # Replace Python version in man page file paths
47 GENERATE_EXTRA_CMD += | \
48 $(GSED) -e 's|\(usr/share/man/man.*-\)3\.[0-9]\{1,\}\(\.[0-9]\)|\1$$(PYVER)\2|' | uniq
50 # Auto-generated dependencies
51 PYTHON_REQUIRED_PACKAGES += library/python/setuptools
52 PYTHON_REQUIRED_PACKAGES += library/python/wheel
53 PYTHON_REQUIRED_PACKAGES += runtime/python