# 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="~amd64 ~x86" DEPEND=">=dev-lang/python-2.4 >=x11-libs/gtk+-2.8 >=dev-python/pygtk-2.8 >=net-zope/zopeinterface-3.0.1" # Additional docs not covered by distutils DOCS="AUTHORS NEWS" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-build.patch epatch ${FILESDIR}/${P}-setup.patch sed -i "s:os.path.join(self.install_dir, lang, 'LC_MESSAGES'):os.path.join('${D}', self.install_dir[1\:], lang, 'LC_MESSAGES'):" utils/command/install_mo.py || die } src_install () { distutils_src_install make_desktop_entry gaphor "Gaphor" /usr/share/gaphor/pixmaps/logo.png "GTK;Development;" }