Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| bernardspil:portingnotes [2015/12/15 20:20] – Complete example, more structure BernardSpil | bernardspil:portingnotes [2017/05/14 07:55] (current) – Add git2diff BernardSpil | ||
|---|---|---|---|
| Line 40: | Line 40: | ||
| - Depenencies come in two forms that we need to find (USE_MYSQL and OPT_USE are always caps but the latter allows for mixed case values) - USE_MYSQL= boolean: | - Depenencies come in two forms that we need to find (USE_MYSQL and OPT_USE are always caps but the latter allows for mixed case values) - USE_MYSQL= boolean: | ||
| - We want to know what file this appears in, so add it again using sed | - We want to know what file this appears in, so add it again using sed | ||
| + | |||
| + | === More info === | ||
| + | https:// | ||
| + | |||
| + | ====== Mk/ | ||
| + | |||
| + | ==== USE_MYSQL ==== | ||
| + | 193 ports contain USE_MYSQL\\ | ||
| + | '' | ||
| + | Found in ports: USE_MYSQL=([45]1+|[Yy][Ee][Ss]|client|compat|embedded|server) | ||
| + | |||
| + | | server | 12 | | ||
| + | | embedded | 1 | | ||
| + | | client | 188 | | ||
| + | | **total** | 201 | | ||
| + | |||
| + | === Transformations === | ||
| + | '' | ||
| + | '' | ||
| + | '' | ||
| + | |||
| + | ==== OPT_USE= mysql ==== | ||
| + | |||
| + | Often shown as '' | ||
| + | |||
| + | There may already be a OPT_USES= line in the Makefile, take that into account | ||
| + | |||
| + | '' | ||
| + | |||
| + | There may be multiple OPT_USE= variables\\ | ||
| + | '' | ||
| + | |||
| + | There' | ||
| + | '' | ||
| + | |||
| + | === Transformations === | ||
| + | |||
| + | \([A-Z_]*\)_USE=\([ | ||
| + | |||
| + | ==== Convert git diff ==== | ||
| + | |||
| + | git diffs need to be transformed to use in ports. | ||
| + | |||
| + | < | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | </ | ||
| + | |||
| + | needs to be transformed into | ||
| + | |||
| + | < | ||
| + | --- src/ | ||
| + | +++ src/ | ||
| + | </ | ||
| + | |||
| + | This can easily be achieved with sed | ||
| + | |||
| + | < | ||
| + | sed -e ' | ||
| + | </ | ||