1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6,7,8} )
6 inherit toolchain-funcs distutils-r1
8 DESCRIPTION="Routing application based on openstreetmap data"
9 HOMEPAGE="http://www.routino.org/"
10 SRC_URI="http://www.routino.org/download/${P}.tgz"
13 KEYWORDS="~amd64 ~x86"
15 RESTRICT="!test? ( test )"
16 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
17 DEPEND="python? ( ${PYTHON_DEPS}
19 RDEPEND="python? ( ${PYTHON_DEPS} )"
22 eapply "${FILESDIR}"/${P}.patch
24 sed -i -e "s@libdir=\(.*\)@libdir=\$(prefix)/$(get_libdir)@" \
25 -e "s@CC=gcc@CC=$(tc-getCC)@" \
26 -e "s@LD=gcc@LD=$(tc-getCC)@" \
27 Makefile.conf || die "failed sed"
34 rm README.txt || die "rm README.txt failed"
35 mv doc/README.txt . || die "mv doc/README.txt . failed"
37 pushd python > /dev/null
39 rm -f build/.timestamp
40 emake PYTHON=${EPYTHON}
42 python_foreach_impl python_compile
50 # pushd python > /dev/null
52 # echo "######## ${EPYTHON} ########"
53 # emake PYTHON=${EPYTHON} test
55 # python_foreach_impl python_test
63 pushd python > /dev/null
68 python_foreach_impl python_install
69 newdoc README.txt README_python.txt