# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit kde-functions eutils MY_P=${P} S=${WORKDIR}/${MY_P} DESCRIPTION="A Finite State Machine Compilers to C++ and Python based upon Qt." SRC_URI="http://aleron.dl.sourceforge.net/sourceforge/fsme/${MY_P}.tar.bz2" HOMEPAGE="http://fsme.sf.net" LICENSE="GPL" SLOT="0" IUSE="python" KEYWORDS="~x86" DEPEND="python? ( >=dev-lang/python-2.2 )" need-qt 3 src_unpack() { unpack ${A} cd ${S} qmake } src_compile() { ### borrowed from kde.eclass # # # fix the sandbox errors "can't writ to .kde or .qt" problems. # this is a fake homedir that is writeable under the sandbox, so that the build process # can do anything it wants with it. REALHOME="$HOME" mkdir -p $T/fakehome/.kde mkdir -p $T/fakehome/.qt export HOME="$T/fakehome" # things that should access the real homedir [ -d "$REALHOME/.ccache" ] && ln -sf "$REALHOME/.ccache" "$HOME/" # gcc seems to be always installed cd cpp qmake emake || die cd .. if [ `use python` ] ; then cd python qmake emake || die cd .. fi } src_install () { dobin fsmc chmod ugo+rx fsmc if [ `use python` ] ; then dobin pyfsmc chmod ugo+rx pyfsmc fi dodoc COPYING }