From 9c7627ab998c55475b798b7c3adc638fdc5210e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 23 May 2020 18:53:32 +0200 Subject: [PATCH] ncdu: update to 1.14.2 and disable gcc2 build It requires C99. --- .../{ncdu-1.14.1.recipe => ncdu-1.14.2.recipe} | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) rename sys-fs/ncdu/{ncdu-1.14.1.recipe => ncdu-1.14.2.recipe} (66%) diff --git a/sys-fs/ncdu/ncdu-1.14.1.recipe b/sys-fs/ncdu/ncdu-1.14.2.recipe similarity index 66% rename from sys-fs/ncdu/ncdu-1.14.1.recipe rename to sys-fs/ncdu/ncdu-1.14.2.recipe index 133616d75..13082c7a0 100644 --- a/sys-fs/ncdu/ncdu-1.14.1.recipe +++ b/sys-fs/ncdu/ncdu-1.14.2.recipe @@ -7,14 +7,20 @@ COPYRIGHT="2007-2019 Yoran Heling" LICENSE="MIT" REVISION="1" SOURCE_URI="https://dev.yorhel.nl/download/ncdu-$portVersion.tar.gz" -CHECKSUM_SHA256="be31e0e8c13a0189f2a186936f7e298c6390ebdc573bb4a1330bc1fcbf56e13e" +CHECKSUM_SHA256="947a7f5c1d0cd4e338e72b4f5bc5e2873651442cec3cb012e04ad2c37152c6b1" -ARCHITECTURES="x86_gcc2 x86 x86_64" +ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86" +# On x86_gcc2 we don't want to install the commands in bin//, but in bin/. +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandBinDir=$prefix/bin +fi + PROVIDES=" ncdu$secondaryArchSuffix = $portVersion - cmd:ncdu$secondaryArchSuffix = $portVersion + cmd:ncdu = $portVersion " REQUIRES=" haiku$secondaryArchSuffix @@ -34,7 +40,8 @@ BUILD_PREREQUIRES=" BUILD() { - runConfigure ./configure + runConfigure --omit-dirs binDir ./configure \ + --bindir=$commandBinDir make $jobArgs }