# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 MY_P="${P}-Source" inherit cmake-utils DESCRIPTION="A graphical tool for designing finite state machines" HOMEPAGE="http://qfsm.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" RDEPEND="sys-libs/zlib >=x11-libs/qt-core-4.7 >=x11-libs/qt-qt3support-4.7 >=x11-libs/qt-svg-4.7 media-gfx/graphviz" DEPEND="${RDEPEND}" S="${WORKDIR}/${MY_P}" DOCS=( ChangeLog README TODO ) src_prepare() { # remove broken pre-generated Makefile rm Makefile || die 'rm Makefile failed' # fix desktop files sed -i -e '/Encoding/d' \ -e 's/\.png//' \ desktop/qfsm.desktop || die 'sed on qfsm.desktop failed' }