mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
Numerous fixes and improvements since v13 Changes: https://github.com/soedinglab/MMseqs2/releases PR: 283251 Reported by: alster@vinterdalen.se
21 lines
830 B
Bash
21 lines
830 B
Bash
--- data/workflow/createtaxdb.sh.orig 2024-12-11 10:27:07 UTC
|
|
+++ data/workflow/createtaxdb.sh
|
|
@@ -27,6 +27,8 @@ if hasCommand wget; then STRATEGY="$STRATEGY WGET";
|
|
if hasCommand aria2c; then STRATEGY="$STRATEGY ARIA"; fi
|
|
if hasCommand curl; then STRATEGY="$STRATEGY CURL"; fi
|
|
if hasCommand wget; then STRATEGY="$STRATEGY WGET"; fi
|
|
+# Part of FreeBSD base, need not be installed separately
|
|
+if hasCommand fetch; then STRATEGY="$STRATEGY FETCH"; fi
|
|
if [ "$STRATEGY" = "" ]; then
|
|
fail "No download tool found in PATH. Please install aria2c, curl or wget."
|
|
fi
|
|
@@ -56,6 +58,9 @@ downloadFile() {
|
|
mv -f -- "${OUTPUT}.wget" "${OUTPUT}"
|
|
return 0
|
|
fi
|
|
+ ;;
|
|
+ FETCH)
|
|
+ fetch -o "$OUTPUT" "$URL" && return 0
|
|
;;
|
|
esac
|
|
done
|