public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/xdot/
Date: Tue,  9 Apr 2019 15:44:05 +0000 (UTC)	[thread overview]
Message-ID: <1554824558.c8e78899ede4fc19cef475e9043b55afd844778f.mattst88@gentoo> (raw)

commit:     c8e78899ede4fc19cef475e9043b55afd844778f
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  9 15:35:18 2019 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Tue Apr  9 15:42:38 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e78899

media-gfx/xdot: Rework live ebuild

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 media-gfx/xdot/xdot-9999.ebuild | 40 ++++++++++++++++++++++++++++++++--------
 1 file changed, 32 insertions(+), 8 deletions(-)

diff --git a/media-gfx/xdot/xdot-9999.ebuild b/media-gfx/xdot/xdot-9999.ebuild
index 6b682956a73..8842ac3a99a 100644
--- a/media-gfx/xdot/xdot-9999.ebuild
+++ b/media-gfx/xdot/xdot-9999.ebuild
@@ -1,23 +1,47 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-PYTHON_COMPAT=( python2_7 )
+EAPI=7
+PYTHON_COMPAT=( python3_{5,6,7} )
 
-inherit distutils-r1 git-r3
+MY_PN=xdot.py
+EGIT_REPO_URI="https://github.com/jrfonseca/${MY_PN}"
+
+if [[ ${PV} = 9999* ]]; then
+	GIT_ECLASS="git-r3"
+	SRC_URI=""
+else
+	KEYWORDS="~amd64 ~x86"
+	MY_P="${MY_PN}-${PV}"
+	S="${WORKDIR}/${MY_P}"
+	SRC_URI="https://github.com/jrfonseca/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+inherit ${GIT_ECLASS} distutils-r1
 
 DESCRIPTION="Interactive viewer for Graphviz dot files"
 HOMEPAGE="https://github.com/jrfonseca/xdot.py"
-EGIT_REPO_URI="https://github.com/jrfonseca/xdot.py.git"
 
 LICENSE="LGPL-2+"
 SLOT="0"
-KEYWORDS=""
 
 DEPEND="
 	dev-python/pycairo[${PYTHON_USEDEP}]
-	>=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}]
+	dev-python/pygobject:3[${PYTHON_USEDEP}]
 	dev-python/setuptools[${PYTHON_USEDEP}]
-	media-gfx/graphviz[${PYTHON_USEDEP}]
+	media-gfx/graphviz
 "
 RDEPEND="${DEPEND}"
+
+src_unpack() {
+	default
+	[[ $PV = 9999* ]] && git-r3_src_unpack
+}
+
+src_prepare() {
+	eapply_user
+
+	# Don't require graphviz python(2) supprt, which xdot doesn't use. This allows xdot to support python3.
+	# For more info, see https://bugs.gentoo.org/643126
+	sed -i "/install_requires=\['graphviz'\],/d" setup.py || die
+}


             reply	other threads:[~2019-04-09 15:44 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-09 15:44 Matt Turner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-11 15:41 [gentoo-commits] repo/gentoo:master commit in: media-gfx/xdot/ Matt Turner
2024-06-21  4:23 Arthur Zamarin
2024-06-20 21:46 Sam James
2024-06-20 20:28 Arthur Zamarin
2024-06-20 18:40 Arthur Zamarin
2024-06-20 17:11 Sam James
2024-06-20 16:22 Sam James
2024-05-17 16:00 Matt Turner
2024-05-17 16:00 Matt Turner
2024-04-25 18:49 Matt Turner
2023-11-07 20:35 Sam James
2023-10-13 14:14 Arthur Zamarin
2023-10-13  3:13 Sam James
2023-10-13  3:10 Sam James
2023-10-13  3:10 Sam James
2023-10-13  3:10 Sam James
2023-09-10  3:27 Matt Turner
2023-09-10  3:27 Matt Turner
2023-05-30  3:22 Matt Turner
2023-04-11  1:28 Matt Turner
2023-04-11  1:28 Matt Turner
2023-04-11  1:28 Matt Turner
2023-03-07 16:36 Arthur Zamarin
2023-03-04  9:29 Arthur Zamarin
2023-01-03  2:53 WANG Xuerui
2023-01-03  2:53 WANG Xuerui
2022-12-04  3:16 Matt Turner
2022-11-18 15:14 Arthur Zamarin
2022-10-29 17:44 Matt Turner
2022-10-22 14:54 Michał Górny
2022-09-10 18:28 Arthur Zamarin
2022-09-08  5:19 Sam James
2021-09-02 17:06 Marek Szuba
2021-08-19 18:55 Matt Turner
2021-08-19 18:55 Matt Turner
2021-02-26 23:56 Matt Turner
2021-01-02 22:09 Sam James
2020-12-27  4:56 Sam James
2020-12-27  4:54 Sam James
2020-12-27  4:09 Sam James
2020-11-22  2:31 Matt Turner
2020-11-22  2:31 Matt Turner
2020-11-22  2:31 Matt Turner
2020-11-22  2:31 Matt Turner
2020-07-17 21:19 Matt Turner
2020-07-17 21:19 Matt Turner
2020-07-13 23:13 Sam James
2020-07-06 11:57 Michał Górny
2020-06-22 19:05 Mart Raudsepp
2020-06-04 14:06 Michał Górny
2020-05-30 20:33 Sergei Trofimovich
2020-05-30 16:20 Michał Górny
2020-04-28 19:23 Mart Raudsepp
2020-03-31  7:38 Georgy Yakovlev
2019-08-06 17:40 Matt Turner
2019-08-06 17:40 Matt Turner
2019-04-09 15:44 Matt Turner
2019-04-09 15:44 Matt Turner
2019-04-09 15:18 Matt Turner
2019-04-09  3:14 Austin English
2018-09-19  6:02 Matt Turner
2018-09-19  6:02 Matt Turner
2018-09-05 22:06 Austin English
2016-05-17 22:15 Austin English
2016-05-17 21:53 Austin English
2016-04-07  6:14 Austin English

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1554824558.c8e78899ede4fc19cef475e9043b55afd844778f.mattst88@gentoo \
    --to=mattst88@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox