# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Loki Software product registry database - CVS snapshot" HOMEPAGE="http://www.icculus.org/loki_setup/" # please change the URI to one of your servers SRC_URI="http://homepage.rub.de/Alexander.Linke-2/tmp/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" # this may also work on other arches, maybe ppc? KEYWORDS="~x86" IUSE="" DEPEND="dev-libs/libxml" S=${WORKDIR}/loki_setupdb src_compile() { ./autogen.sh || "autogen.sh failed." MAKEOPTS="all setupdb $MAKEOPTS" econf || die "econf failed." emake || die "emake failed" } src_install() { # determine user's arch: arch=`echo "$ACCEPT_KEYWORDS" | sed -e 's/~//' | sed -e 's/\s.*$//'` einfo "loki_setupdb was compiled for $arch." [ -z "$arch" ] && die "cannot determine arch." # the following dir-structure is needed to make sure that # loki_setupdb is recognized by loki_patch: SETUPDB_DIR=usr/share/loki_setupdb/ dodir ${SETUPDB_DIR}/include insinto ${SETUPDB_DIR}/include doins *.h || die "doins failed." dodir ${SETUPDB_DIR}/${arch} insinto ${SETUPDB_DIR}/${arch} doins ${arch}/libsetupdb.a ${arch}/arch.o ${arch}/md5.o ${arch}/setupdb.o \ || die "doins failed." exeinto /usr/bin doexe setupdb || die "doexe failed." dodoc CHANGES README || die "dodoc failed." }