# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # NOTES: # 1- use flag 'pgm' (OpenPGM support) must be masked by profiles for ARM archs; # 2- $(use_with pgm) doesn't work due to a broken configure.in (I'm fixing it # with upstream); # 3- libpgm is bundled inside 0MQ's source because the library isn't complete # and fully installable alone, so for now upstream has decided to bundle # it until libpgm can be packaged as a separate component; EAPI=3 WANT_AUTOCONF="2.5" inherit autotools DESCRIPTION="ZeroMQ is a brokerless messaging kernel with extremely high performance." HOMEPAGE="http://www.zeromq.org/" SRC_URI="http://download.zeromq.org/${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="pgm static-libs test" RDEPEND="" DEPEND="pgm? ( dev-util/pkgconfig net-libs/openpgm ) sys-apps/util-linux" src_prepare() { # epatch "${FILESDIR}/${P}"-configure.patch eautoreconf } src_configure() { local myconf use pgm && myconf="--with-pgm " econf \ $(use_enable static-libs static) \ ${myconf} \ ${EXTRA_ECONF} \ --disable-dependency-tracking } src_install() { emake DESTDIR="${D}" install || die "emake install failed." dodoc NEWS README AUTHORS ChangeLog || die "dodoc failed." # remove useless .la files find "${D}" -name '*.la' -delete # remove useless .a (only for non static compilation) use static-libs || find "${D}" -name '*.a' -delete }