mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
dulwich: drop outdated, unused recipe. (#11990)
Can't find any in-tree usage for this (despite being introduced in 2013). As this is a "Pure Python git implementation (despite not being "any" because it has optional compiled bindings to speed up things), users can just `pip install` it if they need it.
This commit is contained in:
@@ -1,101 +0,0 @@
|
||||
SUMMARY="Pure python git implementation"
|
||||
DESCRIPTION="Dulwich is a simple Python implementation of the Git file \
|
||||
formats and protocols. All functionality is available in pure Python.\
|
||||
Optional C extensions can be built for improved performance."
|
||||
HOMEPAGE="https://www.dulwich.io/"
|
||||
COPYRIGHT="2008-2022 Jelmer Vernooij"
|
||||
LICENSE="
|
||||
Apache v2
|
||||
GNU GPL v2
|
||||
"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/${portName:0:1}/dulwich/dulwich-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="dc5498b072bdc12c1effef4b6202cd2a4542bb1c6dbb4ddcfc8c6d53e08b488c"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_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$secondaryArchSuffix\n\
|
||||
cmd:python$pythonVersion\n\
|
||||
urllib3_$pythonPackage\n\
|
||||
\""
|
||||
if [ "$targetArchitecture" = "x86_gcc2" ]; then
|
||||
eval "PROVIDES_${pythonPackage}+=\"\n\
|
||||
dulwich_$pythonPackage = $portVersion\
|
||||
\""
|
||||
fi
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion
|
||||
cmd:gcc$secondaryArchSuffix"
|
||||
done
|
||||
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[i]}
|
||||
pyVer=${pythonVersion//.} # remove dot from version
|
||||
eval "PROVIDES_python${pyVer}+=\"\n\
|
||||
cmd:dul_receive_pack$pythonVersion = $portVersion\n\
|
||||
cmd:dul_upload_pack$pythonVersion = $portVersion\n\
|
||||
cmd:dulwich$pythonVersion = $portVersion\n\
|
||||
\""
|
||||
done
|
||||
|
||||
# TODO add the gpg python module when it's available
|
||||
#TEST_REQUIRES=""
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
#python=$portPackageLinksDir/cmd~python$pythonVersion/bin/python$pythonVersion
|
||||
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
|
||||
|
||||
for f in $prefix/bin/*; do
|
||||
mv $f ${f}$pythonVersion
|
||||
done
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python* \
|
||||
$prefix/bin
|
||||
done
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
$python -m unittest dulwich.tests.test_suite
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user