--- libmypaint-1.4.0.ebuild 2019-10-25 20:09:34.000000000 +0200 +++ libmypaint-2.0.0_alpha2.ebuild 2019-11-24 21:43:50.240842062 +0100 @@ -1,22 +1,27 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python2_7 ) +PYTHON_COMPAT=( python2_7 python3_6 ) inherit autotools python-any-r1 xdg-utils toolchain-funcs -MY_PV=${PV/_beta/-beta.} -MY_P=${PN}-${MY_PV} +if [[ ${PV} != ${PV/beta/} ]] || [[ ${PV} != ${PV/alpha/} ]]; then + MYPAINT_PV=$( ver_rs 3 - 4 .) +else + MYPAINT_PV=${PV} +fi DESCRIPTION="Library for making brushstrokes" HOMEPAGE="https://github.com/mypaint/libmypaint" -SRC_URI="https://github.com/mypaint/libmypaint/releases/download/v${MY_PV}/${MY_P}.tar.xz" +SRC_URI="https://github.com/mypaint/${PN}/archive/v${MYPAINT_PV}.tar.gz + -> + ${P}.tar.gz" LICENSE="ISC" -SLOT="0/$(ver_cut 1-2)" # https://github.com/mypaint/libmypaint/wiki/Versioning +SLOT="2.0/$(ver_cut 1-2)" # https://github.com/mypaint/libmypaint/wiki/Versioning KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" IUSE="gegl introspection nls openmp" CDEPEND=" dev-libs/glib:2 @@ -32,24 +37,26 @@ DEPEND="${CDEPEND} ${PYTHON_DEPS} nls? ( dev-util/intltool ) " RDEPEND="${CDEPEND} - !