1 |
I need to build a project (which uses cmake) twice and install it twice. |
2 |
Each time with a different configuration. The files it generates in each |
3 |
configuration do not conflict with each other (except for share/doc/). |
4 |
|
5 |
Which configs are built depends on USE flags. Either qt4, qt5 or both. |
6 |
|
7 |
How would I go on about this? The project's build system *can not* build |
8 |
both sets in the same build. When building normally, outside of portage, |
9 |
this is built with: |
10 |
|
11 |
mkdir build && cd build |
12 |
cmake -DQT_VERSION=4 ../ |
13 |
make && make install |
14 |
rm -r * |
15 |
cmake -DQT_VERSION=5 ../ |
16 |
make && make install |
17 |
|
18 |
I'm not sure I can do something like that in an ebuild. |