# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-portage/maintainer-helper/maintainer-helper-0.1.2.ebuild,v 1.2 2008/04/21 19:16:36 jokey Exp $

EAPI="1"

inherit qt4 distutils

DESCRIPTION="An application to help with ebuild maintenance"
HOMEPAGE="http://dev.gentoo.org/~jokey/maintainer-helper"
SRC_URI="http://dev.gentoo.org/~jokey/maintainer-helper/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND=">=dev-lang/python-2.4
	|| ( >=x11-libs/qt-4.3:4 x11-libs/qt-gui:4 )
	>=dev-python/PyQt4-4.2
	>=sys-apps/pkgcore-0.3.1
	>=dev-python/snakeoil-0.1_rc2"

pkg_postinst() {
	distutils_pkg_postinst
	distutils_python_version
	elog "Currently gvim is hardcoded as editor, to change it, edit"
	elog "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/maintainer_helper/backend/tasks.py"
	elog "It will be a real setting in the next version"
}