version bump, general ebuild cleanup, optional manual is now uploaded to gentoo-mirro...
authorStefan Briesenick <sbriesen@gentoo.org>
Wed, 2 Nov 2005 03:38:45 +0000 (03:38 +0000)
committerStefan Briesenick <sbriesen@gentoo.org>
Wed, 2 Nov 2005 03:38:45 +0000 (03:38 +0000)
Package-Manager: portage-2.0.53_rc6

dev-libs/cryptlib/ChangeLog
dev-libs/cryptlib/Manifest
dev-libs/cryptlib/cryptlib-3.2.2.ebuild [new file with mode: 0644]
dev-libs/cryptlib/files/digest-cryptlib-3.2.2 [new file with mode: 0644]

index 4cf9d37e1d2f8f57919a85bc38aaea711ca1e6a1..f3b30fd4a8d2e442b90e8dc6bd9e72c0ee37c0a4 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for dev-libs/cryptlib
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/cryptlib/ChangeLog,v 1.10 2005/08/20 08:09:58 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/cryptlib/ChangeLog,v 1.11 2005/11/02 03:38:45 sbriesen Exp $
+
+*cryptlib-3.2.2 (02 Nov 2005)
+
+  02 Nov 2005; Stefan Briesenick <sbriesen@gentoo.org>
+  +cryptlib-3.2.2.ebuild:
+  version bump, general ebuild cleanup, optional manual is now uploaded to
+  gentoo-mirrors (original had no version tag), added ~amd64 (compiles fine
+  and seems to work).
 
 *cryptlib-3.2.1 (20 Aug 2005)
 
index 1123afe6d744be52aae4a7f3228cc30109f0b29a..d2495742532502ce8fd11a523da65a71a89041c4 100644 (file)
@@ -1,16 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 e8ee9d0e7d7080c18fb2fb83617b806f ChangeLog 2255
-MD5 1dedee7a3250a51625eecd30517141ae cryptlib-3.2.ebuild 1669
-MD5 243594eeb2106bc851cb98b68fbd0b3c metadata.xml 217
+MD5 912f12b0535afdf6c10530b3496b05d7 ChangeLog 2538
 MD5 e52f3dfabac86d07aaf126678d49af35 cryptlib-3.2.1.ebuild 1643
-MD5 e03b101c9f3f5cf0fcb1b32670788bdd files/digest-cryptlib-3.2.1 111
+MD5 e2c04e578ed9d6bc038a3c34024bf976 cryptlib-3.2.2.ebuild 1724
+MD5 1dedee7a3250a51625eecd30517141ae cryptlib-3.2.ebuild 1669
 MD5 ee1413d8c49650dde4b95ffe4b5bb8c6 files/digest-cryptlib-3.2 110
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFDBuVqmdTrptrqvGERAiBmAKCOyU9bR1JKO+avt9zZjyzwG8meQwCePV9a
-XPaBoCL3oImIAIohgMnK5zo=
-=xWk0
------END PGP SIGNATURE-----
+MD5 e03b101c9f3f5cf0fcb1b32670788bdd files/digest-cryptlib-3.2.1 111
+MD5 a07bc475f7e2fea3bd5a39e1f3bf763a files/digest-cryptlib-3.2.2 130
+MD5 243594eeb2106bc851cb98b68fbd0b3c metadata.xml 217
diff --git a/dev-libs/cryptlib/cryptlib-3.2.2.ebuild b/dev-libs/cryptlib/cryptlib-3.2.2.ebuild
new file mode 100644 (file)
index 0000000..d37eccd
--- /dev/null
@@ -0,0 +1,64 @@
+# 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.2.ebuild,v 1.1 2005/11/02 03:38:45 sbriesen Exp $
+
+inherit eutils multilib flag-o-matic
+
+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? ( mirror://gentoo/${P}-manual.pdf.bz2 )"
+
+LICENSE="Sleepycat"
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+IUSE="doc static"
+
+S="${WORKDIR}"
+
+DEPEND=">=sys-apps/sed-4
+       app-arch/unzip"
+RDEPEND=""
+
+src_unpack() {
+       # we need the -a option, so we can not use 'unpack'
+       unzip -qoa "${DISTDIR}/cl${MY_PV}.zip"
+       use doc && unpack "${P}-manual.pdf.bz2"
+
+       # we want our own CFLAGS) ;-)
+       sed -i -e "s:-m.*=pentium::g" -e "s:-fomit-frame-pointer::g" -e "s:-O2::g" \
+               -e "s:-O3::g" -e "s:-O4::g"     makefile || die "sed makefile failed"
+
+       # change 'make' to '$(MAKE)'
+       sed -i -e "s:@\?make:\$(MAKE):g" makefile || die "sed makefile failed"
+}
+
+src_compile() {
+       # we need at least -O2
+       replace-flags -O  -O2
+       replace-flags -Os -O2
+       replace-flags -O1 -O2
+       local MYCFLAGS="-c -D__UNIX__ -DNDEBUG -I. ${CFLAGS}"
+
+       if use static; then
+               emake -j1 CFLAGS="${MYCFLAGS}" SCFLAGS="${MYCFLAGS} -fPIC" || \
+                       die "emake static failed"
+       fi
+
+       emake -j1 shared CFLAGS="${MYCFLAGS}" SCFLAGS="${MYCFLAGS} -fPIC" || \
+               die "emake shared failed"
+}
+
+src_install() {
+       dolib.so "libcl.so.${PV}"
+       dosym "libcl.so.${PV}" "/usr/$(get_libdir)/libcl.so"
+       use static && dolib.a "libcl.a"
+
+       insinto /usr/include
+       doins cryptlib.h
+
+       dodoc README
+       use doc && newdoc "${P}-manual.pdf" "manual.pdf"
+}
diff --git a/dev-libs/cryptlib/files/digest-cryptlib-3.2.2 b/dev-libs/cryptlib/files/digest-cryptlib-3.2.2
new file mode 100644 (file)
index 0000000..77771da
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 0944963faae4566f54aeb45c6e803142 cl322.zip 3072208
+MD5 3e778b8d630d0cfe4c0717ced72a9057 cryptlib-3.2.2-manual.pdf.bz2 2348320