Skip to content

Commit

Permalink
py-pikepdf: remove unneeded Homebrew paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamschula committed Mar 23, 2022
1 parent 9d054f2 commit 5461a9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
8 changes: 2 additions & 6 deletions python/py-pikepdf/Portfile
Expand Up @@ -37,17 +37,13 @@ if {${name} ne ${subport}} {
port:qpdf

compiler.cxx_standard \
2017
2014
# error: no matching constructor for initialization of 'match_replace'
compiler.blacklist-append {clang < 1000}
compiler.blacklist-append {clang < 900}

if {${os.arch} == "arm" } {
patchfiles-append \
patch-setup.py.diff

post-patch {
reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/setup.py
}
}

livecheck.type none
Expand Down
11 changes: 5 additions & 6 deletions python/py-pikepdf/files/patch-setup.py.diff
@@ -1,13 +1,12 @@
--- setup.py.orig 2022-03-21 20:35:06.000000000 -0500
+++ setup.py 2022-03-21 20:35:36.000000000 -0500
@@ -19,8 +19,8 @@
--- setup.py.orig 2022-03-21 03:14:55.000000000 -0500
+++ setup.py 2022-03-23 05:44:48.000000000 -0500
@@ -18,9 +18,6 @@
extra_library_dirs.append(join(qpdf_source_tree, 'libqpdf/build/.libs'))
if 'bsd' in sys.platform:
extra_includes.append('/usr/local/include')
elif 'darwin' in sys.platform and machine() == 'arm64':
-elif 'darwin' in sys.platform and machine() == 'arm64':
- extra_includes.append('/opt/homebrew/include')
- extra_library_dirs.append('/opt/homebrew/lib')
+ extra_includes.append('%PREFIX%/include')
+ extra_library_dirs.append('%PREFIX%/lib')

try:
from setuptools_scm import get_version

0 comments on commit 5461a9a

Please sign in to comment.