diff options
Diffstat (limited to 'dev-libs/cryptlib/cryptlib-3.1.ebuild')
-rw-r--r-- | dev-libs/cryptlib/cryptlib-3.1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-libs/cryptlib/cryptlib-3.1.ebuild b/dev-libs/cryptlib/cryptlib-3.1.ebuild new file mode 100644 index 000000000000..4ad66ebac00a --- /dev/null +++ b/dev-libs/cryptlib/cryptlib-3.1.ebuild @@ -0,0 +1,49 @@ +# 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.1.ebuild,v 1.1 2004/11/04 09:53:08 dragonheart Exp $ + +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" + +LICENSE="Sleepycat" +KEYWORDS="~x86" +SLOT="0" + +IUSE="static" + +DEPEND=">=sys-apps/sed-4 + app-arch/zip" +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* || die "dolib.so failed" + 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" +} |