# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A free and efficient efficient library for ROHC compression" HOMEPAGE="http://launchpad.net/rohc" SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2 test? ( http://launchpad.net/${PN}/trunk/${PV}/+download/${PN}-tests-${PV}.tar.bz2 )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~arm" IUSE="rtp-bit-type test debug" DEPEND="test? ( net-libs/libpcap )" src_prepare() { use test && unpack ${PN}-tests-${PV}.tar.bz2 } src_compile() { local myconf myconf=" $(use_enable rtp-bit-type) $(use_enable test rohc-tests)" # configure log level if use debug ; then myconf="${myconf} --enable-rohc-debug=3" else myconf="${myconf} --enable-rohc-debug=0" fi econf ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "installation failed" for lib in common comp decomp ; do rm -f ${D}/usr/lib/librohc_${lib}.la done dodoc README INSTALL NEWS COPYING AUTHORS ChangeLog }