Skip to content

Commit

Permalink
update distro/freebsd/install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Sep 27, 2024
1 parent de21af2 commit beef817
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions distro/freebsd/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

set -o errexit
set -o nounset
# In POSIX sh, set option pipefail is undefined
set -x

if [ "$(id -u)" != "0" ] ; then
Expand All @@ -22,6 +25,12 @@ PYV=$(python3 -c 'import sys;v=sys.version_info;print(f"py{v.major}{v.minor}")')
# you can run "pkg install -f ..." to re-install a package
# if it's installed with pip3, pkg will still install it without "-f"

myPath=$(realpath "$0")
myDir1=$(dirname "$myPath")
myDir2=$(dirname "$myDir1")
sourceDir=$(dirname "$myDir2")


pkg install \
gettext \
gtksourceview4 \
Expand All @@ -35,8 +44,14 @@ pkg install \
"$PYV-pygit2" \
"$PYV-pip"

pkg install "$PYV-dateutil" || python3 -m pip install dateutil
pkg install "$PYV-python-igraph" || python3 -m pip install igraph
pkg install "$PYV-dateutil" || \
python3 -m pip install dateutil || \
sh "$sourceDir/distro/base/dateutil-install.sh"

pkg install "$PYV-python-igraph" || \
python3 -m pip install igraph || \
echo "Failed to install igraph"

#pkg: No packages available to install matching 'packaging' have been found in the repositories
#pkg: No packages available to install matching 'py311-dateutil' have been found in the repositories
#pkg: No packages available to install matching 'py311-python-igraph' have been found in the repositories
Expand All @@ -57,11 +72,6 @@ pkg install "$PYV-python-igraph" || python3 -m pip install igraph
# pygit2 https://www.freshports.org/devel/py-pygit2


myPath=$(realpath "$0")
myDir1=$(dirname "$myPath")
myDir2=$(dirname "$myDir1")
sourceDir=$(dirname "$myDir2")

"$sourceDir/distro/base/install.py" --system

# "install" script does not work in FreeBSD 13.0
Expand Down

0 comments on commit beef817

Please sign in to comment.