Sorry I’m not a MacPorts user (I use homebrew). From what I see, it seems like the fortran-csv-module you’re installing from MacPorts has fpm as a dependency, and because it tries to install it from MacPorts, you fall back to the original problem. But fortran-csv-module supports fpm natively. So you can:
- Build fortran-csv-module from source using your local fpm installation:
git clone https://github.com/jacobwilliams/csv-fortran.git
cd csv-fortran
fpm install --prefix=/path/to/install/folder
- If your main project is a
fpmone, just addfortran-csv-moduleas a dependency in your project’sfpm.toml:
[dependencies]
csv-fortran = { git="https://github.com/jacobwilliams/csv-fortran.git" }
You can find a lot of documentation about getting started with fpm at https://fpm.fortran-lang.org