# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Nettle is a cryptographic library that is designed to fit easily in more or less any context"
HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/"
SRC_URI="http://www.lysator.liu.se/~nisse/archive/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc"
IUSE=""

DEPEND="virtual/libc
	dev-libs/gmp"

pkg_setup() {

	if has_version '<dev-libs/lsh-1.4.3-r1'; then
		eerror "You have dev-libs/lsh installed on your system"
		eerror "Because of a file name conflict with lsh ebuilds prior to"
		eerror "dev-libs/lsh-1.4.3-r1 you need to update your lsh package to"
		eerror "at least this version"
		die "Update your dev-libs/lsh package to >=1.4.3-r1"
	fi
}

src_install() {
	einstall || die

	dodoc AUTHORS ChangeLog INSTALL NEWS README
}