--- lirc-0.8.5.ebuild 2009-07-13 01:23:16.000000000 +0200 +++ lirc-0.8.5-r1.ebuild 2009-07-13 01:09:59.000000000 +0200 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.5.ebuild,v 1.4 2009/07/11 00:08:13 chainsaw Exp $ -inherit eutils linux-mod flag-o-matic autotools +inherit eutils multilib linux-mod flag-o-matic autotools DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" HOMEPAGE="http://www.lirc.org/" @@ -274,6 +274,10 @@ src_unpack() { done echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h + # prepare pkgconfig file + sed -e "s/%VER%/${PV}/" "${FILESDIR}"/liblircclient0.pc \ + > liblircclient0.pc || die "sed .pc failed" + eautoreconf } @@ -298,6 +302,9 @@ src_install() { insinto /usr/share/lirc/remotes doins -r remotes/* + + insinto /usr/$(get_libdir)/pkgconfig + doins liblircclient0.pc } pkg_preinst() {