1 |
commit: bca7abd8fbd5870928969278a1b891577da2a81e |
2 |
Author: epsilonKNOT <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Wed Dec 2 23:01:44 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 3 05:09:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bca7abd8 |
7 |
|
8 |
media-libs/openimageio: fix font installation |
9 |
|
10 |
Package-Manager: Portage-3.0.11, Repoman-3.0.2 |
11 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/18290 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
...o-2.2.9.0.ebuild => openimageio-2.2.9.0-r1.ebuild} | 19 ++++++++++++++++++- |
16 |
1 file changed, 18 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/media-libs/openimageio/openimageio-2.2.9.0.ebuild b/media-libs/openimageio/openimageio-2.2.9.0-r1.ebuild |
19 |
similarity index 89% |
20 |
rename from media-libs/openimageio/openimageio-2.2.9.0.ebuild |
21 |
rename to media-libs/openimageio/openimageio-2.2.9.0-r1.ebuild |
22 |
index 2ddc9e37ad5..cdd096fdaca 100644 |
23 |
--- a/media-libs/openimageio/openimageio-2.2.9.0.ebuild |
24 |
+++ b/media-libs/openimageio/openimageio-2.2.9.0-r1.ebuild |
25 |
@@ -3,8 +3,9 @@ |
26 |
|
27 |
EAPI=7 |
28 |
|
29 |
+FONT_PN=OpenImageIO |
30 |
PYTHON_COMPAT=( python3_{6..9} ) |
31 |
-inherit cmake python-single-r1 |
32 |
+inherit cmake font python-single-r1 |
33 |
|
34 |
DESCRIPTION="A library for reading and writing images" |
35 |
HOMEPAGE="https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO" |
36 |
@@ -112,6 +113,7 @@ src_configure() { |
37 |
local mycmakeargs=( |
38 |
-DVERBOSE=ON |
39 |
-DOIIO_BUILD_TESTS=OFF |
40 |
+ -DINSTALL_FONTS=OFF |
41 |
-DBUILD_DOCS=$(usex doc) |
42 |
-DINSTALL_DOCS=$(usex doc) |
43 |
-DSTOP_ON_WARNING=OFF |
44 |
@@ -136,3 +138,18 @@ src_configure() { |
45 |
|
46 |
cmake_src_configure |
47 |
} |
48 |
+ |
49 |
+src_install() { |
50 |
+ cmake_src_install |
51 |
+ # can't use font_src_install |
52 |
+ # it does directory hierarchy recreation |
53 |
+ FONT_S=( |
54 |
+ "${S}/src/fonts/Droid_Sans" |
55 |
+ "${S}/src/fonts/Droid_Sans_Mono" |
56 |
+ "${S}/src/fonts/Droid_Serif" |
57 |
+ ) |
58 |
+ insinto ${FONTDIR} |
59 |
+ for dir in "${FONT_S[@]}"; do |
60 |
+ doins "${dir}"/*.ttf |
61 |
+ done |
62 |
+} |