extutils_installpaths: new perl module recipe

This commit is contained in:
Joachim Mairböck
2025-01-25 20:40:18 +01:00
parent d51c3d2b68
commit 1b668b475c
2 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
From 93916d9b99cd61bd57050d7e720a373341c00306 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= <j.mairboeck@gmail.com>
Date: Sat, 25 Jan 2025 20:12:21 +0100
Subject: Add support for HAIKU_USE_VENDOR_DIRECTORIES
diff --git a/lib/ExtUtils/InstallPaths.pm b/lib/ExtUtils/InstallPaths.pm
index dd276a0..86ed286 100644
--- a/lib/ExtUtils/InstallPaths.pm
+++ b/lib/ExtUtils/InstallPaths.pm
@@ -12,7 +12,7 @@ my %complex_accessors = map { $_ => 1 } qw/prefix_relpaths install_sets/;
my %hash_accessors = map { $_ => 1 } qw/install_path install_base_relpaths original_prefix /;
my %defaults = (
- installdirs => 'site',
+ installdirs => $ENV{'HAIKU_USE_VENDOR_DIRECTORIES'} ? 'vendor' : 'site',
install_base => undef,
prefix => undef,
verbose => 0,
--
2.45.2