From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- app-misc/navit/Manifest | 4 ++ app-misc/navit/files/navit-ds-externc.patch | 34 +++++++++++++++++ app-misc/navit/navit-0.0.4.ebuild | 58 +++++++++++++++++++++++++++++ app-misc/navit/navit-9999-r1.ebuild | 54 +++++++++++++++++++++++++++ 4 files changed, 150 insertions(+) create mode 100644 app-misc/navit/Manifest create mode 100644 app-misc/navit/files/navit-ds-externc.patch create mode 100644 app-misc/navit/navit-0.0.4.ebuild create mode 100644 app-misc/navit/navit-9999-r1.ebuild (limited to 'app-misc/navit') diff --git a/app-misc/navit/Manifest b/app-misc/navit/Manifest new file mode 100644 index 0000000..b1bd78a --- /dev/null +++ b/app-misc/navit/Manifest @@ -0,0 +1,4 @@ +AUX navit-ds-externc.patch 982 RMD160 cbabe8d5dc7c6046617a382a95ce30849c3c6b64 SHA1 064a530cf6be5737bb333847ee164e124325f104 SHA256 189c733b521d3e449001ad32495749898c8a40f2c073fd616d02196a30aed3b7 +DIST navit-0.0.4.tar.gz 1161693 RMD160 f628ec094d7b7e52cfb5045faf80c412bab344b2 SHA1 73bbe1771b5b5f1534326330af58f05807b305b3 SHA256 c069e983ea8bb9b6706d35126350d4d14619b9ce0ac888adbcdda3ff13362ab4 +EBUILD navit-0.0.4.ebuild 1449 RMD160 4002fd3a23c7d12dab27eeb2c375551c22ee2ec4 SHA1 8cb6b478822e8b7a1267fc4ec204959e68352419 SHA256 dc1c989d1226c801b4a472cebe2fae7bfc3fc2a8c900d1a218ef8f47cc3b3a3d +EBUILD navit-9999-r1.ebuild 1368 RMD160 b365abbb440a678350718eb221735eab1f0e4803 SHA1 794099ae5a26bf87ca8d06fc77cbd71e03f21dde SHA256 bef09fc104452a3402aa821c903888cd45137691ad795b423c681f6b9f11f7ff diff --git a/app-misc/navit/files/navit-ds-externc.patch b/app-misc/navit/files/navit-ds-externc.patch new file mode 100644 index 0000000..ad49b6a --- /dev/null +++ b/app-misc/navit/files/navit-ds-externc.patch @@ -0,0 +1,34 @@ +diff -dPNur navit-9999/navit/gui/cegui/gui_sdl.h navit-9999-ds/navit/gui/cegui/gui_sdl.h +--- navit-9999/navit/gui/cegui/gui_sdl.h 2008-11-16 04:33:38.000000000 +0100 ++++ navit-9999-ds/navit/gui/cegui/gui_sdl.h 2008-11-16 04:04:55.000000000 +0100 +@@ -29,8 +29,10 @@ + extern struct navit *sdl_gui_navit; + + ++extern "C" { + bool BookmarkGo(const char * name); + bool FormerDestGo(const char * name); ++} + + struct gui_priv { + struct navit *nav; +diff -dPNur navit-9999/navit/gui/cegui/gui_sdl_window.cpp navit-9999-ds/navit/gui/cegui/gui_sdl_window.cpp +--- navit-9999/navit/gui/cegui/gui_sdl_window.cpp 2008-11-16 04:33:38.000000000 +0100 ++++ navit-9999-ds/navit/gui/cegui/gui_sdl_window.cpp 2008-11-16 04:03:25.000000000 +0100 +@@ -24,6 +24,7 @@ + // FIXME temporary fix for enum + #include "projection.h" + ++extern "C" { + #include "item.h" + #include "navit.h" + #include "vehicle.h" +@@ -43,7 +44,7 @@ + #include "track.h" + #include "menu.h" + #include "map.h" +- ++} + + #include "CEGUI.h" + diff --git a/app-misc/navit/navit-0.0.4.ebuild b/app-misc/navit/navit-0.0.4.ebuild new file mode 100644 index 0000000..faddf40 --- /dev/null +++ b/app-misc/navit/navit-0.0.4.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" +#inherit subversion + +DESCRIPTION="An open-source car navigation system with a routing engine." +HOMEPAGE="http://www.navit-project.org" +SRC_URI="mirror://sourceforge/roadnav/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="dbus garmin gps gtk nls python sdl speechd" + +COMMON_DEPEND="dev-libs/glib:2 + garmin? ( dev-libs/libgarmin ) + gtk? ( x11-libs/gtk+:2 + x11-misc/xkbd ) + sdl? ( media-libs/libsdl + media-libs/sdl-image + >=dev-games/cegui-0.5 + media-libs/quesoglc ) + python? ( dev-lang/python ) + dbus? ( sys-apps/dbus ) + gps? ( sci-geosciences/gpsd ) + speechd? ( app-accessibility/speechd )" +DEPEND="${COMMON_DEPEND} + dev-util/pkgconfig" +RDEPEND="${COMMON_DEPEND}" + +#ESVN_REPO_URI="https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit" +#ESVN_BOOTSTRAP="./autogen.sh" + +src_unpack() { + unpack ${P}.tar.gz +# epatch "${FILESDIR}"/navit-ds-externc.patch || die +} + +src_compile() { + econf $(use_enable garmin) \ + $(use_enable gps libgps) \ + $(use_enable gtk gui-gtk) \ + $(use_enable sdl gui-sdl) \ + $(use_enable nls) \ + $(use_enable dbus binding-dbus) \ + $(use_enable python binding-python) \ + $(use_enable speechd speech-speechd) \ + --disable-graphics-qt-painter \ + --disable-samplemap + + emake || die "Make failed" +} + +src_install () { + emake DESTDIR="${D}" install || die "Install failed" +} diff --git a/app-misc/navit/navit-9999-r1.ebuild b/app-misc/navit/navit-9999-r1.ebuild new file mode 100644 index 0000000..9c448d7 --- /dev/null +++ b/app-misc/navit/navit-9999-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" +inherit subversion + +DESCRIPTION="An open-source car navigation system with a routing engine." +HOMEPAGE="http://www.navit-project.org" +SRC_URI="" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="dbus garmin gps gtk nls python sdl speechd" + +COMMON_DEPEND="dev-libs/glib:2 + garmin? ( dev-libs/libgarmin ) + gtk? ( x11-libs/gtk+:2 + x11-misc/xkbd ) + sdl? ( media-libs/libsdl + media-libs/sdl-image + >=dev-games/cegui-0.5 + media-libs/quesoglc ) + python? ( dev-lang/python ) + dbus? ( sys-apps/dbus ) + gps? ( sci-geosciences/gpsd ) + speechd? ( app-accessibility/speechd )" +DEPEND="${COMMON_DEPEND} + dev-util/pkgconfig" +RDEPEND="${COMMON_DEPEND}" + +ESVN_REPO_URI="https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit" +ESVN_BOOTSTRAP="./autogen.sh" + +src_compile() { +# epatch "${FILESDIR}"/navit-ds-externc.patch || die + econf $(use_enable garmin) \ + $(use_enable gps libgps) \ + $(use_enable gtk gui-gtk) \ + $(use_enable sdl gui-sdl) \ + $(use_enable nls) \ + $(use_enable dbus binding-dbus) \ + $(use_enable python binding-python) \ + $(use_enable speechd speech-speechd) \ + --disable-graphics-qt-painter \ + --disable-samplemap + + emake || die "Make failed" +} + +src_install () { + emake DESTDIR="${D}" install || die "Install failed" +} -- cgit v1.2.3