summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schiffbauer <mschiff@gentoo.org>2012-07-17 22:57:56 +0000
committerMarc Schiffbauer <mschiff@gentoo.org>2012-07-17 22:57:56 +0000
commit80c66c0030549490d5ecf6ae14ead73671ce5be8 (patch)
treeb32fcd18a760715c05203fb7075085e64c88760b /sci-geosciences
parentInitial import (diff)
downloadgentoo-2-80c66c0030549490d5ecf6ae14ead73671ce5be8.tar.gz
gentoo-2-80c66c0030549490d5ecf6ae14ead73671ce5be8.tar.bz2
gentoo-2-80c66c0030549490d5ecf6ae14ead73671ce5be8.zip
Added new version 3.0.2. Updated dependencies. Closes #426902. Thanks Christian!
(Portage version: 2.2.0_alpha118/cvs/Linux x86_64)
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/opencpn/ChangeLog11
-rw-r--r--sci-geosciences/opencpn/files/opencpn-3.0.2-multilib-strict.patch12
-rw-r--r--sci-geosciences/opencpn/opencpn-3.0.2.ebuild67
3 files changed, 88 insertions, 2 deletions
diff --git a/sci-geosciences/opencpn/ChangeLog b/sci-geosciences/opencpn/ChangeLog
index 5f039e0b73ec..c6d5ba5f6cec 100644
--- a/sci-geosciences/opencpn/ChangeLog
+++ b/sci-geosciences/opencpn/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-geosciences/opencpn
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/opencpn/ChangeLog,v 1.8 2011/12/02 16:39:38 mschiff Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/opencpn/ChangeLog,v 1.9 2012/07/17 22:57:56 mschiff Exp $
+
+*opencpn-3.0.2 (17 Jul 2012)
+
+ 17 Jul 2012; Marc Schiffbauer <mschiff@gentoo.org> +opencpn-3.0.2.ebuild,
+ +files/opencpn-3.0.2-multilib-strict.patch:
+ Added new version 3.0.2. Updated dependencies. Closes #426902. Thanks
+ Christian!
*opencpn-2.5.0-r1 (02 Dec 2011)
diff --git a/sci-geosciences/opencpn/files/opencpn-3.0.2-multilib-strict.patch b/sci-geosciences/opencpn/files/opencpn-3.0.2-multilib-strict.patch
new file mode 100644
index 000000000000..c66736fde9c7
--- /dev/null
+++ b/sci-geosciences/opencpn/files/opencpn-3.0.2-multilib-strict.patch
@@ -0,0 +1,12 @@
+--- OpenCPN-3.0.2-Source/CMakeLists.txt.orig 2012-07-18 00:27:24.531257698 +0200
++++ OpenCPN-3.0.2-Source/CMakeLists.txt 2012-07-18 00:29:37.669412986 +0200
+@@ -99,6 +99,9 @@
+ SET (LIB_INSTALL_DIR "lib")
+ ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ ENDIF (EXISTS /etc/suse-release OR EXISTS /etc/SuSE-release)
++ IF (EXISTS /etc/gentoo-release)
++ SET (LIB_INSTALL_DIR "lib${LIB_SUFFIX}")
++ ENDIF (EXISTS /etc/gentoo-release)
+ IF(APPLE)
+ IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ IF (CMAKE_OSX_64)
diff --git a/sci-geosciences/opencpn/opencpn-3.0.2.ebuild b/sci-geosciences/opencpn/opencpn-3.0.2.ebuild
new file mode 100644
index 000000000000..6b12e770b0b7
--- /dev/null
+++ b/sci-geosciences/opencpn/opencpn-3.0.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/opencpn/opencpn-3.0.2.ebuild,v 1.1 2012/07/17 22:57:56 mschiff Exp $
+
+EAPI=4
+
+WX_GTK_VER="2.8"
+MY_P=OpenCPN-${PV}-Source
+inherit cmake-utils wxwidgets
+
+DESCRIPTION="a free, open source software for marine navigation"
+HOMEPAGE="http://opencpn.org/"
+#SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+SRC_URI="http://opencpn.org/ocpn/downloads/beta/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gps"
+
+RDEPEND="
+ app-arch/bzip2
+ dev-libs/tinyxml
+ media-libs/freetype:2
+ sys-libs/zlib
+ virtual/opengl
+ x11-libs/gtk+:2
+ >=x11-libs/wxGTK-2.8.11.0[X]
+ gps? ( >=sci-geosciences/gpsd-2.96-r1 )
+"
+DEPEND="${DEPEND}
+ sys-devel/gettext"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-multilib-strict.patch"
+)
+# "${FILESDIR}/${P}_tinyxml_stl.patch"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_use gps GPSD)
+ -DUSE_S57=ON
+ -DUSE_GARMINHOST=ON
+ -DUSE_WIFI_CLIENT=OFF
+ )
+
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ if grep -rqE "sci-geosciences/opencpn.*gpsd" /etc/portage/package.use*; then
+ ewarn "The local 'gpsd' USE flag has been removed in favour of the"
+ if use gps; then
+ ewarn "global 'gps' USE flag which is enabled on your system."
+ ewarn ""
+ ewarn "Please remove the 'gpsd' USE flag from your make.conf"
+ ewarn "and/or /etc/portage/package.use files."
+ else
+ ewarn "global 'gps' USE flag."
+ ewarn ""
+ ewarn "In order to have GPS support in OpenCPN you need to"
+ ewarn "enable the 'gps' USE flag."
+ fi
+ fi
+}