# Copyright 2002 Alexander Holler # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /var/cvsroot/gentoo-x86/sys-apps/checkinstall/checkinstall-1.6.0.ebuild,v 1.1 2005/12/21 21:04:13 egore Exp $ CHECKINST_PV="0.7.0beta4" DESCRIPTION="CheckInstall installations tracker" HOMEPAGE="http://checkinstall.izto.org/" SRC_URI="http://checkinstall.izto.org/files/source/${P}.tgz" LICENSE="GPL-2" SLOT="0" RDEPEND="app-arch/rpm" DEPEND="virtual/libc" KEYWORDS="~x86" src_compile() { emake PREFIX=/usr || die "compile problem" } src_install () { dosbin makepak sed -i \ -e 's:/usr/local/lib/:/usr/lib/:' \ -e 's:INSTALLWATCH_PREFIX="/usr/local":INSTALLWATCH_PREFIX="/usr":' \ -e 's:MAKEPKG=/usr/local/sbin/makepak:MAKEPKG=/usr/sbin/makepak:' \ checkinstall || die "sed checkinstall failed" dosbin checkinstall || die "failed installing checkinstall" dolib.so installwatch-${CHECKINST_PV}/installwatch.so || die "dolib failed" sed -i \ -e 's:#PREFIX#:/usr:' \ installwatch-${CHECKINST_PV}/installwatch || die "sed installwatch failed" newbin installwatch-${CHECKINST_PV}/installwatch installwatch || die "failed installing installwatch" insinto /usr/lib/checkinstall sed -e 's:INSTALLWATCH_PREFIX="/usr/local":INSTALLWATCH_PREFIX="/usr":' \ checkinstallrc-dist > checkinstallrc || die "sed checkinstallrc failed" doins checkinstallrc || die "installing checkinstallrc failed" dodoc doc-pak/* docinto installwatch-${CHECKINST_PV}; dodoc doc-pak/* }