From: "Marc Schiffbauer" <mschiff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/opencpn/, sci-geosciences/opencpn/files/
Date: Tue, 2 Nov 2021 12:11:37 +0000 (UTC) [thread overview]
Message-ID: <1635855082.c1289d6987c8bbb0a57d18c8dfae4f850a7bd3fe.mschiff@gentoo> (raw)
commit: c1289d6987c8bbb0a57d18c8dfae4f850a7bd3fe
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 2 12:10:05 2021 +0000
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Tue Nov 2 12:11:22 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1289d69
sci-geosciences/opencpn: add 5.2.0
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
sci-geosciences/opencpn/Manifest | 1 +
.../opencpn/files/opencpn-5.2.0-cmake.patch | 14 +++++
sci-geosciences/opencpn/opencpn-5.2.0.ebuild | 59 ++++++++++++++++++++++
3 files changed, 74 insertions(+)
diff --git a/sci-geosciences/opencpn/Manifest b/sci-geosciences/opencpn/Manifest
index 59f7720f7ed..f728493696f 100644
--- a/sci-geosciences/opencpn/Manifest
+++ b/sci-geosciences/opencpn/Manifest
@@ -1,2 +1,3 @@
DIST opencpn-5.0.0.tar.gz 67164574 BLAKE2B a06520aaf0dc1457208c5c6968d44b0122b89eca632aa3b8471a0efd452d41c155ee05274284d84e5de9f700a9d549b61eae5d2ddfc8e70c4d5cfa7cf1c84f3f SHA512 1b0f0e1a7164bc342a79837b987d8e4f69f164739f0d9c9c6448fab496af0944fe77b9cd3bbb9f2ee874cbb42add2da67df44606c6b8e620d0be2caf6a71eb96
+DIST opencpn-5.2.0.tar.gz 78313969 BLAKE2B 46fc27c749f0a250502f7450c2b854b32320dc753ddc8011e05c93ad8a0752fdefa98b495ad901beea18e70b337de1d50a72eebac452c7d18a6237ee49313f42 SHA512 fcef47b21e5da9a8028972b30ac825be6486ae89398e9d91899621fe32c96f9fce93cfde67dbf07991d20406ce30333895539220a63df071125e2a4db79d5709
DIST opencpn-doc_4.8.2.0.orig.tar.xz 22302480 BLAKE2B 2bcd2ac01340cde0d0be80537321c8c3e829a8e664944c34f3f3112f931c45746059b5c173402982601ccf88926241741c7fb44f251e9fe48b83aa5f3e8d7727 SHA512 678317c77feb3b0bf695e337e7e95083df1d488e0a5ad3bad41bad11dc87271d6fc0ac194a6b63b603d5c1f1184e6c9f91de895a7db01017ef2a7068a62404eb
diff --git a/sci-geosciences/opencpn/files/opencpn-5.2.0-cmake.patch b/sci-geosciences/opencpn/files/opencpn-5.2.0-cmake.patch
new file mode 100644
index 00000000000..4c2ea09ae15
--- /dev/null
+++ b/sci-geosciences/opencpn/files/opencpn-5.2.0-cmake.patch
@@ -0,0 +1,14 @@
+--- a/CMakeLists.txt 2021-11-02 01:45:56.488999411 -1000
++++ b/CMakeLists.txt 2021-11-02 01:51:53.343219957 -1000
+@@ -756,9 +756,9 @@
+ # looked for them. This is a nasty fix which might fail miserably. Assumption:
+ # All builds using GTK uses unicode and wxWidgets 3.0
+ if (GTK3_FOUND)
+- list(APPEND wxWidgets_LIBRARIES "-lwx_gtk3u_aui-3.0")
++ list(APPEND wxWidgets_LIBRARIES "-lwx_gtk3u_aui-3.0-gtk3")
+ if (OPENGL_FOUND)
+- list(APPEND wxWidgets_LIBRARIES "-lwx_gtk3u_gl-3.0")
++ list(APPEND wxWidgets_LIBRARIES "-lwx_gtk3u_gl-3.0-gtk3")
+ endif ()
+ endif ()
+
diff --git a/sci-geosciences/opencpn/opencpn-5.2.0.ebuild b/sci-geosciences/opencpn/opencpn-5.2.0.ebuild
new file mode 100644
index 00000000000..6688d1f0e0d
--- /dev/null
+++ b/sci-geosciences/opencpn/opencpn-5.2.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+WX_GTK_VER="3.0-gtk3"
+inherit wxwidgets xdg cmake
+
+DOC_VERSION="4.8.2.0"
+
+DESCRIPTION="a free, open source software for marine navigation"
+HOMEPAGE="https://opencpn.org/"
+SRC_URI="
+ https://github.com/OpenCPN/OpenCPN/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ doc? ( https://launchpad.net/~opencpn/+archive/ubuntu/${PN}/+files/${PN}-doc_${DOC_VERSION}.orig.tar.xz )"
+S="${WORKDIR}/OpenCPN-${PV}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc lzma opengl"
+
+RDEPEND="
+ app-arch/bzip2
+ lzma? ( app-arch/xz-utils )
+ dev-libs/tinyxml
+ media-libs/freetype:2
+ media-libs/portaudio
+ net-misc/curl
+ sys-libs/zlib
+ opengl? ( virtual/opengl )
+ x11-libs/gtk+:3
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+DEPEND="${RDEPEND}"
+BDEPEND="sys-devel/gettext"
+
+PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
+
+src_configure() {
+ use doc && HTML_DOCS=( "${S}"/../${PN}/doc/. )
+
+ setup-wxwidgets
+ local mycmakeargs=(
+ -DUSE_S57=ON
+ -DUSE_GARMINHOST=ON
+ -DBUNDLE_GSHHS=CRUDE
+ -DBUNDLE_TCDATA=ON
+ )
+
+ cmake_src_configure
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if use doc; then
+ einfo "Documentation is available at file:///usr/share/doc/${PF}/html/help_en_US.html"
+ fi
+}
next reply other threads:[~2021-11-02 12:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-02 12:11 Marc Schiffbauer [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-11-02 13:55 [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/opencpn/, sci-geosciences/opencpn/files/ Marc Schiffbauer
2021-04-04 14:08 David Seifert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1635855082.c1289d6987c8bbb0a57d18c8dfae4f850a7bd3fe.mschiff@gentoo \
--to=mschiff@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox