summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schiffbauer <mschiff@gentoo.org>2023-05-29 00:00:25 +0300
committerMarc Schiffbauer <mschiff@gentoo.org>2023-05-29 00:01:17 +0300
commit8881e381178f01d5980c56c5109f1dc2625e41da (patch)
tree0db82d04cee3b9616822469ebf555d8ea1b0322d /sci-geosciences/opencpn
parentsci-geosciences/opencpn: fix wxGTK dep (diff)
downloadgentoo-8881e381178f01d5980c56c5109f1dc2625e41da.tar.gz
gentoo-8881e381178f01d5980c56c5109f1dc2625e41da.tar.bz2
gentoo-8881e381178f01d5980c56c5109f1dc2625e41da.zip
sci-geosciences/opencpn: add 5.8.2
Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
Diffstat (limited to 'sci-geosciences/opencpn')
-rw-r--r--sci-geosciences/opencpn/Manifest1
-rw-r--r--sci-geosciences/opencpn/opencpn-5.8.2.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/sci-geosciences/opencpn/Manifest b/sci-geosciences/opencpn/Manifest
index 29eeb97e1f88..93cfb53e9477 100644
--- a/sci-geosciences/opencpn/Manifest
+++ b/sci-geosciences/opencpn/Manifest
@@ -1,2 +1,3 @@
DIST opencpn-5.6.2.tar.gz 82919992 BLAKE2B a45e19d293d63262f2bb6bd0bd5d18723cadd0b93af8e64484b55d246cebbe623dccbb6a1d257eccd74fb9111953d9cdd4b44d6f3fb38c3a9f40fa253718f337 SHA512 6d90b21448b2d2a58685592e92647108978012cbaa25999d98855dca222e013784ca4e351eb08efd0a18980cccffb28b0d3c171ea9207e5fb37889e3a3b377e3
+DIST opencpn-5.8.2.tar.gz 87960698 BLAKE2B ecce27972a00af412283923a1720b9d74c80905101f383815e801691ab9dacb7c60328f6cd597811d4538bccf383e66465e08e2094420187272298151327b717 SHA512 c23bb322c2dcfb017347427cf6041d28fc0c1b8101f21d5cafc9b9306a4d265156ded90af09c385086e99a462a26787e7f4bb817ad19efa50624c952ba89c726
DIST opencpn-doc_4.8.2.0.orig.tar.xz 22302480 BLAKE2B 2bcd2ac01340cde0d0be80537321c8c3e829a8e664944c34f3f3112f931c45746059b5c173402982601ccf88926241741c7fb44f251e9fe48b83aa5f3e8d7727 SHA512 678317c77feb3b0bf695e337e7e95083df1d488e0a5ad3bad41bad11dc87271d6fc0ac194a6b63b603d5c1f1184e6c9f91de895a7db01017ef2a7068a62404eb
diff --git a/sci-geosciences/opencpn/opencpn-5.8.2.ebuild b/sci-geosciences/opencpn/opencpn-5.8.2.ebuild
new file mode 100644
index 000000000000..086ea41bb373
--- /dev/null
+++ b/sci-geosciences/opencpn/opencpn-5.8.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+WX_GTK_VER="3.2-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/refs/tags/Release_${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-Release_${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/jasper
+ media-libs/portaudio
+ net-misc/curl
+ sys-libs/zlib
+ opengl? ( virtual/opengl )
+ x11-libs/gtk+:3
+ x11-libs/wxGTK:${WX_GTK_VER}[opengl,X]"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-devel/gettext
+ sys-apps/lsb-release"
+
+src_configure() {
+ use doc && HTML_DOCS=( "${S}"/../${PN}/doc/. )
+
+ setup-wxwidgets
+ local mycmakeargs=(
+ -DUSE_GARMINHOST=ON
+ )
+# -DUSE_S57=ON
+# -DBUNDLE_TCDATA=ON
+# -DBUNDLE_GSHHS=CRUDE
+
+ 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
+}