# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils 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:4.6" RDEPEND="${DEPEND}" src_compile() { MAKEOPTS="${MAKEOPTS} -j1" echo -e 'LIBDB=-ldb-4.7\nexport LIBDB' > "${WORKDIR}/${P}/Makefile.local" #sed -i -e 's/LIBDB=-ldb-4\.6/LIBDB=-ldb-4.7/' "${WORKDIR}/${P}/bdb/Makefile" emake dep || die "make dep failed" emake all || die "make all failed" } src_install() { emake "PREFIX=${D}/usr" "MANDIR=${D}/usr/share/man" install || die newinitd "${FILESDIR}"/sks.init sks }