public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/betagarden:master commit in: dev-vcs/git-cola/
Date: Mon, 29 Apr 2013 09:04:29 +0000 (UTC)	[thread overview]
Message-ID: <1367226069.6fb6bae926d5020def20d28827c345094405286c.jlec@gentoo> (raw)

commit:     6fb6bae926d5020def20d28827c345094405286c
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 29 09:01:09 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Apr 29 09:01:09 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=6fb6bae9

dev-vcs/git-cola: Version BUmp and move to new python eclasses

Package-Manager: portage-2.2.0_alpha173

---
 dev-vcs/git-cola/ChangeLog            |    3 +
 dev-vcs/git-cola/git-cola-9999.ebuild |   74 +++++++++++++++-----------------
 2 files changed, 38 insertions(+), 39 deletions(-)

diff --git a/dev-vcs/git-cola/ChangeLog b/dev-vcs/git-cola/ChangeLog
index d4a36ea..4acdac3 100644
--- a/dev-vcs/git-cola/ChangeLog
+++ b/dev-vcs/git-cola/ChangeLog
@@ -2,6 +2,9 @@
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/cola/ChangeLog,v 1.8 2011/04/13 19:00:02 jlec Exp $
 
+  29 Apr 2013; Justin Lecher <jlec@gentoo.org> git-cola-9999.ebuild:
+  Version BUmp and move to new python eclasses
+
   15 Jan 2013; Justin Lecher <jlec@gentoo.org> git-cola-9999.ebuild,
   metadata.xml:
   Correct github owner

diff --git a/dev-vcs/git-cola/git-cola-9999.ebuild b/dev-vcs/git-cola/git-cola-9999.ebuild
index b5f3fa5..ef647ba 100644
--- a/dev-vcs/git-cola/git-cola-9999.ebuild
+++ b/dev-vcs/git-cola/git-cola-9999.ebuild
@@ -2,17 +2,17 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/cola/cola-1.4.3.2.ebuild,v 1.1 2011/04/13 19:00:02 jlec Exp $
 
-EAPI=4
+EAPI=5
 
-PYTHON_DEPEND="2"
+PYTHON_COMPAT=( python{2_6,2_7} )
+DISTUTILS_SINGLE_IMPL=true
 
-EGIT_REPO_URI="git://github.com/git-cola/git-cola.git"
-
-inherit distutils eutils git-2
+inherit distutils-r1 git-2
 
 DESCRIPTION="The highly caffeinated git GUI"
 HOMEPAGE="http://git-cola.github.com/"
 SRC_URI=""
+EGIT_REPO_URI="git://github.com/git-cola/git-cola.git"
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -20,27 +20,27 @@ KEYWORDS=""
 IUSE="doc test"
 
 RDEPEND="
-	dev-python/jsonpickle
-	dev-python/pyinotify
-	dev-python/PyQt4
+	dev-python/jsonpickle[${PYTHON_USEDEP}]
+	dev-python/pyinotify[${PYTHON_USEDEP}]
+	dev-python/PyQt4[${PYTHON_USEDEP}]
 	dev-vcs/git"
 DEPEND="${RDEPEND}
 	doc? (
 		app-text/asciidoc
-		dev-python/sphinx
+		dev-python/sphinx[${PYTHON_USEDEP}]
 		app-text/xmlto )
 	sys-devel/gettext
-	test? ( dev-python/nose )"
+	test? ( dev-python/nose[${PYTHON_USEDEP}] )"
 
 # tests currently broken due to unfinished translation framework
 RESTRICT="test"
 
-pkg_setup() {
-	python_set_active_version 2
-	python_pkg_setup
-}
+PATCHES=(
+	"${FILESDIR}"/${PV}-disable-tests.patch
+	"${FILESDIR}"/${PV}-system-ssh-askpass.patch
+	)
 
-src_prepare() {
+python_prepare_all() {
 	# don't install docs into wrong location
 	sed -i \
 		-e '/doc/d' \
@@ -50,49 +50,45 @@ src_prepare() {
 		-e  "s|'doc', 'git-cola'|'doc', '${PF}', 'html'|" \
 		cola/resources.py || die "sed failed"
 
-	epatch \
-	"${FILESDIR}"/9999-disable-tests.patch \
-	"${FILESDIR}"/9999-system-ssh-askpass.patch
-
-	python_convert_shebangs 2 bin/git-cola bin/git-dag
+	distutils-r1_python_prepare_all
 }
 
-src_compile() {
-	distutils_src_compile
-
+python_compile_all() {
+	cd share/doc/${PN}/
 	if use doc ; then
-		cd share/doc/git-cola/
 		emake all
+	else
+		sed \
+			-e '/^install:/s:install-html::g' \
+			-i Makefile || die
 	fi
 }
 
-src_install() {
-	distutils_src_install
-
-	dodoc share/doc/git-cola/*.txt
+python_install_all() {
+	cd share/doc/${PN}/
+	emake \
+		DESTDIR="${D}" \
+		docdir="${EPREFIX}/usr/share/doc/${PF}" \
+		prefix="${EPREFIX}/usr" \
+		install
 
 	if use doc ; then
-		dohtml -r _build/html/*
-		doman *.1
+		HTML_DOCS=( share/doc/${PN}/_build/html/. )
 	else
-		dohtml "${FILESDIR}/index.html"
+		HTML_DOCS=( "${FILESDIR}"/index.html )
 	fi
+
+	distutils-r1_python_install_all
 }
 
-src_test() {
+python_test() {
 	PYTHONPATH="${S}:${S}/build/lib:${PYTHONPATH}" LC_ALL="C" nosetests \
 		--verbose --with-doctest --with-id --exclude=jsonpickle --exclude=json \
 		|| die "running nosetests failed"
 }
 
 pkg_postinst() {
-	python_mod_optimize /usr/share/git-cola/lib/cola
-
 	elog "Please make sure you have either a SSH key management installed and activated or"
 	elog "installed a SSH askpass app like net-misc/x11-ssh-askpass."
-	elog "Otherwise git-cola may hang when pushing/pulling from remote git repositories via SSH. "
-}
-
-pkg_postrm() {
-	python_mod_cleanup /usr/share/git-cola/lib/cola
+	elog "Otherwise ${PN} may hang when pushing/pulling from remote git repositories via SSH. "
 }


             reply	other threads:[~2013-04-29  9:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-29  9:04 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-02-11  8:33 [gentoo-commits] proj/betagarden:master commit in: dev-vcs/git-cola/ Justin Lecher
2016-02-11  8:33 Justin Lecher
2016-01-25  7:35 Justin Lecher
2014-08-20  0:30 Sebastian Pipping
2014-08-11  7:08 Justin Lecher
2014-02-25 19:19 Justin Lecher
2014-02-24  8:29 Justin Lecher
2014-01-29 11:56 Justin Lecher
2013-10-23  6:40 Justin Lecher
2013-04-29  9:04 Justin Lecher
2013-01-15  9:42 Justin Lecher

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=1367226069.6fb6bae926d5020def20d28827c345094405286c.jlec@gentoo \
    --to=jlec@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