Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.01 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.01 KB

deps, lightweight packages manager

Installation

Get these packages:

apt-get install php5-cli git cmake

And clone this repository:

git clone https://github.com/Rhoban/deps.git

Then, add this line to your .bashrc:

source "$HOME/deps/bashrc"

Usage

You can install packages with command line like:

deps install rhobandeps/jsoncpp

This will clone, compile and add the dependency to your environment variables (namely PATH, CPATH, LIBRARY_PATH, LD_LIBRARY_PATH).

Installed packages can be listed with:

deps list

You can then remove them:

deps remove rhobandeps/jsoncpp

deps.json file

You can specify dependencies for your project using deps.json file, here is an example:

{
    "name": "me/myproject",
    "build": ["make"],
    "deps": [
        "rhobandeps/jsoncpp"
    ],
	"includes": "include",
	"binaries": "buildDir"
}

If you have such a deps.json file, you can simply run deps install from your project tree, this will install all the dependencies.