vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / by-name / me / meson / 007-freebsd-pkgconfig-path.patch
blob3a9ba6f092ddaa16005190a6b2956b5385c6d570
1 diff -ur a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
2 --- a/mesonbuild/modules/pkgconfig.py 2024-05-17 17:52:30.880877000 -0700
3 +++ b/mesonbuild/modules/pkgconfig.py 2024-05-17 17:53:10.901068000 -0700
4 @@ -693,10 +693,7 @@
5 pcfile = filebase + '.pc'
6 pkgroot = pkgroot_name = kwargs['install_dir'] or default_install_dir
7 if pkgroot is None:
8 - if mesonlib.is_freebsd():
9 - pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(mesonlib.OptionKey('prefix'))), 'libdata', 'pkgconfig')
10 - pkgroot_name = os.path.join('{prefix}', 'libdata', 'pkgconfig')
11 - elif mesonlib.is_haiku():
12 + if mesonlib.is_haiku():
13 pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(mesonlib.OptionKey('prefix'))), 'develop', 'lib', 'pkgconfig')
14 pkgroot_name = os.path.join('{prefix}', 'develop', 'lib', 'pkgconfig')
15 else: