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:
66
dev-python/slixmpp/slixmpp-1.3.0.recipe
Normal file
66
dev-python/slixmpp/slixmpp-1.3.0.recipe
Normal file
@@ -0,0 +1,66 @@
|
||||
SUMMARY="XMPP library for Python 3.4+"
|
||||
DESCRIPTION="Slixmpp is an MIT licensed XMPP library for Python 3.4+. It is a\
|
||||
fork of SleekXMPP.
|
||||
|
||||
Slixmpp's goals is to only rewrite the core of the library (the low level \
|
||||
socket handling, the timers, the events dispatching) in order to remove all \
|
||||
threads."
|
||||
HOMEPAGE="https://github.com/poezio/slixmpp"
|
||||
COPYRIGHT="2010 Nathanael C. Fritz"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/poezio/slixmpp/archive/slix-$portVersion.tar.gz"
|
||||
SOURCE_DIR="slixmpp-slix-$portVersion"
|
||||
CHECKSUM_SHA256="805fdd89bd3c005e2270e1805ed11d12e045705c11bd649aeae39a9efd75af81"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
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