Files
haikuports/dev-python/pycares/patches/pycares-2.3.0.patchset
Adrien Destugues 3376b6e020 Add recipe for poezio (curses xmpp client)
This has been pending on my laptop for a few years, as I work on it
under the contributor's supervision atvarious free software meetups and
events.
2018-07-11 14:12:22 +02:00

36 lines
1.2 KiB
Plaintext

From 453186ac548dd30c1749e26093c61246617d5e8c Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Wed, 11 Jul 2018 14:02:51 +0200
Subject: Add Haiku support.
Just pretend we are NetBSD.
diff --git a/pycares.egg-info/SOURCES.txt b/pycares.egg-info/SOURCES.txt
index 879798e..dc1fd71 100644
--- a/pycares.egg-info/SOURCES.txt
+++ b/pycares.egg-info/SOURCES.txt
@@ -4,6 +4,7 @@ MANIFEST.in
README.rst
TODO
build_inplace
+setup.cfg
setup.py
setup_cares.py
tox.ini
diff --git a/setup_cares.py b/setup_cares.py
index 97c4cc6..5044766 100644
--- a/setup_cares.py
+++ b/setup_cares.py
@@ -78,6 +78,8 @@ class cares_build_ext(build_ext):
elif sys.platform.startswith('freebsd'):
self.compiler.add_include_dir(os.path.join(self.cares_dir, 'src/config_freebsd'))
self.compiler.add_library('kvm')
+ elif sys.platform.startswith('haiku'):
+ self.compiler.add_include_dir(os.path.join(self.cares_dir, 'src/config_netbsd'))
elif sys.platform.startswith('dragonfly'):
self.compiler.add_include_dir(os.path.join(self.cares_dir, 'src/config_freebsd'))
elif sys.platform.startswith('netbsd'):
--
2.16.4