mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
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.
This commit is contained in:
35
dev-python/pycares/patches/pycares-2.3.0.patchset
Normal file
35
dev-python/pycares/patches/pycares-2.3.0.patchset
Normal file
@@ -0,0 +1,35 @@
|
||||
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
|
||||
|
||||
70
dev-python/pycares/pycares-2.3.0.recipe
Normal file
70
dev-python/pycares/pycares-2.3.0.recipe
Normal file
@@ -0,0 +1,70 @@
|
||||
SUMMARY="Python interface for c-ares"
|
||||
DESCRIPTION="pycares is a Python module which provides an interface to c-ares. \
|
||||
c-ares is a C library that performs DNS requests and name resolutions \
|
||||
asynchronously."
|
||||
HOMEPAGE="https://pypi.python.org/pypi/pycares"
|
||||
COPYRIGHT="2017 Saúl Ibarra Corretgé"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.python.org/packages/89/5c/3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10/pycares-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40"
|
||||
PATCHES="pycares-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES=""
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcares$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcares$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python3)
|
||||
PYTHON_VERSIONS=(3.6)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
cmd:python$pythonVersion\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion"
|
||||
done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
rm -rf build
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user