diff --git a/dev-python/pyasn1-modules/pyasn1_modules-0.2.2.recipe b/dev-python/pyasn1-modules/pyasn1_modules-0.2.2.recipe new file mode 100644 index 000000000..c9df55c1c --- /dev/null +++ b/dev-python/pyasn1-modules/pyasn1_modules-0.2.2.recipe @@ -0,0 +1,63 @@ +SUMMARY="Collection of ASN.1 modules in form of pyasn1 classes" +DESCRIPTION="A collection of ASN.1 modules expressed in form of pyasn1 \ +classes. Includes protocols PDUs definition (SNMP, LDAP etc.) and various \ +data structures (X.509, PKCS etc.)." +HOMEPAGE="https://pypi.org/project/pyasn1-modules/" +COPYRIGHT="2011-2018 Ilya Etingof " +LICENSE="BSD (2-clause)" +REVISION="1" +SOURCE_URI="https://files.pythonhosted.org/packages/37/33/74ebdc52be534e683dc91faf263931bc00ae05c6073909fde53999088541/pyasn1-modules-$portVersion.tar.gz" +SOURCE_DIR="pyasn1-modules-$portVersion" +CHECKSUM_SHA256="a0cf3e1842e7c60fde97cb22d275eb6f9524f5c5250489e292529de841417547" + +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 +} + + diff --git a/dev-python/pyasn1/pyasn1-0.4.3.recipe b/dev-python/pyasn1/pyasn1-0.4.3.recipe new file mode 100644 index 000000000..d86fc74ca --- /dev/null +++ b/dev-python/pyasn1/pyasn1-0.4.3.recipe @@ -0,0 +1,62 @@ +SUMMARY="Pure-Python implementation of ASN.1 types and codecs" +DESCRIPTION="Pure-Python implementation of ASN.1 types and DER/BER/CER codecs \ +(X.208)" +HOMEPAGE="https://pypi.org/project/pyasn1" +COPYRIGHT="2007-2018 Ilya Etingof " +LICENSE="BSD (2-clause)" +REVISION="1" +SOURCE_URI="https://files.pythonhosted.org/packages/0d/33/3466a3210321a02040e3ab2cd1ffc6f44664301a5d650a7e44be1dc341f2/pyasn1-$portVersion.tar.gz" +SOURCE_DIR="pyasn1-$portVersion" +CHECKSUM_SHA256="fb81622d8f3509f0026b0683fe90fea27be7284d3826a5f2edf97f69151ab0fc" + +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 +} + + diff --git a/dev-python/pycares/patches/pycares-2.3.0.patchset b/dev-python/pycares/patches/pycares-2.3.0.patchset new file mode 100644 index 000000000..6fd2916ac --- /dev/null +++ b/dev-python/pycares/patches/pycares-2.3.0.patchset @@ -0,0 +1,35 @@ +From 453186ac548dd30c1749e26093c61246617d5e8c Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +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 + diff --git a/dev-python/pycares/pycares-2.3.0.recipe b/dev-python/pycares/pycares-2.3.0.recipe new file mode 100644 index 000000000..fa2e6172b --- /dev/null +++ b/dev-python/pycares/pycares-2.3.0.recipe @@ -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 +} + + diff --git a/dev-python/slixmpp/slixmpp-1.3.0.recipe b/dev-python/slixmpp/slixmpp-1.3.0.recipe new file mode 100644 index 000000000..3aa3931cb --- /dev/null +++ b/dev-python/slixmpp/slixmpp-1.3.0.recipe @@ -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 +} + + diff --git a/net-im/poezio/patches/poezio-0.11.patchset b/net-im/poezio/patches/poezio-0.11.patchset new file mode 100644 index 000000000..beef2a2a5 --- /dev/null +++ b/net-im/poezio/patches/poezio-0.11.patchset @@ -0,0 +1,30 @@ +From 28ee858802477aaade743d3ca145e25d7d267860 Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Sun, 19 Nov 2017 14:20:21 +0100 +Subject: Fix documentation paths + + +diff --git a/setup.py b/setup.py +index 2270c41..e2adba9 100755 +--- a/setup.py ++++ b/setup.py +@@ -98,12 +98,12 @@ setup(name="poezio", + package_data={'poezio': ['default_config.cfg']}, + scripts=['scripts/poezio_gpg_export', 'scripts/poezio_logs'], + entry_points={'console_scripts': ['poezio = poezio.__main__:run']}, +- data_files=([('share/man/man1/', ['data/poezio.1', ++ data_files=([('documentation/man/man1/', ['data/poezio.1', + 'data/poezio_gpg_export.1', + 'data/poezio_logs.1']), +- ('share/poezio/', ['README.rst', 'COPYING', 'CHANGELOG'])] +- + find_doc('share/doc/poezio/source', 'source') +- + find_doc('share/doc/poezio/html', 'build/html')), ++ ('documentation/packages/poezio/', ['README.rst', 'COPYING', 'CHANGELOG'])] ++ + find_doc('documentation/packages/poezio/source', 'source') ++ + find_doc('documentation/packages/poezio/html', 'build/html')), + install_requires=['slixmpp>=1.2.4', 'aiodns'], + extras_require={'OTR plugin': 'python-potr>=1.0', + 'Screen autoaway plugin': 'pyinotify==0.9.4'}) +-- +2.15.0 + diff --git a/net-im/poezio/poezio-0.11.recipe b/net-im/poezio/poezio-0.11.recipe new file mode 100644 index 000000000..b2a921fa0 --- /dev/null +++ b/net-im/poezio/poezio-0.11.recipe @@ -0,0 +1,64 @@ +SUMMARY="Free console XMPP client" +DESCRIPTION="Poezio is a free console XMPP client (the protocol on which the \ +Jabber IM network is built). + +Its goal is to let you connect very easily (no account creation needed) to the \ +network and join various chatrooms, immediately. It tries to look like the \ +most famous IRC clients (weechat, irssi, etc). Many commands are identical \ +and you won't be lost if you already know these clients. Configuration can be \ +made in a configuration file or directly from the client. + +You'll find the light, fast, geeky and anonymous spirit of IRC while using a \ +powerful, standard and open protocol." +HOMEPAGE="http://poez.io" +COPYRIGHT="2010-2017 Florent Le Coz, Mathieu Pasquet" +LICENSE="Zlib" +SOURCE_URI="https://dev.louiz.org/attachments/download/118/poezio-$portVersion.tar.gz" +CHECKSUM_SHA256="200be4db93cc4397263b3579efe9b6e43fbb57491d717fc89659717dc219961d" +SOURCE_DIR="poezio-$portVersion" +PATCHES="poezio-$portVersion.patchset" +REVISION="1" + +ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + poezio$secondaryArchSuffix = $portVersion + cmd:poezio = $portVersion + cmd:poezio_gpg_export = $portVersion + cmd:poezio_logs = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + cmd:python3 + aiodns_python3 + slixmpp_python3 + pycares_python3$secondaryArchSuffix + pyasn1_python3 + pyasn1_modules_python3 + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + setuptools_python3 + " + +BUILD() +{ + python3 setup.py build +} + +INSTALL() +{ + # GENERIC: all python_setuptools-based installs need this + pythonVersion=$(python3 --version 2>&1 | sed 's/Python //' | head -c3) + installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ + export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation + + $portPackageLinksDir/cmd~python3/bin/python3 setup.py install \ + --root=$prefix --prefix=. --skip-build +}