summaryrefslogtreecommitdiff
blob: 74613a77e21413a30cc6a94616914eea0a735d5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmcrypt/libmcrypt-2.5.7.ebuild,v 1.2 2003/07/12 09:22:22 aliz Exp $

inherit libtool

S=${WORKDIR}/${P}
DESCRIPTION="libmcrypt is a library that provides uniform interface to access several encryption algorithms."
SRC_URI="ftp://mcrypt.hellug.gr/pub/mcrypt/libmcrypt/${P}.tar.gz"
HOMEPAGE="http://mcrypt.hellug.gr/"

DEPEND=">=sys-devel/automake-1.6.1
	>=sys-devel/libtool-1.4.1-r8"
IUSE=""
SLOT="0"
LICENSE="GPL-2 LGPL-2.1"
KEYWORDS="x86 ~sparc ~ppc ~hppa ~alpha"

src_compile() {

	local myconf
	myconf=""
	use pic && myconf="${myconf} --with-pic"
	econf ${myconf} || die "configure failure"

	emake || die "make failure"
}

src_install () {

	dodir /usr/{bin,include,lib}

	einstall || die "install failure"

	dodoc AUTHORS KNOWN-BUGS COPYING COPYING.LIB INSTALL NEWS README THANKS TODO ChangeLog
	dodoc doc/README.* doc/example.c
	prepalldocs
}