camlunity/barbra — Issue #8: Add support for per-package patches
Author: superbobry
Created: 2012-01-06 21:14:35+00:00
State: open

Add a new config keyword `patch`:

```ocaml
patch foobar _patches/add-makefile-target.patch
patch foobar _patches/remove-fileutils.patch
# patch
```

* Patches are applied **before** a package is built; in the order, specified in `brb.conf`.
* Patch path should be relative to the base project dir, i. e. `_patches` should be on the same level as `_dep`.

---

Alternatively, patch order can be made explicit:

```ocaml
patch1 foobar patches/add-makefile-target.patch
patch2 foobar patches/remove-fileutils.patch
# patchN
```