Gentoo Archives: gentoo-commits

From: Marc Schiffbauer <mschiff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/opencpn-plugin-dr/, sci-geosciences/opencpn-plugin-dr/files/
Date: Tue, 30 Nov 2021 09:04:30
Message-Id: 1638263052.9dfe0d262344cf04c192e311e6a7d650b4d15f2e.mschiff@gentoo
1 commit: 9dfe0d262344cf04c192e311e6a7d650b4d15f2e
2 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 29 10:16:10 2021 +0000
4 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 30 09:04:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dfe0d26
7
8 sci-geosciences/opencpn-plugin-dr: added 4.0.0
9
10 Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
11
12 sci-geosciences/opencpn-plugin-dr/Manifest | 1 +
13 .../opencpn-plugin-dr/files/cmake.patch | 41 ++++++++++++++++++++++
14 ...-9999.ebuild => opencpn-plugin-dr-4.0.0.ebuild} | 10 ++++--
15 .../opencpn-plugin-dr-9999.ebuild | 10 ++++--
16 4 files changed, 56 insertions(+), 6 deletions(-)
17
18 diff --git a/sci-geosciences/opencpn-plugin-dr/Manifest b/sci-geosciences/opencpn-plugin-dr/Manifest
19 index e6b0099358e1..fd552525ad35 100644
20 --- a/sci-geosciences/opencpn-plugin-dr/Manifest
21 +++ b/sci-geosciences/opencpn-plugin-dr/Manifest
22 @@ -1 +1,2 @@
23 DIST opencpn-plugin-dr-1.1.tar.gz 133693 BLAKE2B 3d3356d43ca263c117511be4b4b873038f1a0493ab9b9ec4d0811da4360a38a2ec4ee2a31b54ce18741fc9ae0e3daf1a0a24b1c62493087c747b9e8720ee5a07 SHA512 2a953c7a8a491975c2b14e877364cfa736d2c410ea77bb4e0b18cf3bb3b04b19c2fcbc9debd513182f95002b483e689c4e21c30d87474e319bae7d2d840254f1
24 +DIST opencpn-plugin-dr-4.0.0.tar.gz 2010328 BLAKE2B 7b3d9e93edb52e6c039e759a5a4f8f85145c89c68b6c9d33ecf8fa376e4150bfe34a516bb9f278ef820fb880c2c45b13a446151c46bd9220e303c1b352010601 SHA512 0cbb87b66569451510f813a7766ca7e7e5c120861046c93b0adb0e71b90528ae83b12201635ec0e3a9286c470e0a93015c4a5a99cbc13979c894fa4be36ce71f
25
26 diff --git a/sci-geosciences/opencpn-plugin-dr/files/cmake.patch b/sci-geosciences/opencpn-plugin-dr/files/cmake.patch
27 new file mode 100644
28 index 000000000000..ab0bb813c321
29 --- /dev/null
30 +++ b/sci-geosciences/opencpn-plugin-dr/files/cmake.patch
31 @@ -0,0 +1,41 @@
32 +diff -ur DR_pi-4.0.0.orig/CMakeLists.txt DR_pi-4.0.0/CMakeLists.txt
33 +--- DR_pi-4.0.0.orig/CMakeLists.txt 2021-11-04 00:32:44.000000000 -1000
34 ++++ DR_pi-4.0.0/CMakeLists.txt 2021-11-29 00:11:03.998266321 -1000
35 +@@ -61,9 +61,10 @@
36 + )
37 + include(Targets)
38 + create_targets(${FLATPAK_MANIFEST})
39 +-if ("${BUILD_TYPE}" STREQUAL "")
40 +- return ()
41 +-endif ()
42 ++#if ("${BUILD_TYPE}" STREQUAL "")
43 ++# return ()
44 ++#endif ()
45 ++include(PluginLibs)
46 +
47 + if (NOT ${BUILD_TYPE} STREQUAL "flatpak")
48 + # Build package as required (flatpak already dealt with).
49 +diff -ur DR_pi-4.0.0.orig/cmake/PluginInstall.cmake DR_pi-4.0.0/cmake/PluginInstall.cmake
50 +--- DR_pi-4.0.0.orig/cmake/PluginInstall.cmake 2021-11-04 00:32:44.000000000 -1000
51 ++++ DR_pi-4.0.0/cmake/PluginInstall.cmake 2021-11-29 00:10:04.241099544 -1000
52 +@@ -11,7 +11,7 @@
53 + # the Free Software Foundation; either version 3 of the License, or
54 + # (at your option) any later version.
55 +
56 +-include(Metadata)
57 ++#include(Metadata)
58 +
59 + if (APPLE)
60 + install(
61 +diff -ur DR_pi-4.0.0.orig/cmake/Targets.cmake DR_pi-4.0.0/cmake/Targets.cmake
62 +--- DR_pi-4.0.0.orig/cmake/Targets.cmake 2021-11-04 00:32:44.000000000 -1000
63 ++++ DR_pi-4.0.0/cmake/Targets.cmake 2021-11-29 00:10:18.954386822 -1000
64 +@@ -19,7 +19,7 @@
65 + return()
66 + endif ()
67 +
68 +-include(Metadata)
69 ++#include(Metadata)
70 +
71 + if (UNIX AND NOT APPLE AND NOT QT_ANDROID)
72 + set(_LINUX ON)
73
74 diff --git a/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild b/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-4.0.0.ebuild
75 similarity index 80%
76 copy from sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild
77 copy to sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-4.0.0.ebuild
78 index 96bb44ad6eeb..f8093a00ebdc 100644
79 --- a/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild
80 +++ b/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-4.0.0.ebuild
81 @@ -3,7 +3,7 @@
82
83 EAPI=7
84
85 -WX_GTK_VER="3.0"
86 +WX_GTK_VER="3.0-gtk3"
87 inherit cmake wxwidgets
88
89 MY_PN="DR_pi"
90 @@ -11,7 +11,7 @@ if [[ ${PV} == *9999 ]] ; then
91 inherit git-r3
92 EGIT_REPO_URI="https://github.com/Rasbats/${MY_PN}.git"
93 else
94 - SRC_URI="https://github.com/Rasbats/${MY_PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz"
95 + SRC_URI="https://github.com/Rasbats/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
96
97 KEYWORDS="~amd64 ~x86"
98 S="${WORKDIR}/${MY_PN}-${PV}"
99 @@ -25,10 +25,14 @@ SLOT="0"
100
101 RDEPEND="
102 x11-libs/wxGTK:${WX_GTK_VER}
103 - >=sci-geosciences/opencpn-4.2.0"
104 + sci-geosciences/opencpn:="
105 DEPEND="${RDEPEND}"
106 BDEPEND="sys-devel/gettext"
107
108 +PATCHES=(
109 + "${FILESDIR}/cmake.patch"
110 +)
111 +
112 src_configure() {
113 setup-wxwidgets unicode
114 cmake_src_configure
115
116 diff --git a/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild b/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild
117 index 96bb44ad6eeb..f8093a00ebdc 100644
118 --- a/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild
119 +++ b/sci-geosciences/opencpn-plugin-dr/opencpn-plugin-dr-9999.ebuild
120 @@ -3,7 +3,7 @@
121
122 EAPI=7
123
124 -WX_GTK_VER="3.0"
125 +WX_GTK_VER="3.0-gtk3"
126 inherit cmake wxwidgets
127
128 MY_PN="DR_pi"
129 @@ -11,7 +11,7 @@ if [[ ${PV} == *9999 ]] ; then
130 inherit git-r3
131 EGIT_REPO_URI="https://github.com/Rasbats/${MY_PN}.git"
132 else
133 - SRC_URI="https://github.com/Rasbats/${MY_PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz"
134 + SRC_URI="https://github.com/Rasbats/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
135
136 KEYWORDS="~amd64 ~x86"
137 S="${WORKDIR}/${MY_PN}-${PV}"
138 @@ -25,10 +25,14 @@ SLOT="0"
139
140 RDEPEND="
141 x11-libs/wxGTK:${WX_GTK_VER}
142 - >=sci-geosciences/opencpn-4.2.0"
143 + sci-geosciences/opencpn:="
144 DEPEND="${RDEPEND}"
145 BDEPEND="sys-devel/gettext"
146
147 +PATCHES=(
148 + "${FILESDIR}/cmake.patch"
149 +)
150 +
151 src_configure() {
152 setup-wxwidgets unicode
153 cmake_src_configure