summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2012-01-27 15:49:02 +0000
committerThomas Sachau <tommy@gentoo.org>2012-01-27 15:49:02 +0000
commitacc77ca936242e5fcad359ea0807fe11f03df808 (patch)
tree57c3b7e765029ac4dd55502e16b0bfd23973ed10 /net-libs/polarssl
parentStable for amd64, wrt bug #400441 (diff)
downloadgentoo-2-acc77ca936242e5fcad359ea0807fe11f03df808.tar.gz
gentoo-2-acc77ca936242e5fcad359ea0807fe11f03df808.tar.bz2
gentoo-2-acc77ca936242e5fcad359ea0807fe11f03df808.zip
Version bump
(Portage version: 2.2.0_alpha84-r1/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/polarssl')
-rw-r--r--net-libs/polarssl/ChangeLog10
-rw-r--r--net-libs/polarssl/polarssl-1.1.1.ebuild66
2 files changed, 74 insertions, 2 deletions
diff --git a/net-libs/polarssl/ChangeLog b/net-libs/polarssl/ChangeLog
index d9f6bf27957e..c20faa643a7c 100644
--- a/net-libs/polarssl/ChangeLog
+++ b/net-libs/polarssl/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-libs/polarssl
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/polarssl/ChangeLog,v 1.23 2011/11/19 14:45:31 tommy Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/polarssl/ChangeLog,v 1.24 2012/01/27 15:49:02 tommy Exp $
+
+*polarssl-1.1.1 (27 Jan 2012)
+
+ 27 Jan 2012; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
+ +polarssl-1.1.1.ebuild:
+ Version bump
*polarssl-1.0.0 (19 Nov 2011)
diff --git a/net-libs/polarssl/polarssl-1.1.1.ebuild b/net-libs/polarssl/polarssl-1.1.1.ebuild
new file mode 100644
index 000000000000..3f0fa08d1e0c
--- /dev/null
+++ b/net-libs/polarssl/polarssl-1.1.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/polarssl/polarssl-1.1.1.ebuild,v 1.1 2012/01/27 15:49:02 tommy Exp $
+
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="Cryptographic library for embedded systems"
+HOMEPAGE="http://polarssl.org/"
+SRC_URI="http://polarssl.org/code/download/${P}-gpl.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="examples sse2"
+
+src_prepare() {
+# sed -i '/.SILENT:/d' Makefile */Makefile
+ epatch "${FILESDIR}"/${PN}-1.0.0-makefile.patch
+ cd library
+ if use sse2 ; then
+ sed -i '15iCFLAGS += -DHAVE_SSE2 -fPIC' Makefile
+ else
+ sed -i '15iCFLAGS += -fPIC' Makefile
+ fi
+}
+
+src_compile() {
+ emake -C library libpolarssl.so || die "emake failed"
+
+ if use examples ; then
+ emake -C programs all || die "emake failed"
+ fi
+ ln -s libpolarssl.so library/libpolarssl.so.0
+}
+
+src_test() {
+ cd programs
+ emake test/selftest || die "emake selftest failed"
+ LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:../library" ./test/selftest || die "selftest failed"
+ cd "${S}"
+ LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:../library" emake check || die
+}
+
+src_install() {
+ insinto /usr/include/polarssl
+ doins include/polarssl/*.h || die
+ dolib.so library/libpolarssl.so || die
+ ln -s libpolarssl.so "${D}"usr/$(get_libdir)/libpolarssl.so.0
+ dolib.a library/libpolarssl.a || die
+
+ if use examples ; then
+ for p in programs/*/* ; do
+ if [[ -x "${p}" && ! -d "${p}" ]] ; then
+ f=polarssl_`basename "${p}"`
+ newbin "${p}" "${f}" || die
+ fi
+ done
+ for e in aes hash pkey ssl test ; do
+ docinto "${e}"
+ dodoc programs/"${e}"/*.c || die
+ dodoc programs/"${e}"/*.txt || die
+ done
+ fi
+}