# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/beecrypt/beecrypt-4.1.2-r2.ebuild,v 1.10 2010/12/14 02:12:00 mattst88 Exp $ inherit flag-o-matic eutils multilib autotools java-pkg-opt-2 DESCRIPTION="general-purpose cryptography library" HOMEPAGE="http://sourceforge.net/projects/beecrypt" SRC_URI="mirror://sourceforge/beecrypt/${P}.tar.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="java nocxx python threads doc" COMMONDEPEND="python? ( >=dev-lang/python-2.2 ) ! ${BEECRYPT_CONF_FILE} make check || die "self test failed" make bench || die "self benchmark test failed" } src_install() { emake DESTDIR="${D}" install || die "make install failed" # Not needed rm -f "${D}"/usr/$(get_libdir)/python*/site-packages/_bc.*a dodoc BUGS README BENCHMARKS NEWS || die "dodoc failed" if use doc ; then dohtml -r docs/html/. || die "dohtml failed" fi }