blob: 6c2088f1783f07dd8eb71f23797424b0031dcbba (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/cryptlib/cryptlib-3.0.ebuild,v 1.4 2004/06/24 23:03:30 agriffis Exp $
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${PV/./}.zip
doc? ( ftp://ftp.franken.de/pub/crypt/cryptlib/beta/manual.pdf )"
LICENSE="Sleepycat"
SLOT="0"
KEYWORDS="x86"
IUSE="static doc"
S=${WORKDIR}
src_unpack() {
# cant use unpack cause we need the '-a' option
unzip -qoa ${DISTDIR}/${A}
}
src_compile() {
export SCFLAGS="-fpic -c -D__UNIX__ -DNDEBUG -I. ${CFLAGS}"
export CFLAGS="-c -D__UNIX__ -DNDEBUG -I. ${CFLAGS}"
if use static ; then
make CFLAGS="${CFLAGS}" SCFLAGS="${SCFLAGS}" || die "could not make static"
fi
make shared CFLAGS="${CFLAGS}" SCFLAGS="${SCFLAGS}" || die "could not make shared"
}
src_install() {
dolib.so libcl.so*
use static && dolib.a libcl.a
insinto /usr/include ; doins cryptlib.h
dodoc readme.1st
}
|