Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/openimageio/
Date: Thu, 03 Dec 2020 05:20:08
Message-Id: 1606972198.4b8a98d5fb28db30e04dd0d9e8c028ddc3ecd18b.sam@gentoo
1 commit: 4b8a98d5fb28db30e04dd0d9e8c028ddc3ecd18b
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Mon Nov 16 22:43:50 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=4b8a98d5
7
8 media-libs/openimageio: fix font installation
9
10 Closes: https://bugs.gentoo.org/679858
11 Package-Manager: Portage-3.0.8, Repoman-3.0.1
12 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 ...o-2.2.8.0.ebuild => openimageio-2.2.8.0-r1.ebuild} | 19 ++++++++++++++++++-
16 1 file changed, 18 insertions(+), 1 deletion(-)
17
18 diff --git a/media-libs/openimageio/openimageio-2.2.8.0.ebuild b/media-libs/openimageio/openimageio-2.2.8.0-r1.ebuild
19 similarity index 89%
20 rename from media-libs/openimageio/openimageio-2.2.8.0.ebuild
21 rename to media-libs/openimageio/openimageio-2.2.8.0-r1.ebuild
22 index 934cf38bd1c..78fe460252e 100644
23 --- a/media-libs/openimageio/openimageio-2.2.8.0.ebuild
24 +++ b/media-libs/openimageio/openimageio-2.2.8.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 +}