Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/liborigin/files/
Date: Tue, 07 Dec 2021 22:40:14
Message-Id: 1638916803.615037c94596ca6ac97d5dc8be7c08ead842dc67.andrewammerlaan@gentoo
1 commit: 615037c94596ca6ac97d5dc8be7c08ead842dc67
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 7 21:20:01 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 7 22:40:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=615037c9
7
8 sci-libs/liborigin: fix header location in pc file
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 .../files/liborigin-3.0.1_p20210828-buildsystem.patch | 16 +++++++++++++---
14 1 file changed, 13 insertions(+), 3 deletions(-)
15
16 diff --git a/sci-libs/liborigin/files/liborigin-3.0.1_p20210828-buildsystem.patch b/sci-libs/liborigin/files/liborigin-3.0.1_p20210828-buildsystem.patch
17 index 43cf499bb7a8..8ad6fd432abe 100644
18 --- a/sci-libs/liborigin/files/liborigin-3.0.1_p20210828-buildsystem.patch
19 +++ b/sci-libs/liborigin/files/liborigin-3.0.1_p20210828-buildsystem.patch
20 @@ -1,5 +1,5 @@
21 diff --git a/CMakeLists.txt b/CMakeLists.txt
22 -index a8e5914..8eb13c2 100644
23 +index a8e5914..6401a30 100644
24 --- a/CMakeLists.txt
25 +++ b/CMakeLists.txt
26 @@ -41,7 +41,6 @@ set (devel-headers
27 @@ -10,7 +10,15 @@ index a8e5914..8eb13c2 100644
28 )
29
30 # allow for installation of individual targets
31 -@@ -74,11 +73,13 @@ if( "${CMAKE_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}" )
32 +@@ -65,6 +64,7 @@ add_library (origin_static STATIC $<TARGET_OBJECTS:origin>)
33 + set_target_properties(origin_static PROPERTIES OUTPUT_NAME "origin" )
34 +
35 + if( "${CMAKE_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}" )
36 ++ include(GNUInstallDirs)
37 +
38 + # Shared library
39 + add_library( origin_shared SHARED $<TARGET_OBJECTS:origin>)
40 +@@ -74,13 +74,14 @@ if( "${CMAKE_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}" )
41 SOVERSION ${PROJECT_VERSION_MAJOR}
42 )
43 # Generate a pkg-config file matching this config
44 @@ -23,8 +31,10 @@ index a8e5914..8eb13c2 100644
45 target_link_libraries (opj2dat origin_static)
46 + endif ()
47
48 - include(GNUInstallDirs)
49 +- include(GNUInstallDirs)
50 # install libraries
51 + install( TARGETS origin_shared origin_static
52 + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
53 @@ -92,7 +93,9 @@ if( "${CMAKE_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}" )
54 # install pkg-config file
55 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/liborigin.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)