1 |
Hi! |
2 |
|
3 |
On Sun, 16 Jun 2019 09:58:10 +0300 Nikos Chantziaras wrote: |
4 |
> I need to install a file that the package generates in its build |
5 |
> directory. It's a cmake project. I tried: |
6 |
> |
7 |
> doins "${BUILD_DIR}/some_file" |
8 |
> |
9 |
> But it doesn't find the file: |
10 |
> |
11 |
> FileNotFoundError: [Errno 2] No such file or directory: b'/some_file' |
12 |
> |
13 |
> The ebuild inherits cmake-multilib. There's two build directories of |
14 |
> course, since this is a multilib ebuild: |
15 |
> |
16 |
> package-version-abi_x86_32.x86 |
17 |
> package-version-abi_x86_64.amd64 |
18 |
> |
19 |
> |
20 |
> I'm interested in the native build directory (the amd64 one in this |
21 |
> case.) Is there a variable somewhere that I'm just not finding, or do I |
22 |
> have to construct the build directory path myself? |
23 |
|
24 |
Try something like (not tested): |
25 |
|
26 |
install_files() { |
27 |
multilib_is_native_abi && doins "${BUILD_DIR}/some_file" |
28 |
} |
29 |
|
30 |
multilib_foreach_abi install_files |
31 |
|
32 |
|
33 |
Best regards, |
34 |
Andrew Savchenko |