# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit qt3 eutils DESCRIPTION="QFSM - QT Finite State Machine Editor" HOMEPAGE="http://qfsm.sf.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" #DEPEND="" S=${WORKDIR}/${P} MAKEOPTS="-j1" src_unpack() { unpack ${A} cd ${S}/src sed -i -e '/qDebug/d' GState.cpp || die "sed" ln -snf WSpinBox.h wspinbox.h } src_install() { dodir /usr/bin cp src/qfsm ${D}/usr/bin dodir /usr/share/${P}/po cp po/*.qm po/*.ts ${D}/usr/share/${P}/po dodir /usr/share/${P}/examples cp examples/*.fsm ${D}/usr/share/${P}/examples dodir /etc/env.d echo "QFSMDIR=/usr/share/${P}" > ${D}/etc/env.d/99qtfsm doicon kde/qfsm_64.xpm make_desktop_entry qfsm "QFSM" kde/qfsm_64.xpm }