dev-libs/unordered_dense: use patch to fix cmake install path

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2022-11-03 11:55:43 +08:00
parent a97a83f278
commit 9174842be9
3 changed files with 34 additions and 16 deletions

View File

@@ -28,6 +28,10 @@ DEPEND="
${RDEPEND}
"
PATCHES=(
"${FILESDIR}/${PN}-2.0.0-fix-cmake-install-path.patch"
)
src_configure() {
local mycmakeargs=(
-D CMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
@@ -35,11 +39,3 @@ src_configure() {
)
cmake_src_configure
}
src_install() {
cmake_src_install
# fix cmake module file install path
mkdir -p "${D}"/usr/"$(get_libdir)"/cmake/"${PN}" || die
mv "${D}"/usr/share/${PN}/cmake/* "${D}"/usr/"$(get_libdir)"/cmake/"${PN}"/ || die
rm -r "${D}"/usr/share/${PN} || die
}