diff options
author | Paul Zander <negril.nx+gentoo@gmail.com> | 2023-10-29 13:46:18 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-10-29 20:52:20 +0000 |
commit | 260ed766f76f29d71baec07f0af7eea431f436f5 (patch) | |
tree | 1e1ebcfb6290bed5afb4b935acec6680ac706892 /media-libs/opencolorio | |
parent | dev-util/breakpad: add 2023.01.27 (diff) | |
download | gentoo-260ed766f76f29d71baec07f0af7eea431f436f5.tar.gz gentoo-260ed766f76f29d71baec07f0af7eea431f436f5.tar.bz2 gentoo-260ed766f76f29d71baec07f0af7eea431f436f5.zip |
media-libs/opencolorio: fix USE="-doc"
`/usr/share/doc/OpenColorIO/html` only exists when `USE=doc` is set. So
make the move conditional.
Closes: https://bugs.gentoo.org/916474
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33577
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/opencolorio')
-rw-r--r-- | media-libs/opencolorio/opencolorio-2.2.1.ebuild | 8 | ||||
-rw-r--r-- | media-libs/opencolorio/opencolorio-2.3.0.ebuild | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/media-libs/opencolorio/opencolorio-2.2.1.ebuild b/media-libs/opencolorio/opencolorio-2.2.1.ebuild index 638a4d840676..540fa6334bae 100644 --- a/media-libs/opencolorio/opencolorio-2.2.1.ebuild +++ b/media-libs/opencolorio/opencolorio-2.2.1.ebuild @@ -129,9 +129,11 @@ src_configure() { src_install() { cmake_src_install - # there are already files in ${ED}/usr/share/doc/${PF} - mv "${ED}/usr/share/doc/OpenColorIO/"* "${ED}/usr/share/doc/${PF}" || die - rmdir "${ED}/usr/share/doc/OpenColorIO" || die + if use doc; then + # there are already files in ${ED}/usr/share/doc/${PF} + mv "${ED}/usr/share/doc/OpenColorIO/"* "${ED}/usr/share/doc/${PF}" || die + rmdir "${ED}/usr/share/doc/OpenColorIO" || die + fi } src_test() { diff --git a/media-libs/opencolorio/opencolorio-2.3.0.ebuild b/media-libs/opencolorio/opencolorio-2.3.0.ebuild index 0ea5f92ccd4a..b73c81444be6 100644 --- a/media-libs/opencolorio/opencolorio-2.3.0.ebuild +++ b/media-libs/opencolorio/opencolorio-2.3.0.ebuild @@ -158,9 +158,11 @@ src_configure() { src_install() { cmake_src_install - # there are already files in ${ED}/usr/share/doc/${PF} - mv "${ED}/usr/share/doc/OpenColorIO/"* "${ED}/usr/share/doc/${PF}" || die - rmdir "${ED}/usr/share/doc/OpenColorIO" || die + if use doc; then + # there are already files in ${ED}/usr/share/doc/${PF} + mv "${ED}/usr/share/doc/OpenColorIO/"* "${ED}/usr/share/doc/${PF}" || die + rmdir "${ED}/usr/share/doc/OpenColorIO" || die + fi } src_test() { |