From 29153265c8bb25626cc53f3b6f3daf68175a16f5 Mon Sep 17 00:00:00 2001 From: OscarL Date: Fri, 14 Mar 2025 02:31:38 -0300 Subject: [PATCH] pyaes: drop unused recipe. (#11963) Not required by anything on-tree since its introduction in 4782ded8c70a439f3c060708e790ff5606ca7fd5. Users should try to `pip install` this, if they need it. --- dev-python/pyaes/pyaes-1.6.1.recipe | 88 ----------------------------- 1 file changed, 88 deletions(-) delete mode 100644 dev-python/pyaes/pyaes-1.6.1.recipe diff --git a/dev-python/pyaes/pyaes-1.6.1.recipe b/dev-python/pyaes/pyaes-1.6.1.recipe deleted file mode 100644 index 2859c8ac9..000000000 --- a/dev-python/pyaes/pyaes-1.6.1.recipe +++ /dev/null @@ -1,88 +0,0 @@ -SUMMARY="Python implementation of the AES block cipher algorithm" -DESCRIPTION="A pure-Python implementation of the AES block cipher algorithm \ -and the common modes of operation (CBC, CFB, CTR, ECB and OFB)." -HOMEPAGE="https://pypi.python.org/pypi/pip" -COPYRIGHT="2014 Richard Moore" -LICENSE="MIT" -REVISION="3" -SOURCE_URI="https://pypi.org/packages/source/p/pyaes/pyaes-$portVersion.tar.gz" -CHECKSUM_SHA256="02c1b1405c38d3c370b085fb952dd8bea3fadcee6411ad99f312cc129c536d8f" - -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 - \"" - eval "REQUIRES_$pythonPackage=\" - haiku - cmd:python$pythonVersion - setuptools_$pythonPackage - \"" - BUILD_REQUIRES+=" - setuptools_$pythonPackage - " - BUILD_PREREQUIRES+=" - cmd:python$pythonVersion - " - # Tests Needs "Crypto", but PyCrypto is deprecated, so use a replacement. - TEST_REQUIRES+=" - pycryptodome_$pythonPackage - " -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 -} - - -TEST() -{ - cd tests - # Make sure the tests can find the local "pyaes" module - export PYTHONPATH="../":$PYTHONPATH - - for i in "${!PYTHON_VERSIONS[@]}"; do - pythonVersion=${PYTHON_VERSIONS[$i]} - - python=python$pythonVersion - - for f in *.py; do - $python $f - done - done -}