SUMMARY="Backup program with compression and authenticated encryption" DESCRIPTION="BorgBackup (short: Borg) is a deduplicating backup program for the \ commandline. Optionally, it supports compression and authenticated encryption. The main goal of Borg is to provide an efficient and secure way to backup data. The \ data deduplication technique used makes Borg suitable for daily backups since only \ changes are stored. The authenticated encryption technique makes it suitable for backups to not fully \ trusted targets." HOMEPAGE="https://www.borgbackup.org/" COPYRIGHT="2015-2024 The Borg Collective 2010-2014 Jonas Borgström" LICENSE="BSD (3-clause)" REVISION="4" SOURCE_URI="https://files.pythonhosted.org/packages/source/b/borgbackup/borgbackup-$portVersion.tar.gz" CHECKSUM_SHA256="2716bc124a24908efcac9436df31b716d1f0bbd828ad39b18f73bfdd772a651a" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" pythonVersion="3.10" pythonPackage="python${pythonVersion//.}" PROVIDES=" $portName = $portVersion cmd:borg cmd:borgfs " REQUIRES=" haiku$secondaryArchSuffix msgpack_$pythonPackage packaging_$pythonPackage lib:libcrypto$secondaryArchSuffix lib:liblz4$secondaryArchSuffix lib:libxxhash$secondaryArchSuffix lib:libzstd$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel python_pkgconfig_$pythonPackage setuptools_$pythonPackage setuptools_scm_$pythonPackage wheel_$pythonPackage devel:libcrypto$secondaryArchSuffix >= 3 devel:liblz4$secondaryArchSuffix devel:libxxhash$secondaryArchSuffix devel:libzstd$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:cython$pythonVersion cmd:gcc$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix cmd:python$pythonVersion " INSTALL() { # This is only needed if NOT using "haikuporter -G", as the presence of a ".git" folder # confuses the dumb build system (it assumes that the .git is the one from upstream). export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ export PYTHONPATH=$installLocation:$PYTHONPATH mkdir -p $installLocation python$pythonVersion setup.py build install \ --root=/ --prefix=$prefix }