summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisha Tammy <gentoo@aisha.cc>2020-11-16 22:43:50 +0000
committerSam James <sam@gentoo.org>2020-12-03 05:09:58 +0000
commit4b8a98d5fb28db30e04dd0d9e8c028ddc3ecd18b (patch)
tree62c0744128019ab59adaa4ee456e8407c067b851 /media-libs
parentapp-text/qpdf: Stabilize 10.0.4 amd64, #756022 (diff)
downloadgentoo-4b8a98d5fb28db30e04dd0d9e8c028ddc3ecd18b.tar.gz
gentoo-4b8a98d5fb28db30e04dd0d9e8c028ddc3ecd18b.tar.bz2
gentoo-4b8a98d5fb28db30e04dd0d9e8c028ddc3ecd18b.zip
media-libs/openimageio: fix font installation
Closes: https://bugs.gentoo.org/679858 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy <gentoo@aisha.cc> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/openimageio/openimageio-2.2.8.0-r1.ebuild (renamed from media-libs/openimageio/openimageio-2.2.8.0.ebuild)19
1 files changed, 18 insertions, 1 deletions
diff --git a/media-libs/openimageio/openimageio-2.2.8.0.ebuild b/media-libs/openimageio/openimageio-2.2.8.0-r1.ebuild
index 934cf38bd1c8..78fe460252e6 100644
--- a/media-libs/openimageio/openimageio-2.2.8.0.ebuild
+++ b/media-libs/openimageio/openimageio-2.2.8.0-r1.ebuild
@@ -3,8 +3,9 @@
EAPI=7
+FONT_PN=OpenImageIO
PYTHON_COMPAT=( python3_{6..9} )
-inherit cmake python-single-r1
+inherit cmake font python-single-r1
DESCRIPTION="A library for reading and writing images"
HOMEPAGE="https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO"
@@ -112,6 +113,7 @@ src_configure() {
local mycmakeargs=(
-DVERBOSE=ON
-DOIIO_BUILD_TESTS=OFF
+ -DINSTALL_FONTS=OFF
-DBUILD_DOCS=$(usex doc)
-DINSTALL_DOCS=$(usex doc)
-DSTOP_ON_WARNING=OFF
@@ -136,3 +138,18 @@ src_configure() {
cmake_src_configure
}
+
+src_install() {
+ cmake_src_install
+ # can't use font_src_install
+ # it does directory hierarchy recreation
+ FONT_S=(
+ "${S}/src/fonts/Droid_Sans"
+ "${S}/src/fonts/Droid_Sans_Mono"
+ "${S}/src/fonts/Droid_Serif"
+ )
+ insinto ${FONTDIR}
+ for dir in "${FONT_S[@]}"; do
+ doins "${dir}"/*.ttf
+ done
+}