media-libs/lib3mf: don't use bundled headers

The includes are hardcoded. This is fixed in newer releases, so instead of
patching we just link the system includes to the place where they are expected.

Closes: https://bugs.gentoo.org/944790
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Zander
2024-11-25 16:37:49 +01:00
committed by Sam James
parent 896be0fae8
commit c93f43e52c

View File

@@ -39,6 +39,14 @@ PATCHES=(
"${FILESDIR}"/${P}-include-cstdint.patch
)
src_prepare() {
cmake_src_prepare
rm -r Include/Libraries/{libzip,zlib} || die
ln -s "${EPREFIX}/usr/include" Include/Libraries/zlib || die
ln -s "${EPREFIX}/usr/include" Include/Libraries/libzip || die
}
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_INCLUDEDIR="include/${PN}"