mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-geosciences/opencpn: add 5.10.0
Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST opencpn-5.10.0.tar.gz 74071915 BLAKE2B 103f495054e04c50f99d85be91d142b27ff2b340643c6b5b2919c10fb1c9bbbfb0066ea5ca574d1195dbe5f0c50cf498e320f1fde4d3e3413778eda87ea64e11 SHA512 9f212bf54655c8c292d9921ad0375d5a070fd790fd9a2e4d80af1c7b5faf6b72e2aed0b677b165713d79fff1d8513d2c465e7606604f6fccd19aee8b32d5e6cf
|
||||
DIST opencpn-5.6.2.tar.gz 82919992 BLAKE2B a45e19d293d63262f2bb6bd0bd5d18723cadd0b93af8e64484b55d246cebbe623dccbb6a1d257eccd74fb9111953d9cdd4b44d6f3fb38c3a9f40fa253718f337 SHA512 6d90b21448b2d2a58685592e92647108978012cbaa25999d98855dca222e013784ca4e351eb08efd0a18980cccffb28b0d3c171ea9207e5fb37889e3a3b377e3
|
||||
DIST opencpn-5.8.4.tar.gz 82696698 BLAKE2B 0235d87daec97008b58dc9916d4250b33c0c4158be6ba4853bf30c5876af7d382eb1c02e2cd3748229775305cc90f86d5743b9951909043588e2096fcd207af5 SHA512 08231d95ca80a5e6b85b279be2912d3e9f390f879a780823f8ee9c64371eb0605484f697328217027c7caf18cb1151b617d42d22951672c1a9508750e97f109a
|
||||
DIST opencpn-doc_4.8.2.0.orig.tar.xz 22302480 BLAKE2B 2bcd2ac01340cde0d0be80537321c8c3e829a8e664944c34f3f3112f931c45746059b5c173402982601ccf88926241741c7fb44f251e9fe48b83aa5f3e8d7727 SHA512 678317c77feb3b0bf695e337e7e95083df1d488e0a5ad3bad41bad11dc87271d6fc0ac194a6b63b603d5c1f1184e6c9f91de895a7db01017ef2a7068a62404eb
|
||||
|
||||
96
sci-geosciences/opencpn/opencpn-5.10.0.ebuild
Normal file
96
sci-geosciences/opencpn/opencpn-5.10.0.ebuild
Normal file
@@ -0,0 +1,96 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
WX_GTK_VER="3.2-gtk3"
|
||||
inherit flag-o-matic wxwidgets xdg cmake toolchain-funcs
|
||||
|
||||
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"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/bzip2
|
||||
app-arch/lz4
|
||||
dev-libs/libdnet
|
||||
dev-libs/openssl:=
|
||||
dev-libs/tinyxml
|
||||
lzma? ( app-arch/xz-utils )
|
||||
media-libs/freetype:2
|
||||
media-libs/glew:0
|
||||
media-libs/jasper
|
||||
media-libs/portaudio
|
||||
net-misc/curl
|
||||
>=sci-libs/shapelib-1.6.0
|
||||
sys-libs/zlib
|
||||
virtual/libusb:1
|
||||
virtual/opengl
|
||||
x11-base/xorg-proto
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/wxGTK:${WX_GTK_VER}=[opengl,X]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-cpp/gtest
|
||||
dev-libs/rapidjson
|
||||
sys-apps/lsb-release
|
||||
sys-devel/gettext
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
# see bug #907759
|
||||
sed -i "s/ cc / $(tc-getBUILD_CC) /" "${S}"/CMakeLists.txt
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# -Werror=odr
|
||||
# https://bugs.gentoo.org/927484
|
||||
# https://github.com/OpenCPN/OpenCPN/issues/3782
|
||||
filter-lto
|
||||
|
||||
use doc && HTML_DOCS=( "${S}"/../${PN}/doc/. )
|
||||
|
||||
setup-wxwidgets
|
||||
local mycmakeargs=(
|
||||
-DUSE_GARMINHOST=ON
|
||||
-DOCPN_ENABLE_SYSTEM_CMD_SOUND=OFF
|
||||
-DOCPN_ENABLE_SNDFILE=OFF
|
||||
-DOCPN_USE_BUNDLED_LIBS=OFF
|
||||
-DOCPN_BUNDLE_TCDATA=ON
|
||||
-DOCPN_BUNDLE_GSHHS=ON
|
||||
-DOCPN_BUNDLE_DOCS=ON
|
||||
-DOCPN_ENABLE_PORTAUDIO=ON
|
||||
-DOCPN_ENABLE_SYSTEM_CMD_SOUND=OFF
|
||||
-DOCPN_WXWIDGETS_FORCE_VERSION=${WX_GTK_VER}
|
||||
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
/usr/share/doc/opencpn
|
||||
|
||||
mv "${D}/usr/share/doc/${PN}"/* "${D}/usr/share/doc/${PF}" || die
|
||||
rmdir "${D}/usr/share/doc/${PN}"
|
||||
}
|
||||
|
||||
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