commit:     decbea92a3443fa74eaeca3cb166572da2d025d2
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 29 13:26:15 2025 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Tue Apr 29 13:26:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=decbea92

sci-geosciences/routino: bump to 3.4.3

Closes: https://bugs.gentoo.org/955034
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>

 sci-geosciences/routino/Manifest             |  1 +
 sci-geosciences/routino/routino-3.4.3.ebuild | 85 ++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

diff --git a/sci-geosciences/routino/Manifest b/sci-geosciences/routino/Manifest
index 51cece8a0bd0..e12f9d43a494 100644
--- a/sci-geosciences/routino/Manifest
+++ b/sci-geosciences/routino/Manifest
@@ -1 +1,2 @@
 DIST routino-3.4.1.tgz 2591859 BLAKE2B 
cdc2018cb735c190258c9f4ebf09ad14d27923fcc520b3c58fb910e63d93e280bbad345ca1c82b31284827cf914f5da45b8f5a69c9ac1721b3f056dfd9d2e918
 SHA512 
c9e6dea5c60a265f7a5c7217711d2c880f201d1102740d756e10f731ace785a7afd7b84cdfb8485ee3af58b5a0f1b0e8e273dab1deedd319b27c77d400b30baa
+DIST routino-3.4.3.tgz 2653609 BLAKE2B 
9e9c4d7309da11e9dd9c88de79e6bade272fe5da362ebfde73097694d5c73c56d8684027e2f579f66e5108a3bb2452fbca783e436d50f456712c7a1ebc030ca4
 SHA512 
e9496684e818c78abdcf07fbcb29444ad2c31a24cfb2fa0252329747275618b35e851de871482527edca8eff3c00a23f6398440b00eec8c066c670c27f8a009c

diff --git a/sci-geosciences/routino/routino-3.4.3.ebuild 
b/sci-geosciences/routino/routino-3.4.3.ebuild
new file mode 100644
index 000000000000..248b5c573813
--- /dev/null
+++ b/sci-geosciences/routino/routino-3.4.3.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..13} )
+inherit toolchain-funcs distutils-r1
+
+DESCRIPTION="Routing application based on openstreetmap data"
+HOMEPAGE="https://routino.org/";
+SRC_URI="https://routino.org/download/${P}.tgz";
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="python test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       python? (
+               ${PYTHON_DEPS}
+               dev-lang/swig[pcre]
+       )
+"
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+
+PATCHES=( "${FILESDIR}"/${PN}-3.3.2.patch )
+
+src_prepare() {
+       default
+
+       sed -i -e "s@libdir=\(.*\)@libdir=\$(prefix)/$(get_libdir)@" \
+               -e "s@CC=gcc@CC=$(tc-getCC)@" \
+               -e "s@LD=gcc@LD=$(tc-getCC)@" \
+               Makefile.conf || die "failed sed"
+}
+
+src_compile() {
+       emake -j1
+
+       rm README.txt || die "rm README.txt failed"
+       mv doc/README.txt . || die "mv doc/README.txt . failed"
+
+       if use python; then
+               pushd python > /dev/null || die
+               distutils-r1_src_compile
+               popd > /dev/null || die
+       fi
+}
+
+python_compile() {
+       rm -f build/.timestamp || die
+       emake PYTHON=${EPYTHON} src/_router.c src/_database.cc || die
+       distutils-r1_python_compile
+}
+
+src_test() {
+       emake test
+
+       # Need to fix import issues with these
+       #if use python; then
+       #       pushd python > /dev/null || die
+       #       distutils-r1_src_test
+       #       popd > /dev/null || die
+       #fi
+}
+
+python_test() {
+       emake PYTHON=${EPYTHON} test
+}
+
+src_install() {
+       default
+
+       if use python; then
+               pushd python > /dev/null || die
+               distutils-r1_src_install
+               newdoc README.txt README_python.txt
+               popd > /dev/null || die
+       fi
+}

Reply via email to