mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
pycairo: add recipe (#8895)
This commit is contained in:
33
dev-python/pycairo/patches/pycairo-1.24.0.patchset
Normal file
33
dev-python/pycairo/patches/pycairo-1.24.0.patchset
Normal file
@@ -0,0 +1,33 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user