commit:     966bea3444ebf960f008e7d1b0373df99ccdd28c
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  7 20:31:03 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Dec  7 22:40:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=966bea34

x11-libs/qwtplot3d: also install headers

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../qwtplot3d-0.2_p20210828-install-headers.patch      | 18 ++++++++++++++++++
 x11-libs/qwtplot3d/qwtplot3d-0.2_p20210828.ebuild      |  1 +
 2 files changed, 19 insertions(+)

diff --git 
a/x11-libs/qwtplot3d/files/qwtplot3d-0.2_p20210828-install-headers.patch 
b/x11-libs/qwtplot3d/files/qwtplot3d-0.2_p20210828-install-headers.patch
new file mode 100644
index 000000000000..611f9111b38b
--- /dev/null
+++ b/x11-libs/qwtplot3d/files/qwtplot3d-0.2_p20210828-install-headers.patch
@@ -0,0 +1,18 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 12657be..5306d02 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,5 @@
+ cmake_minimum_required(VERSION 3.16)
++include(GNUInstallDirs)
+ 
+ project( QwtPlot3D
+   VERSION 0.3.0
+@@ -106,6 +107,7 @@ set( HEADERS
+ configure_file( "include/qwt3d_version.h.in" "qwt3d_version.h" @ONLY )
+ 
+ add_library( qwtplot3d ${SRCS} ${HEADERS} )
++set_target_properties( qwtplot3d PROPERTIES PUBLIC_HEADER "${HEADERS}" )
+ 
+ target_link_libraries( qwtplot3d
+   Qt${QT_VERSION_MAJOR}::Core

diff --git a/x11-libs/qwtplot3d/qwtplot3d-0.2_p20210828.ebuild 
b/x11-libs/qwtplot3d/qwtplot3d-0.2_p20210828.ebuild
index 0824caa45404..09a4bfa5cc32 100644
--- a/x11-libs/qwtplot3d/qwtplot3d-0.2_p20210828.ebuild
+++ b/x11-libs/qwtplot3d/qwtplot3d-0.2_p20210828.ebuild
@@ -34,6 +34,7 @@ DEPEND="${RDEPEND}"
 PATCHES=(
        "${FILESDIR}/${PN}-doxygen.patch"
        "${FILESDIR}/${PN}-gcc44.patch"
+       "${FILESDIR}/${P}-install-headers.patch"
 )
 
 src_compile() {

Reply via email to