1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 DESCRIPTION="A C++-based object-oriented discrete event simulation."
6 HOMEPAGE="http://www.omnetpp.org/"
7 SRC_URI="http://www.omnetpp.org/download/release/${P}-src.tgz"
14 DEPEND="=dev-lang/tcl-8.4*
26 export PATH="${PATH}:${S}/bin"
27 export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${S}/lib"
28 export TCL_LIBRARY="$ROOT/usr/lib/tcl8.4"
29 econf || die 'econf failed'
30 emake || die 'error: emake failed'
38 insinto "/usr/share/doc/${P}/bitmaps"
39 doins -r bitmaps/* || die "error: installing data failed"
40 if use examples ; then
41 insinto "/usr/share/doc/${P}/samples"
42 doins -r samples/* || die "error: installing data failed"
43 for x in $(find ./samples -executable -type f); do
44 exeinto "/usr/share/doc/${P}/$(dirname ${x})"
51 if use examples ; then
53 einfo "In order to provide the samples"
54 einfo "please copy them to a user home directory."
55 einfo "The samples are located in:"
56 einfo " /usr/share/doc/${P}/samples"