Files
haikuports/dev-python/reportlab/patches/reportlab-3.6.9.patchset
Ivan Holmes b254189b8c Add recipe for reportlab 3.6.9 (#6825)
* Add recipe for reportlab 3.6.9
2022-04-19 14:50:00 +02:00

49 lines
1.5 KiB
Plaintext

From c2fbc73f80870621b9eb120a1af26c7b8aa112c5 Mon Sep 17 00:00:00 2001
From: Ivan Holmes <ivan@ivanholmes.co.uk>
Date: Mon, 11 Apr 2022 17:29:01 +0100
Subject: Add Haiku-specific include/library paths
diff --git a/setup.py b/setup.py
index 3b7e665..fdc5af7 100644
--- a/setup.py
+++ b/setup.py
@@ -252,6 +252,11 @@ class inc_lib_dirs:
# darwin ports installation directories
aDir(L, "/opt/local/lib")
aDir(I, "/opt/local/include")
+ elif platform.startswith("haiku"):
+ aDir(I, "/boot/system/develop/headers/x86/freetype2")
+ aDir(I, "/boot/system/develop/headers/freetype2")
+ aDir(L, "/boot/system/lib/x86")
+ aDir(L, "/boot/system/lib")
aDir(I, "/usr/local/include")
aDir(L, "/usr/local/lib")
aDir(I, "/usr/include")
--
2.30.2
From a599b24524dc317d69b13cb0ca08855a1951e878 Mon Sep 17 00:00:00 2001
From: Ivan Holmes <ivan@ivanholmes.co.uk>
Date: Mon, 11 Apr 2022 17:44:15 +0100
Subject: add vendor-packages to potential package_paths
diff --git a/setup.py b/setup.py
index fdc5af7..3c01392 100644
--- a/setup.py
+++ b/setup.py
@@ -93,7 +93,7 @@ def _packages_path(d):
P = [_ for _ in sys.path if basename(_)==d]
if P: return P[0]
-package_path = _packages_path('dist-packages') or _packages_path('site-packages')
+package_path = _packages_path('dist-packages') or _packages_path('site-packages') or _packages_path('vendor-packages')
package_path = pjoin(package_path, 'reportlab')
def die(msg):
--
2.30.2