mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
aiohttp_socks: drop recipe. (#11893)
Nothing uses this on-tree, and apparetly nothing never ever did (`git log -S aiohttp_socks` gives nothing). Also... current version is missing a hard dependency for a package/module that we do not provide: python-socks[asyncio]>=1.2.2 (newsest version upstream requiers: python-socks[asyncio]>=2.4.3,<3.0.0 Just drop this thing, and let whoever needs it install it via pip.
This commit is contained in:
@@ -1,60 +0,0 @@
|
||||
SUMMARY="Proxy (HTTP, SOCKS) connector for aiohttp"
|
||||
DESCRIPTION="Proxy connector for aiohttp. SOCKS4(a), SOCKS5, HTTP \
|
||||
(tunneling), Proxy chains are supported."
|
||||
HOMEPAGE="https://github.com/romis2012/aiohttp-socks"
|
||||
COPYRIGHT="2018-2020 Santiago Torres"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://github.com/romis2012/aiohttp-socks/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="7d3fc71f6c992d134cc1ebdfecb2cb2531a06fba529b38d8120a1085372563d6"
|
||||
SOURCE_DIR="aiohttp-socks-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
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