From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 01B1915800F for ; Thu, 16 Feb 2023 13:26:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4067CE0825; Thu, 16 Feb 2023 13:26:53 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 255ABE0825 for ; Thu, 16 Feb 2023 13:26:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4969D33E622 for ; Thu, 16 Feb 2023 13:26:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B0DDA8A3 for ; Thu, 16 Feb 2023 13:26:50 +0000 (UTC) From: "Andrey Grozin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Grozin" Message-ID: <1676553996.e4ee6e5910b07e91ac01d0d375a1d5ed75b77a0c.grozin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/routino/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/routino/routino-3.3.3-r3.ebuild X-VCS-Directories: sci-geosciences/routino/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: e4ee6e5910b07e91ac01d0d375a1d5ed75b77a0c X-VCS-Branch: master Date: Thu, 16 Feb 2023 13:26:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ba168830-a045-4934-84b8-64f3f53f448e X-Archives-Hash: 51d5f85b815ac267c2eed312665ea366 commit: e4ee6e5910b07e91ac01d0d375a1d5ed75b77a0c Author: Andrey Grozin gentoo org> AuthorDate: Thu Feb 16 13:26:36 2023 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Thu Feb 16 13:26:36 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ee6e59 sci-geosciences/routino: add python3_11 Signed-off-by: Andrey Grozin gentoo.org> sci-geosciences/routino/routino-3.3.3-r3.ebuild | 88 +++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/sci-geosciences/routino/routino-3.3.3-r3.ebuild b/sci-geosciences/routino/routino-3.3.3-r3.ebuild new file mode 100644 index 000000000000..bc39cf589cc9 --- /dev/null +++ b/sci-geosciences/routino/routino-3.3.3-r3.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python3_{9..11} ) +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_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 +} + +python_install() { + esetup.py install + python_optimize +}