1 |
commit: c8e78899ede4fc19cef475e9043b55afd844778f |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 9 15:35:18 2019 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 9 15:42:38 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e78899 |
7 |
|
8 |
media-gfx/xdot: Rework live ebuild |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
media-gfx/xdot/xdot-9999.ebuild | 40 ++++++++++++++++++++++++++++++++-------- |
13 |
1 file changed, 32 insertions(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/media-gfx/xdot/xdot-9999.ebuild b/media-gfx/xdot/xdot-9999.ebuild |
16 |
index 6b682956a73..8842ac3a99a 100644 |
17 |
--- a/media-gfx/xdot/xdot-9999.ebuild |
18 |
+++ b/media-gfx/xdot/xdot-9999.ebuild |
19 |
@@ -1,23 +1,47 @@ |
20 |
-# Copyright 1999-2016 Gentoo Foundation |
21 |
+# Copyright 1999-2019 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=6 |
25 |
-PYTHON_COMPAT=( python2_7 ) |
26 |
+EAPI=7 |
27 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
28 |
|
29 |
-inherit distutils-r1 git-r3 |
30 |
+MY_PN=xdot.py |
31 |
+EGIT_REPO_URI="https://github.com/jrfonseca/${MY_PN}" |
32 |
+ |
33 |
+if [[ ${PV} = 9999* ]]; then |
34 |
+ GIT_ECLASS="git-r3" |
35 |
+ SRC_URI="" |
36 |
+else |
37 |
+ KEYWORDS="~amd64 ~x86" |
38 |
+ MY_P="${MY_PN}-${PV}" |
39 |
+ S="${WORKDIR}/${MY_P}" |
40 |
+ SRC_URI="https://github.com/jrfonseca/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+fi |
42 |
+ |
43 |
+inherit ${GIT_ECLASS} distutils-r1 |
44 |
|
45 |
DESCRIPTION="Interactive viewer for Graphviz dot files" |
46 |
HOMEPAGE="https://github.com/jrfonseca/xdot.py" |
47 |
-EGIT_REPO_URI="https://github.com/jrfonseca/xdot.py.git" |
48 |
|
49 |
LICENSE="LGPL-2+" |
50 |
SLOT="0" |
51 |
-KEYWORDS="" |
52 |
|
53 |
DEPEND=" |
54 |
dev-python/pycairo[${PYTHON_USEDEP}] |
55 |
- >=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}] |
56 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
57 |
dev-python/setuptools[${PYTHON_USEDEP}] |
58 |
- media-gfx/graphviz[${PYTHON_USEDEP}] |
59 |
+ media-gfx/graphviz |
60 |
" |
61 |
RDEPEND="${DEPEND}" |
62 |
+ |
63 |
+src_unpack() { |
64 |
+ default |
65 |
+ [[ $PV = 9999* ]] && git-r3_src_unpack |
66 |
+} |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ eapply_user |
70 |
+ |
71 |
+ # Don't require graphviz python(2) supprt, which xdot doesn't use. This allows xdot to support python3. |
72 |
+ # For more info, see https://bugs.gentoo.org/643126 |
73 |
+ sed -i "/install_requires=\['graphviz'\],/d" setup.py || die |
74 |
+} |