From be3cd721c369d0d69a2f8bde6f687d9e8fd2463b Mon Sep 17 00:00:00 2001 From: OscarL Date: Tue, 9 Dec 2025 12:56:24 -0300 Subject: [PATCH] pycrypto: remove obsolete recipe. (#13353) Users should have already switched to something actually mainained, like the pip-installable pycryptodome/pycryptodomex. --- dev-python/pycrypto/licenses/pycrypto | 69 ------------------- dev-python/pycrypto/pycrypto-2.6.1.recipe | 81 ----------------------- 2 files changed, 150 deletions(-) delete mode 100644 dev-python/pycrypto/licenses/pycrypto delete mode 100644 dev-python/pycrypto/pycrypto-2.6.1.recipe diff --git a/dev-python/pycrypto/licenses/pycrypto b/dev-python/pycrypto/licenses/pycrypto deleted file mode 100644 index 5ea30bec0..000000000 --- a/dev-python/pycrypto/licenses/pycrypto +++ /dev/null @@ -1,69 +0,0 @@ -Copyright and licensing of the Python Cryptography Toolkit ("PyCrypto"): -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Previously, the copyright and/or licensing status of the Python -Cryptography Toolkit ("PyCrypto") had been somewhat ambiguous. The -original intention of Andrew M. Kuchling and other contributors has -been to dedicate PyCrypto to the public domain, but that intention was -not necessarily made clear in the original disclaimer (see -LEGAL/copy/LICENSE.orig). - -Additionally, some files within PyCrypto had specified their own -licenses that differed from the PyCrypto license itself. For example, -the original RIPEMD.c module simply had a copyright statement and -warranty disclaimer, without clearly specifying any license terms. -(An updated version on the author's website came with a license that -contained a GPL-incompatible advertising clause.) - -To rectify this situation for PyCrypto 2.1, the following steps have -been taken: - - 1. Obtaining explicit permission from the original contributors to - dedicate their contributions to the public domain if they have not - already done so. (See the "LEGAL/copy/stmts" directory for - contributors' statements.) - - 2. Replacing some modules with clearly-licensed code from other - sources (e.g. the DES and DES3 modules were replaced with new ones - based on Tom St. Denis's public-domain LibTomCrypt library.) - - 3. Replacing some modules with code written from scratch (e.g. the - RIPEMD and Blowfish modules were re-implemented from their - respective algorithm specifications without reference to the old - implementations). - - 4. Removing some modules altogether without replacing them. - -To the best of our knowledge, with the exceptions noted below or -within the files themselves, the files that constitute PyCrypto are in -the public domain. Most are distributed with the following notice: - - The contents of this file are dedicated to the public domain. To - the extent that dedication to the public domain is not available, - everyone is granted a worldwide, perpetual, royalty-free, - non-exclusive license to exercise all rights associated with the - contents of this file for any purpose whatsoever. - No rights are reserved. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS - BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN - ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - -Exception: - - - Portions of HMAC.py and setup.py are derived from Python 2.2, and - are therefore Copyright (c) 2001, 2002, 2003 Python Software - Foundation (All Rights Reserved). They are licensed by the PSF - under the terms of the Python 2.2 license. (See the file - LEGAL/copy/LICENSE.python-2.2 for details.) - -EXPORT RESTRICTIONS: - -Note that the export or re-export of cryptographic software and/or -source code may be subject to regulation in your jurisdiction. - diff --git a/dev-python/pycrypto/pycrypto-2.6.1.recipe b/dev-python/pycrypto/pycrypto-2.6.1.recipe deleted file mode 100644 index ffb252d5b..000000000 --- a/dev-python/pycrypto/pycrypto-2.6.1.recipe +++ /dev/null @@ -1,81 +0,0 @@ -SUMMARY="The Python Cryptography Toolkit" -DESCRIPTION=" -This is a collection of both secure hash functions (such as SHA256 and -RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, -etc.). -" -HOMEPAGE="http://pypi.python.org/pypi/pycrypto/" -LICENSE="pycrypto" -COPYRIGHT="2010 Dwayne C. Litzenberger" -REVISION="8" -SOURCE_URI="https://pypi.python.org/packages/source/p/pycrypto/pycrypto-$portVersion.tar.gz" -CHECKSUM_SHA256="f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c" - -ARCHITECTURES="all !x86_gcc2" -SECONDARY_ARCHITECTURES="x86" - -PROVIDES=" - $portName = $portVersion - " -REQUIRES=" - haiku$secondaryArchSuffix - " - -BUILD_REQUIRES=" - haiku${secondaryArchSuffix}_devel - devel:libgmp$secondaryArchSuffix - " -BUILD_PREREQUIRES=" - cmd:awk - cmd:cc$secondaryArchSuffix - " - -PYTHON_VERSIONS=(3.10) - -for pythonVersion in ${PYTHON_VERSIONS[@]}; do - pythonPackage=python${pythonVersion//.} - - eval "PROVIDES_$pythonPackage=\" - ${portName}_$pythonPackage = $portVersion - \"" - if [ "$targetArchitecture" = x86_gcc2 ]; then - eval "PROVIDES_$pythonPackage+=\" - pycrypto_$pythonPackage = $portVersion - \"" - fi - - eval "REQUIRES_$pythonPackage=\" - haiku$secondaryArchSuffix - lib:libgmp$secondaryArchSuffix - cmd:python$pythonVersion - \"" - - BUILD_REQUIRES+=" - setuptools_$pythonPackage - " - BUILD_PREREQUIRES+=" - cmd:python$pythonVersion - " -done - -INSTALL() -{ - for pythonVersion in ${PYTHON_VERSIONS[@]}; do - pythonPackage=python${pythonVersion//.} - - python=python$pythonVersion - installLocation=$prefix/lib/$python/vendor-packages/ - export PYTHONPATH=$installLocation:$PYTHONPATH - - mkdir -p $installLocation - rm -rf build - - runConfigure ./configure - $python setup.py build - $python setup.py install \ - --root=/ --prefix=$prefix - - packageEntries $pythonPackage \ - $prefix/lib/python* - done -}