1 |
commit: a5d0d8b5f0a6db5ef7d4beeb967ebcbfa3e213ce |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 25 16:45:23 2015 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 25 16:45:23 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5d0d8b5 |
7 |
|
8 |
sci-geosciences/opencpn: Support wxGTK:3.0 |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
|
12 |
sci-geosciences/opencpn/opencpn-4.0.0-r1.ebuild | 68 +++++++++++++++++++++++++ |
13 |
1 file changed, 68 insertions(+) |
14 |
|
15 |
diff --git a/sci-geosciences/opencpn/opencpn-4.0.0-r1.ebuild b/sci-geosciences/opencpn/opencpn-4.0.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..84b9841 |
18 |
--- /dev/null |
19 |
+++ b/sci-geosciences/opencpn/opencpn-4.0.0-r1.ebuild |
20 |
@@ -0,0 +1,68 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+# TODO: add plugins |
28 |
+ |
29 |
+## wmm_pi, World Magnetic Model (https://github.com/nohal/wmm_pi, GPL-2+) |
30 |
+#WMM_PLUGIN_PV="1.0" |
31 |
+#WMM_PLUGIN_PN="wmm_pi" |
32 |
+#WMM_PLUGIN_P="${WMM_PLUGIN_PN}-${WMM_PLUGIN_PV}" |
33 |
+#WMM_PLUGIN_URI="https://github.com/nohal/${WMM_PLUGIN_PN}/archive/${WMM_PLUGIN_PN}-v${WMM_PLUGIN_PV}.tar.gz" |
34 |
+#WMM_PLUGIN_WD="${WORKDIR}/plugins/${WMM_PLUGIN_PN}" |
35 |
+ |
36 |
+WX_GTK_VER="3.0" |
37 |
+inherit cmake-utils wxwidgets |
38 |
+ |
39 |
+DESCRIPTION="a free, open source software for marine navigation" |
40 |
+HOMEPAGE="http://opencpn.org/" |
41 |
+SRC_URI="https://github.com/OpenCPN/OpenCPN/archive/v${PV}.tar.gz -> ${P}.tar.gz |
42 |
+doc? ( https://launchpad.net/~opencpn/+archive/ubuntu/${PN}/+files/${PN}-doc_${PV}.orig.tar.xz ) |
43 |
+" |
44 |
+ |
45 |
+LICENSE="GPL-2+" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="doc gps opengl" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ app-arch/bzip2 |
52 |
+ dev-libs/tinyxml |
53 |
+ media-libs/freetype:2 |
54 |
+ media-libs/portaudio |
55 |
+ sys-libs/zlib |
56 |
+ opengl? ( virtual/opengl ) |
57 |
+ x11-libs/gtk+:2 |
58 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X] |
59 |
+ gps? ( >=sci-geosciences/gpsd-2.96-r1 ) |
60 |
+" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ sys-devel/gettext" |
63 |
+ |
64 |
+S="${WORKDIR}/OpenCPN-${PV}" |
65 |
+ |
66 |
+src_configure() { |
67 |
+ need-wxwidgets unicode |
68 |
+ local mycmakeargs=( |
69 |
+ $(cmake-utils_use_use gps GPSD) |
70 |
+ -DUSE_S57=ON |
71 |
+ -DUSE_GARMINHOST=ON |
72 |
+ ) |
73 |
+ |
74 |
+ cmake-utils_src_configure |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ if use doc; then |
79 |
+ dohtml -r "${S}"/../${PN}/doc/* |
80 |
+ fi |
81 |
+ cmake-utils_src_install |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ if use doc; then |
86 |
+ einfo "Documentation is available at file:///usr/share/doc/${P}/html/help_en_US.html" |
87 |
+ fi |
88 |
+} |