Could you do:
```bash
src_prepare() {
    use cuda && cuda_src_prepare
}
```
instead?