Lines 1-22
Link Here
|
1 |
# Copyright 1999-2019 Gentoo Authors |
1 |
# Copyright 1999-2019 Gentoo Authors |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
EAPI=7 |
4 |
EAPI=7 |
5 |
PYTHON_COMPAT=( python2_7 ) |
5 |
PYTHON_COMPAT=( python2_7 python3_6 ) |
6 |
|
6 |
|
7 |
inherit autotools python-any-r1 xdg-utils toolchain-funcs |
7 |
inherit autotools python-any-r1 xdg-utils toolchain-funcs |
8 |
|
8 |
|
9 |
MY_PV=${PV/_beta/-beta.} |
9 |
if [[ ${PV} != ${PV/beta/} ]] || [[ ${PV} != ${PV/alpha/} ]]; then |
10 |
MY_P=${PN}-${MY_PV} |
10 |
MYPAINT_PV=$( ver_rs 3 - 4 .) |
|
|
11 |
else |
12 |
MYPAINT_PV=${PV} |
13 |
fi |
11 |
|
14 |
|
12 |
DESCRIPTION="Library for making brushstrokes" |
15 |
DESCRIPTION="Library for making brushstrokes" |
13 |
HOMEPAGE="https://github.com/mypaint/libmypaint" |
16 |
HOMEPAGE="https://github.com/mypaint/libmypaint" |
14 |
SRC_URI="https://github.com/mypaint/libmypaint/releases/download/v${MY_PV}/${MY_P}.tar.xz" |
17 |
SRC_URI="https://github.com/mypaint/${PN}/archive/v${MYPAINT_PV}.tar.gz |
|
|
18 |
-> |
19 |
${P}.tar.gz" |
15 |
|
20 |
|
16 |
LICENSE="ISC" |
21 |
LICENSE="ISC" |
17 |
SLOT="0/$(ver_cut 1-2)" # https://github.com/mypaint/libmypaint/wiki/Versioning |
22 |
SLOT="2.0/$(ver_cut 1-2)" # https://github.com/mypaint/libmypaint/wiki/Versioning |
18 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
23 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
19 |
IUSE="gegl introspection nls openmp" |
24 |
IUSE="gegl introspection nls openmp" |
20 |
|
25 |
|
21 |
CDEPEND=" |
26 |
CDEPEND=" |
22 |
dev-libs/glib:2 |
27 |
dev-libs/glib:2 |
Lines 32-55
Link Here
|
32 |
DEPEND="${CDEPEND} |
37 |
DEPEND="${CDEPEND} |
33 |
${PYTHON_DEPS} |
38 |
${PYTHON_DEPS} |
34 |
nls? ( dev-util/intltool ) |
39 |
nls? ( dev-util/intltool ) |
35 |
" |
40 |
" |
36 |
RDEPEND="${CDEPEND} |
41 |
RDEPEND="${CDEPEND} |
37 |
!<media-gfx/mypaint-1.2.1 |
|
|
38 |
" |
42 |
" |
39 |
|
43 |
|
40 |
S="${WORKDIR}"/${MY_P} |
44 |
S="${WORKDIR}"/${PN}-${MYPAINT_PV} |
41 |
|
45 |
|
|
|
46 |
# Patches snatched from Fedora Rawhide |
42 |
PATCHES=( |
47 |
PATCHES=( |
43 |
"${FILESDIR}"/${PN}-1.4.0-drop-libmypaint-gegl-versioning.patch |
48 |
"${FILESDIR}"/${PN}2-0002-build-with-and-require-gegl-0.4.patch |
44 |
"${FILESDIR}"/${PN}-1.4.0-gegl-0.4.14.patch |
49 |
"${FILESDIR}"/${PN}2-0003-set-api-version-for-libmypaint-gegl.patch |
45 |
) |
50 |
) |
46 |
|
51 |
|
47 |
src_prepare() { |
52 |
src_prepare() { |
48 |
xdg_environment_reset |
53 |
xdg_environment_reset |
49 |
default |
54 |
default |
50 |
eautoreconf |
55 |
eautoreconf |
|
|
56 |
# Snatched from autogen.sh. |
57 |
$EPYTHON generate.py mypaint-brush-settings-gen.h brushsettings-gen.h || die |
51 |
} |
58 |
} |
52 |
|
59 |
|
53 |
src_configure() { |
60 |
src_configure() { |
54 |
tc-ld-disable-gold # bug 589266 |
61 |
tc-ld-disable-gold # bug 589266 |
55 |
econf \ |
62 |
econf \ |