mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
sci-geosciences/opencpn: add 5.2.0
Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user