# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils DESCRIPTION="UML 2.0 modeling tool for GNOME" HOMEPAGE="http://gaphor.sf.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" IUSE="" KEYWORDS="~x86" DEPEND=">=dev-lang/python-2.2 >=x11-libs/gtk+-2.8 >=dev-python/pygtk-2.8 >=dev-python/gnome-python-2 >=x11-libs/diacanvas-0.14.3" DOCS="AUTHORS NEWS README TODO" pkg_setup() { if ! built_with_use x11-libs/diacanvas python; then echo eerror "Gaphor requires python bindings to x11-libs/diacanvas." eerror "To install Gaphor, recompile x11-libs/diacanvas with the" eerror "\"python\" USE flag enabled." die "enable USE=\"python\" in x11-libs/diacanvas" fi } src_install() { distutils_src_install echo "DATA_DIR=\"/usr/share/${PN}\"" >> \ ${D}/usr/lib/python*/site-packages/${PN}/version.py make_desktop_entry gaphor "Gaphor" /usr/share/gaphor/pixmaps/logo.png \ "Application;Development;" }