summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2009-06-15 20:19:28 +0000
committerBen de Groot <yngwin@gentoo.org>2009-06-15 20:19:28 +0000
commit51851080ed3fddc02e1fe5fa9c55d2d58bff4f31 (patch)
treec7ca1c14e9bfbf013a5045b38c8dcb3ccbfb5e94 /dev-util/qct
parentRemove garbage from previous commit. (diff)
downloadgentoo-2-51851080ed3fddc02e1fe5fa9c55d2d58bff4f31.tar.gz
gentoo-2-51851080ed3fddc02e1fe5fa9c55d2d58bff4f31.tar.bz2
gentoo-2-51851080ed3fddc02e1fe5fa9c55d2d58bff4f31.zip
Initial import from qting-edge overlay. Ebuild developed by Dror Levin and contributors in bug 162963.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/qct')
-rw-r--r--dev-util/qct/ChangeLog8
-rw-r--r--dev-util/qct/files/qct.rc3
-rw-r--r--dev-util/qct/metadata.xml16
-rw-r--r--dev-util/qct/qct-1.7.ebuild68
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-util/qct/ChangeLog b/dev-util/qct/ChangeLog
new file mode 100644
index 000000000000..ee201433aaa9
--- /dev/null
+++ b/dev-util/qct/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for dev-util/qct
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/qct/ChangeLog,v 1.1 2009/06/15 20:19:28 yngwin Exp $
+
+ 15 Jun 2009; Ben de Groot <yngwin@gentoo.org> +files/qct.rc:
+ Initial import from qting-edge overlay. Ebuild developed by Dror Levin and
+ contributors in bug 162963.
+
diff --git a/dev-util/qct/files/qct.rc b/dev-util/qct/files/qct.rc
new file mode 100644
index 000000000000..3ab69befa3c5
--- /dev/null
+++ b/dev-util/qct/files/qct.rc
@@ -0,0 +1,3 @@
+[extensions]
+hgext.qct=
+
diff --git a/dev-util/qct/metadata.xml b/dev-util/qct/metadata.xml
new file mode 100644
index 000000000000..7efdd1fc1e07
--- /dev/null
+++ b/dev-util/qct/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+ <use>
+ <flag name='bazaar'>
+ Support for <pkg>dev-util/bzr</pkg>
+ </flag>
+ <flag name='mercurial'>
+ Support for <pkg>dev-util/mercurial</pkg>
+ </flag>
+ <flag name='monotone'>
+ Support for <pkg>dev-util/monotone</pkg>
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/qct/qct-1.7.ebuild b/dev-util/qct/qct-1.7.ebuild
new file mode 100644
index 000000000000..d7678e4c677e
--- /dev/null
+++ b/dev-util/qct/qct-1.7.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/qct/qct-1.7.ebuild,v 1.1 2009/06/15 20:19:28 yngwin Exp $
+
+EAPI="2"
+NEED_PYTHON="2.4"
+inherit distutils
+
+DESCRIPTION="PyQt based commit tool for many VCSs"
+HOMEPAGE="http://qct.sourceforge.net/"
+SRC_URI="http://${PN}.sourceforge.net/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bazaar cvs mercurial monotone subversion"
+
+DEPEND="app-text/asciidoc
+ app-text/xmlto
+ dev-python/PyQt4
+ bazaar? ( dev-util/bzr )
+ cvs? ( dev-util/cvs )
+ mercurial? ( dev-util/mercurial )
+ monotone? ( dev-util/monotone )
+ subversion? ( dev-util/subversion )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ distutils_src_prepare
+
+ rm qctlib/vcs/p4.py
+
+ # support for git requires cogito which isn't in portage
+ rm qctlib/vcs/git.py
+ rm qctlib/vcs/cg.py
+
+ use bazaar || rm qctlib/vcs/bzr.py
+ use cvs || rm qctlib/vcs/cvs.py
+ use mercurial || rm qctlib/vcs/hg.py
+ use monotone || rm qctlib/vcs/mtn.py
+ use subversion || rm qctlib/vcs/svn.py
+}
+
+src_install() {
+ distutils_src_install
+
+ # needed for $PYVER
+ distutils_python_version
+
+ # manpage and html docs are built using asciidoc
+ make -C doc man html || die
+ doman doc/qct.1 || die
+ dohtml doc/qct.1.html || die
+
+ if use bazaar; then
+ insinto "$(python_get_sitedir)/bzrlib/plugins" || die
+ doins plugins/qctBzrPlugin.py || die
+ fi
+
+ if use mercurial; then
+ insinto "$(python_get_sitedir)/hgext" || die
+ doins hgext/qct.py || die
+ insinto /etc/mercurial/hgrc.d || die
+ doins "${FILESDIR}/qct.rc" || die
+ fi
+}