Utilities to work with selected versions of port files. More information in this blog post.
This utility read all commits in the repository to discover the ports and all the versions. The creates a SQLite database with that information.
Example of usage:
mkdir -p $HOME/tmp
cd $HOME/tmp
git clone https://github.com/microsoft/vcpkg.git
python importer.py --repository $HOME/tmp/vcpkg --db $HOME/tmp/repo.db
Look for packages by name.
Look for a package using a version:
python query.py --db $HOME/tmp/repo.db --pkg boost/1.67.0
Look for packages with a similar name (using the LIKE operator)
python query.py --db $HOME/tmp/repo.db --pkg json --like
Generates all the port files for a package and a version, including all the dependencies.
Example of usage:
cd $HOME
rm -rf vcpkg
git clone https://github.com/microsoft/vcpkg.git
rm -rf vcpkg/ports
python generator.py --repository $HOME/tmp/vcpkg --db $HOME/tmp/repo.db --destination $HOME/vcpkg/ports --pkg opencv/3.4.3-3