mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
pymupdf: add recipe for 1.19.6 (#6824)
* pymupdf: add recipe for 1.19.6 * Exclude x86_gcc2 and add python3.10 as target * Add AGPL-3.0 locally to pymupdf * Add x86 support to setup.py * Move closing quote mark * Change include/library folder order to better support secondary-arch * look for corresponding version of mupdf * hardcode mupdf version number
This commit is contained in:
32
dev-python/pymupdf/patches/pymupdf-1.19.6.patchset
Normal file
32
dev-python/pymupdf/patches/pymupdf-1.19.6.patchset
Normal file
@@ -0,0 +1,32 @@
|
||||
From c65cf1b6eb9791e523e348946c15be8621e22744 Mon Sep 17 00:00:00 2001
|
||||
From: Ivan Holmes <ivan@ivanholmes.co.uk>
|
||||
Date: Wed, 13 Apr 2022 13:07:48 +0100
|
||||
Subject: Add Haiku platform to setup.py
|
||||
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 475bc5d..4647f52 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -104,7 +104,17 @@ elif sys.platform.startswith(("darwin", "freebsd", "openbsd")):
|
||||
libraries = ["mupdf", "mupdf-third"]
|
||||
library_dirs = ["/usr/local/lib", "/opt/homebrew/lib"]
|
||||
extra_link_args = []
|
||||
-
|
||||
+
|
||||
+elif sys.platform.startswith("haiku"):
|
||||
+ include_dirs = [
|
||||
+ "/boot/system/develop/headers/x86/mupdf",
|
||||
+ "/boot/system/develop/headers/mupdf",
|
||||
+ "/boot/system/develop/headers/x86/freetype2",
|
||||
+ "/boot/system/develop/headers/freetype2"
|
||||
+ ]
|
||||
+ libraries = ["mupdf"]
|
||||
+ library_dirs = ["/boot/system/lib/x86", "/boot/system/lib"]
|
||||
+ extra_link_args = []
|
||||
|
||||
else:
|
||||
include_dirs = [
|
||||
--
|
||||
2.30.2
|
||||
|
||||
Reference in New Issue
Block a user