summaryrefslogtreecommitdiff
blob: 90b78268c887a7f2e3edb1a90e52b54f30f1fce2 (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-2003 Gentoo Technologies, Inc.
# 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.1 2003/06/13 17:54:16 vapier 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
}