mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
sci-libs/libsc: QA: fix install locations, EAPI bump
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
This commit is contained in:
@@ -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)
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user