# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" DESCRIPTION="Synchronizing Key Server, a PGP keyserver written in OCAML" HOMEPAGE="http://www.nongnu.org/sks/" SRC_URI="http://sks-keyserver.googlecode.com/files/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="=dev-lang/ocaml-3.10.2 \ sys-libs/db" RDEPEND="${DEPEND}" src_compile() { # compilation breaks with parallel making MAKEOPTS="${MAKEOPTS} -j1" # find out DB-major-version and configure Makefile.local to use it BDBVER="$(best_version sys-libs/db|sed -e 's_^sys-libs/db-\(.\..\).*$_\1_')" einfo "using sys-libs/db-${BDBVER}" echo -e "LIBDB=-ldb-${BDBVER}\nexport LIBDB" > "${WORKDIR}/${P}/Makefile.local" emake dep || die "make dep failed" emake all || die "make all failed" } src_install() { # Makefile does not respect DESTDIR, so we must set up the needed variables emake "PREFIX=${D}/usr" "MANDIR=${D}/usr/share/man" install || die newinitd "${FILESDIR}"/sks.initd sks newconfd "${FILESDIR}"/sks.confd sks }