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 E519D158091 for ; Sun, 12 Jun 2022 15:34:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 906A5E0907; Sun, 12 Jun 2022 15:34:44 +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 7631BE0907 for ; Sun, 12 Jun 2022 15:34:44 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A75F3341B83 for ; Sun, 12 Jun 2022 15:34:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F2FDB507 for ; Sun, 12 Jun 2022 15:34:40 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1655048052.e4c19a453e1ee804e2824bdcb1fd4fe395cb2cae.sam@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-r2.ebuild X-VCS-Directories: sci-geosciences/routino/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e4c19a453e1ee804e2824bdcb1fd4fe395cb2cae X-VCS-Branch: master Date: Sun, 12 Jun 2022 15:34:40 +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: 5c72d989-4906-4ac2-b4ec-dee17fceccb9 X-Archives-Hash: dc0d8b4c6882d4f1c1e089c6d8fa70ee commit: e4c19a453e1ee804e2824bdcb1fd4fe395cb2cae Author: Sam James gentoo org> AuthorDate: Sun Jun 12 15:34:12 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jun 12 15:34:12 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4c19a45 sci-geosciences/routino: fix distutils-r1 usage Signed-off-by: Sam James gentoo.org> sci-geosciences/routino/routino-3.3.3-r2.ebuild | 88 +++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/sci-geosciences/routino/routino-3.3.3-r2.ebuild b/sci-geosciences/routino/routino-3.3.3-r2.ebuild new file mode 100644 index 000000000000..1393713d8bf8 --- /dev/null +++ b/sci-geosciences/routino/routino-3.3.3-r2.ebuild @@ -0,0 +1,88 @@ +# 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 || 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 +}