Files
haikuports/dev-python/pycairo/patches/pycairo-1.24.0.patchset
2023-06-28 21:26:32 +03:00

34 lines
1.1 KiB
Plaintext

From e34815392264061a90515bec7abb880ff1dee15a Mon Sep 17 00:00:00 2001
From: hfsfox <darkkitsunezx128k2309@gmail.com>
Date: Wed, 28 Jun 2023 15:41:57 +0000
Subject: fix headers path
diff --git a/setup.py b/setup.py
old mode 100755
new mode 100644
index b91fb5c..40ea407
--- a/setup.py
+++ b/setup.py
@@ -380,7 +380,7 @@ class install_pycairo_header(Command):
source = self.get_inputs()[0]
# for things using get_include()
- lib_hdir = os.path.join(self.install_lib, "cairo", "include")
+ lib_hdir = os.path.join(self.install_lib, "cairo", "develop/headers")
self.mkpath(lib_hdir)
lib_header_path = os.path.join(lib_hdir, hname)
(out, _) = self.copy_file(source, lib_header_path)
@@ -394,7 +394,7 @@ class install_pycairo_header(Command):
return
# for things using pkg-config
- data_hdir = os.path.join(self.install_data, "include", "pycairo")
+ data_hdir = os.path.join(self.install_data, "develop/headers", "pycairo")
self.mkpath(data_hdir)
header_path = os.path.join(data_hdir, hname)
(out, _) = self.copy_file(source, header_path)
--
2.37.3