# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Goldwater is a middleware that provides a scalable, distributed, intelligent message routing and queueing framework around which applications may be built." HOMEPAGE="http://www.nfluid.com/" SRC_URI="http://www.nfluid.com/download/src/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="perl pnet" DEPEND=">=dev-libs/phlib-1.20 >=sys-libs/readline-4.2 dev-libs/expat sys-fs/e2fsprogs perl? ( >=dev-lang/swig-1.3.0 ) pnet? ( >=dev-dotnet/pnet-0.6.2 )" src_compile() { local myconf # ugh... such a tired, bad way of doing this # An abuse of bash and portage at the same time... if [ "`grep perl /var/db/pkg/dev-lang/swig-*.*.*/USE`" ]; then use perl && myconf="${myconf} --with-perl" \ || myconf="${myconf} --without-perl"; else myconf="${myconf} --without-perl"; fi use pnet && myconf="${myconf} --with-pnet" \ || myconf="${myconf} --without-pnet" myconf="${myconf} --with-libuuid" econf ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { einstall || die "einstall failed" } pkg_postinst() { einfo "Goldwater makes heavy use of SysV IPC resources. Applications using Goldwater" einfo "usually require quite a few message queues to function." einfo "Therefore, you may want to change the number available to the system by adding" einfo "" einfo "kernel.msgmni = 128" einfo "" einfo "To your /etc/sysctl.conf" }