blob: 582f4f64163c02be3f277b9a59e594e663a8c21d (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/cryptlib/cryptlib-3.2.ebuild,v 1.2 2005/08/20 08:09:58 dragonheart Exp $
inherit multilib
S=${WORKDIR}
MY_PV=${PV/./}
DESCRIPTION="Powerful security toolkit for adding encryption to software"
HOMEPAGE="http://www.cs.auckland.ac.nz/~pgut001/cryptlib/"
SRC_URI="ftp://ftp.franken.de/pub/crypt/cryptlib/cl${MY_PV}.zip
doc? ( ftp://ftp.franken.de/pub/crypt/cryptlib/manual.pdf )"
LICENSE="Sleepycat"
KEYWORDS="~x86"
SLOT="0"
IUSE="doc static"
DEPEND=">=sys-apps/sed-4
app-arch/unzip"
RDEPEND=""
src_unpack() {
# Can't use unpack because we need the '-a' option
unzip -qoa ${DISTDIR}/cl${MY_PV}.zip
sed -i \
-e 's/make endian/$(MAKE) endian/' \
-e 's/make TARGET/$(MAKE) TARGET/' makefile || \
die "sed makefile failed"
}
src_compile() {
export SCFLAGS="-fPIC -c -D__UNIX__ -DNDEBUG -I. ${CFLAGS}"
export CFLAGS="-c -D__UNIX__ -DNDEBUG -I. ${CFLAGS}"
if useq static ; then
emake CFLAGS="${CFLAGS}" SCFLAGS="${SCFLAGS}" || \
die "emake static failed"
fi
emake shared CFLAGS="${CFLAGS}" SCFLAGS="${SCFLAGS}" || \
die "emake shared failed"
}
src_install() {
dolib.so libcl.so.3.2.0 || die "dolib.so failed"
dosym /usr/$(get_libdir)/libcl.so.3.2.0 /usr/$(get_libdir)/libcl.so
if useq static ; then
dolib.a libcl.a || die "dolib.a failed"
fi
insinto /usr/include
doins cryptlib.h || die "doins failed"
dodoc README || die "dodoc failed"
if useq doc ; then
dodoc ${DISTDIR}/manual.pdf || die "dodoc failed (manual.pdf)"
fi
}
|