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