blob: 45e35db80b887b35ef55dc351a52dd010e7da578 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# 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.5.ebuild,v 1.5 2003/03/25 05:20:11 agriffis 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_unpack() {
unpack ${A}
cd ${S}
# This is also fixes for bug #3940. The included libltdl gives some
# errors during ./configure
rm -rf ${S}/libltdl
rm -f ${S}/config.{guess,status,sub}
libtoolize --ltdl --copy --force
# Try to fix some wierd build problems. See bug #3940.
echo ">>> Reconfiguring package..."
export WANT_AUTOMAKE_1_6=1
export WANT_AUTOCONF_2_5=1
autoreconf --force --install --symlink &>${T}/autoreconf.log || ( \
echo "DEBUG: working directory is: `pwd`" >>${T}/autoreconf.log
eerror "Reonfigure failed, please attatch the contents of:"
eerror
eerror " ${T}/autoreconf.log"
eerror
eerror "in your bugreport."
# we need an error here, else the ebuild do not die
exit 1
) || die "running autoreconf failed"
}
src_compile() {
# Doesn't work with --host bug #3517
econf --disable-posix-threads || die
# PHP manual states to disable posix threads, no further explanation
# given, but i'll stick with it :)
# (Source: http://www.php.net/manual/en/ref.mcrypt.php)
emake || die
}
src_install () {
dodir /usr/{bin,include,lib}
einstall || die
dodoc AUTHORS COPYING COPYING.LIB INSTALL NEWS README THANKS TODO
dodoc doc/README.* doc/example.c
}
|