README: add MacPorts install instructions

This commit is contained in:
Herby G 2021-06-28 12:04:10 +00:00
parent 10bf85ba0f
commit e66eaa66a6

View file

@ -55,6 +55,12 @@ cargo install --locked fif
To update, simply re-run the `install` command, or use a tool like [cargo-update To update, simply re-run the `install` command, or use a tool like [cargo-update
](https://github.com/nabijaczleweli/cargo-update), which can update crates installed via `cargo install`. ](https://github.com/nabijaczleweli/cargo-update), which can update crates installed via `cargo install`.
On macOS, `fif` can now be installed using [MacPorts](https://www.macports.org), via the following steps:
```bash
$ sudo port selfupdate
$ sudo port install fif
```
### Cargo Features ### Cargo Features
fif supports using [`infer`] or [`xdg-mime`] as its backend for looking up file types. By default, xdg-mime will be fif supports using [`infer`] or [`xdg-mime`] as its backend for looking up file types. By default, xdg-mime will be
used on [*nix systems](https://en.wikipedia.org/wiki/Unix-like) (Linux, macOS, *BSD, etc.), and infer on all other used on [*nix systems](https://en.wikipedia.org/wiki/Unix-like) (Linux, macOS, *BSD, etc.), and infer on all other
@ -177,4 +183,4 @@ a more concise overview).
[Cargo]: https://doc.rust-lang.org/cargo/ [Cargo]: https://doc.rust-lang.org/cargo/
[`xdg-mime`]: https://crates.io/crates/xdg-mime [`xdg-mime`]: https://crates.io/crates/xdg-mime
[`infer`]: https://crates.io/crates/infer [`infer`]: https://crates.io/crates/infer
[Shared MIME Info]: https://gitlab.freedesktop.org/xdg/shared-mime-info/ [Shared MIME Info]: https://gitlab.freedesktop.org/xdg/shared-mime-info/