diff options
author | Matthias Maier <tamiko@gentoo.org> | 2023-06-19 19:17:41 -0500 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2023-06-19 19:45:53 -0500 |
commit | c5fa4cd54e6ce9ecb1d40b444587763d0507abd5 (patch) | |
tree | f54148cfb50390e09d0b3929fbec4fe2ba5b2e56 /sci-libs | |
parent | sci-libs/cholmod: revert "sci-libs/cholmod: drop 3.0.13" (diff) | |
download | gentoo-c5fa4cd54e6ce9ecb1d40b444587763d0507abd5.tar.gz gentoo-c5fa4cd54e6ce9ecb1d40b444587763d0507abd5.tar.bz2 gentoo-c5fa4cd54e6ce9ecb1d40b444587763d0507abd5.zip |
sci-libs/libsc: QA: fix install locations, EAPI bump
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/libsc/files/libsc-2.8.5-fix_cmake_path.patch | 33 | ||||
-rw-r--r-- | sci-libs/libsc/libsc-2.8.5-r2.ebuild (renamed from sci-libs/libsc/libsc-2.8.5-r1.ebuild) | 7 |
2 files changed, 36 insertions, 4 deletions
diff --git a/sci-libs/libsc/files/libsc-2.8.5-fix_cmake_path.patch b/sci-libs/libsc/files/libsc-2.8.5-fix_cmake_path.patch new file mode 100644 index 000000000000..d36f9151901c --- /dev/null +++ b/sci-libs/libsc/files/libsc-2.8.5-fix_cmake_path.patch @@ -0,0 +1,33 @@ +diff --git a/cmake/install.cmake b/cmake/install.cmake +index f093fa9..c281f66 100644 +--- a/cmake/install.cmake ++++ b/cmake/install.cmake +@@ -14,13 +14,13 @@ COMPATIBILITY SameMajorVersion + + install(EXPORT ${PROJECT_NAME}-targets + NAMESPACE ${PROJECT_NAME}:: +-DESTINATION cmake ++DESTINATION ${library_reldir}/cmake/SC + ) + + install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}Config.cmake + ${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake +-DESTINATION cmake ++DESTINATION ${library_reldir}/cmake/SC + ) + + export(EXPORT ${PROJECT_NAME}-targets +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 800937f..9de0cfe 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -75,7 +75,7 @@ endif(BUILD_TESTING) + + install(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindSC.cmake +-DESTINATION cmake) ++DESTINATION ${library_reldir}/cmake/SC) + + include(cmake/pkgconf.cmake) + include(cmake/install.cmake) diff --git a/sci-libs/libsc/libsc-2.8.5-r1.ebuild b/sci-libs/libsc/libsc-2.8.5-r2.ebuild index 33d78e6073fe..786ecf6012b8 100644 --- a/sci-libs/libsc/libsc-2.8.5-r1.ebuild +++ b/sci-libs/libsc/libsc-2.8.5-r2.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit cmake toolchain-funcs @@ -35,6 +35,7 @@ PATCHES=( "${FILESDIR}"/${P}-fix_build_system.patch "${FILESDIR}"/${P}-do_not_compile_zlib-ng.patch "${FILESDIR}"/${P}-use_zlib-ng_symbols.patch + "${FILESDIR}"/${P}-fix_cmake_path.patch ) pkg_pretend() { @@ -58,12 +59,10 @@ src_configure() { src_install() { cmake_src_install - mv "${ED}"/usr/cmake "${ED}"/usr/$(get_libdir)/ || die "mv failed" - rm -r "${ED}"/usr/include/getopt.h \ "${ED}"/usr/include/getopt_int.h \ "${ED}"/usr/include/sc_builtin || die "rm failed" - mv "${ED}"/usr/share/docs/SC/* "${ED}"/usr/share/doc/${P}/ || die "mv failed" + mv "${ED}"/usr/share/docs/SC/* "${ED}"/usr/share/doc/${PF}/ || die "mv failed" rm -r "${ED}"/usr/share/docs || die "rm failed" } |