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 8F73B158090 for ; Tue, 24 May 2022 10:11:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B459BE0636; Tue, 24 May 2022 10:11:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 93D70E0636 for ; Tue, 24 May 2022 10:11:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6F58234199E for ; Tue, 24 May 2022 10:11:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8AA59D3 for ; Tue, 24 May 2022 10:11:24 +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: <1653387069.c92dba5ce1c32a9eadc7370cbdd9be862bab04f0.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-r1.ebuild X-VCS-Directories: sci-geosciences/routino/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: c92dba5ce1c32a9eadc7370cbdd9be862bab04f0 X-VCS-Branch: master Date: Tue, 24 May 2022 10:11:24 +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: d9d20374-8cd7-4614-b0d8-746b1d56a583 X-Archives-Hash: 008aba6d15f1ceceb9269733be6efafd commit: c92dba5ce1c32a9eadc7370cbdd9be862bab04f0 Author: Andrey Grozin gentoo org> AuthorDate: Tue May 24 10:11:09 2022 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Tue May 24 10:11:09 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c92dba5c sci-geosciences/routino: add python3_10 Closes: https://bugs.gentoo.org/846245 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrey Grozin gentoo.org> sci-geosciences/routino/routino-3.3.3-r1.ebuild | 82 +++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/sci-geosciences/routino/routino-3.3.3-r1.ebuild b/sci-geosciences/routino/routino-3.3.3-r1.ebuild new file mode 100644 index 000000000000..5f827be3d0a8 --- /dev/null +++ b/sci-geosciences/routino/routino-3.3.3-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python3_{8..10} ) +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 + python_compile() { + rm -f build/.timestamp || die + emake PYTHON=${EPYTHON} + } + python_foreach_impl python_compile + popd > /dev/null + fi +} + +src_test() { + emake test +# if use python; then +# pushd python > /dev/null +# python_test() { +# echo "######## ${EPYTHON} ########" +# emake PYTHON=${EPYTHON} test +# } +# python_foreach_impl python_test +# popd > /dev/null +# fi +} + +src_install() { + default + if use python; then + pushd python > /dev/null + python_install() { + esetup.py install + python_optimize + } + python_foreach_impl python_install + newdoc README.txt README_python.txt + popd > /dev/null + fi + +}