# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/bouml/Attic/bouml-4.16.4.ebuild,v 1.1 2009/12/31 17:33:51 ssuominen Exp $

EAPI=2
SLOT="0"
inherit multilib qt3
DESCRIPTION="[GIT] Free UML 2 tool with code generation"
HOMEPAGE="http://bouml.free.fr/"
SRC_URI="mirror://kde-sunset/bouml_4.22.2.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
IUSE=""

DEPEND="x11-libs/qt-meta:3"

S=${WORKDIR}/${MY_P}

src_compile() {
	find src/ genplugouts/ -type f -name "*.pro" | while read file; do
		local subdir="${file%/*}"
		eqmake3 "${file}" -o "${subdir}"/Makefile
		emake -C "${subdir}" || die "emake failed in ${subdir}"
	done
}

src_install() {
	emake BOUML_LIB="/usr/$(get_libdir)/bouml" DESTDIR="${D}" install || die
}