From 493769ed8a9a8ff32a003a973be7b20eb0c6cde2 Mon Sep 17 00:00:00 2001 From: Elvis Pranskevichus Date: Wed, 30 Oct 2024 10:48:42 -0700 Subject: [PATCH] targets.generic: Move doc/man/info under share/ Many packages disregard explicit `--mandir` and friends and just put things under `--datarootdir`, so align the layout with what is common so that `{mandir}` and friends in templates are correct. --- metapkg/targets/generic/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metapkg/targets/generic/__init__.py b/metapkg/targets/generic/__init__.py index 15eff4b..5d33cd1 100644 --- a/metapkg/targets/generic/__init__.py +++ b/metapkg/targets/generic/__init__.py @@ -96,11 +96,11 @@ def get_install_path( elif aspect == "legal": return prefix / "licenses" elif aspect == "doc": - return prefix / "doc" / root_subdir + return prefix / "share" / "doc" / root_subdir elif aspect == "info": - return prefix / "info" + return prefix / "share" / "info" elif aspect == "man": - return prefix / "man" + return prefix / "share" / "man" elif aspect == "bin": return prefix / "bin" elif aspect == "systembin":