1 |
commit: c1289d6987c8bbb0a57d18c8dfae4f850a7bd3fe |
2 |
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 2 12:10:05 2021 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 2 12:11:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1289d69 |
7 |
|
8 |
sci-geosciences/opencpn: add 5.2.0 |
9 |
|
10 |
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org> |
11 |
|
12 |
sci-geosciences/opencpn/Manifest | 1 + |
13 |
.../opencpn/files/opencpn-5.2.0-cmake.patch | 14 +++++ |
14 |
sci-geosciences/opencpn/opencpn-5.2.0.ebuild | 59 ++++++++++++++++++++++ |
15 |
3 files changed, 74 insertions(+) |
16 |
|
17 |
diff --git a/sci-geosciences/opencpn/Manifest b/sci-geosciences/opencpn/Manifest |
18 |
index 59f7720f7ed..f728493696f 100644 |
19 |
--- a/sci-geosciences/opencpn/Manifest |
20 |
+++ b/sci-geosciences/opencpn/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST opencpn-5.0.0.tar.gz 67164574 BLAKE2B a06520aaf0dc1457208c5c6968d44b0122b89eca632aa3b8471a0efd452d41c155ee05274284d84e5de9f700a9d549b61eae5d2ddfc8e70c4d5cfa7cf1c84f3f SHA512 1b0f0e1a7164bc342a79837b987d8e4f69f164739f0d9c9c6448fab496af0944fe77b9cd3bbb9f2ee874cbb42add2da67df44606c6b8e620d0be2caf6a71eb96 |
23 |
+DIST opencpn-5.2.0.tar.gz 78313969 BLAKE2B 46fc27c749f0a250502f7450c2b854b32320dc753ddc8011e05c93ad8a0752fdefa98b495ad901beea18e70b337de1d50a72eebac452c7d18a6237ee49313f42 SHA512 fcef47b21e5da9a8028972b30ac825be6486ae89398e9d91899621fe32c96f9fce93cfde67dbf07991d20406ce30333895539220a63df071125e2a4db79d5709 |
24 |
DIST opencpn-doc_4.8.2.0.orig.tar.xz 22302480 BLAKE2B 2bcd2ac01340cde0d0be80537321c8c3e829a8e664944c34f3f3112f931c45746059b5c173402982601ccf88926241741c7fb44f251e9fe48b83aa5f3e8d7727 SHA512 678317c77feb3b0bf695e337e7e95083df1d488e0a5ad3bad41bad11dc87271d6fc0ac194a6b63b603d5c1f1184e6c9f91de895a7db01017ef2a7068a62404eb |
25 |
|
26 |
diff --git a/sci-geosciences/opencpn/files/opencpn-5.2.0-cmake.patch b/sci-geosciences/opencpn/files/opencpn-5.2.0-cmake.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..4c2ea09ae15 |
29 |
--- /dev/null |
30 |
+++ b/sci-geosciences/opencpn/files/opencpn-5.2.0-cmake.patch |
31 |
@@ -0,0 +1,14 @@ |
32 |
+--- a/CMakeLists.txt 2021-11-02 01:45:56.488999411 -1000 |
33 |
++++ b/CMakeLists.txt 2021-11-02 01:51:53.343219957 -1000 |
34 |
+@@ -756,9 +756,9 @@ |
35 |
+ # looked for them. This is a nasty fix which might fail miserably. Assumption: |
36 |
+ # All builds using GTK uses unicode and wxWidgets 3.0 |
37 |
+ if (GTK3_FOUND) |
38 |
+- list(APPEND wxWidgets_LIBRARIES "-lwx_gtk3u_aui-3.0") |
39 |
++ list(APPEND wxWidgets_LIBRARIES "-lwx_gtk3u_aui-3.0-gtk3") |
40 |
+ if (OPENGL_FOUND) |
41 |
+- list(APPEND wxWidgets_LIBRARIES "-lwx_gtk3u_gl-3.0") |
42 |
++ list(APPEND wxWidgets_LIBRARIES "-lwx_gtk3u_gl-3.0-gtk3") |
43 |
+ endif () |
44 |
+ endif () |
45 |
+ |
46 |
|
47 |
diff --git a/sci-geosciences/opencpn/opencpn-5.2.0.ebuild b/sci-geosciences/opencpn/opencpn-5.2.0.ebuild |
48 |
new file mode 100644 |
49 |
index 00000000000..6688d1f0e0d |
50 |
--- /dev/null |
51 |
+++ b/sci-geosciences/opencpn/opencpn-5.2.0.ebuild |
52 |
@@ -0,0 +1,59 @@ |
53 |
+# Copyright 1999-2021 Gentoo Authors |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+ |
56 |
+EAPI=7 |
57 |
+ |
58 |
+WX_GTK_VER="3.0-gtk3" |
59 |
+inherit wxwidgets xdg cmake |
60 |
+ |
61 |
+DOC_VERSION="4.8.2.0" |
62 |
+ |
63 |
+DESCRIPTION="a free, open source software for marine navigation" |
64 |
+HOMEPAGE="https://opencpn.org/" |
65 |
+SRC_URI=" |
66 |
+ https://github.com/OpenCPN/OpenCPN/archive/v${PV}.tar.gz -> ${P}.tar.gz |
67 |
+ doc? ( https://launchpad.net/~opencpn/+archive/ubuntu/${PN}/+files/${PN}-doc_${DOC_VERSION}.orig.tar.xz )" |
68 |
+S="${WORKDIR}/OpenCPN-${PV}" |
69 |
+ |
70 |
+LICENSE="GPL-2+" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64 ~x86" |
73 |
+IUSE="doc lzma opengl" |
74 |
+ |
75 |
+RDEPEND=" |
76 |
+ app-arch/bzip2 |
77 |
+ lzma? ( app-arch/xz-utils ) |
78 |
+ dev-libs/tinyxml |
79 |
+ media-libs/freetype:2 |
80 |
+ media-libs/portaudio |
81 |
+ net-misc/curl |
82 |
+ sys-libs/zlib |
83 |
+ opengl? ( virtual/opengl ) |
84 |
+ x11-libs/gtk+:3 |
85 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X]" |
86 |
+DEPEND="${RDEPEND}" |
87 |
+BDEPEND="sys-devel/gettext" |
88 |
+ |
89 |
+PATCHES=( "${FILESDIR}"/${P}-cmake.patch ) |
90 |
+ |
91 |
+src_configure() { |
92 |
+ use doc && HTML_DOCS=( "${S}"/../${PN}/doc/. ) |
93 |
+ |
94 |
+ setup-wxwidgets |
95 |
+ local mycmakeargs=( |
96 |
+ -DUSE_S57=ON |
97 |
+ -DUSE_GARMINHOST=ON |
98 |
+ -DBUNDLE_GSHHS=CRUDE |
99 |
+ -DBUNDLE_TCDATA=ON |
100 |
+ ) |
101 |
+ |
102 |
+ cmake_src_configure |
103 |
+} |
104 |
+ |
105 |
+pkg_postinst() { |
106 |
+ xdg_pkg_postinst |
107 |
+ |
108 |
+ if use doc; then |
109 |
+ einfo "Documentation is available at file:///usr/share/doc/${PF}/html/help_en_US.html" |
110 |
+ fi |
111 |
+} |