That is a bit tricky. As *.m files are the majority of the code, maybe the easiest would be to install everything and remove the rest
```
doins -r "${S}"
find "${ED}/$(octave-config --m-site-dir)" -type f -not -name "*.m" -delete
```