yegor256 / cam

Classes and Metriсs (CaM): a dataset of Java classes from public open-source GitHub repositories
http://cam.yegor256.com
MIT License
23 stars 38 forks source link

Add homebrew requirements #328

Closed timur-harin closed 5 months ago

timur-harin commented 5 months ago

@yegor256

In this pull request, I have added a new file named brew-requirements.txt which contains a list of packages that are required for this repository to function properly on macOS. This file is specifically designed for macOS users who want to install all the necessary packages using Homebrew.

yegor256 commented 5 months ago

@timur-harin maybe it's better modify our install.sh script to make it understand the presence of brew and use to install dependencies?

timur-harin commented 5 months ago

@yegor256 Do you mean?

if command -v brew &> /dev/null
then
    echo "Homebrew is installed."
else
    echo "Homebrew is not installed."
fi
yegor256 commented 5 months ago

@timur-harin yes, something like this. Currently, in our script, we check for Linux. If it's linux, we try apt-get install. We can also check for macOS and run brew install if it's Mac and homebrew is present.

timur-harin commented 5 months ago

Continue in PR #337