From 8fd18eef4df9c6560e60c31e0a9ea1a279af128a Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 24 Aug 2026 20:54:12 +0300 Subject: [PATCH] ports/harfbuzz: Don't compile cairo if its not compiled --- ports/harfbuzz/build.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ports/harfbuzz/build.sh b/ports/harfbuzz/build.sh index 6cfa2b9d..b281c2b3 100755 --- a/ports/harfbuzz/build.sh +++ b/ports/harfbuzz/build.sh @@ -34,10 +34,15 @@ post_install() { export HARFBUZZ_CIRCULAR=1 - for circular in freetype cairo; do - pushd "$BANAN_PORT_DIR/$circular" >/dev/null || exit 1 + pushd "$BANAN_PORT_DIR/freetype" >/dev/null || exit 1 + rm -f .compile_hash + ./build.sh || exit 1 + popd >/dev/null + + if grep -q cairo "$BANAN_PORT_DIR/.installed_ports"; then + pushd "$BANAN_PORT_DIR/cairo" >/dev/null || exit 1 rm -f .compile_hash ./build.sh || exit 1 popd >/dev/null - done + fi }