sys-fs/ddrescue: drop commandSuffix, simplify PROVIDES.

This commit is contained in:
fbrosson
2018-09-28 02:59:40 +00:00
parent 6d0d6ab49a
commit a16f9e5815

View File

@@ -12,19 +12,20 @@ COPYRIGHT="
LICENSE="GNU GPL v2"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
if [ "$targetArchitecture" = x86_gcc2 ]; then
SECONDARY_ARCHITECTURES="x86"
fi
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
ddrescue$secondaryArchSuffix = $portVersion
cmd:ddrescue$commandSuffix = $portVersion
cmd:ddrescuelog$commandSuffix = $portVersion
cmd:ddrescue = $portVersion
cmd:ddrescuelog = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix