Gentoo Archives: gentoo-commits

From: "Lars Weiler (pylon)" <pylon@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/xyssl: xyssl-0.9.ebuild
Date: Sat, 29 Mar 2008 23:35:10
Message-Id: E1JfkZn-00018Z-JD@stork.gentoo.org
1 pylon 08/03/29 23:35:07
2
3 Added: xyssl-0.9.ebuild
4 Log:
5 Version bump; security bug #214206.
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.1 net-libs/xyssl/xyssl-0.9.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xyssl/xyssl-0.9.ebuild?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xyssl/xyssl-0.9.ebuild?rev=1.1&content-type=text/plain
13
14 Index: xyssl-0.9.ebuild
15 ===================================================================
16 # Copyright 1999-2007 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18 # $Header: /var/cvsroot/gentoo-x86/net-libs/xyssl/xyssl-0.9.ebuild,v 1.1 2008/03/29 23:35:06 pylon Exp $
19
20 DESCRIPTION="Cryptographic library for embedded systems"
21 HOMEPAGE="http://xyssl.org/"
22 SRC_URI="http://xyssl.org/code/download/${P}-gpl.tgz"
23
24 LICENSE="GPL-2"
25 SLOT="0"
26 KEYWORDS="~ppc ~sparc ~x86"
27 IUSE="examples sse2"
28
29 DEPEND="virtual/libc"
30
31 src_compile() {
32 cd "${S}/library"
33 if use sse2 ; then
34 sed -i '15iCFLAGS += -DHAVE_SSE2 -fPIC' Makefile
35 else
36 sed -i '15iCFLAGS += -fPIC' Makefile
37 fi
38 emake libxyssl.a || die "emake failed"
39 emake libxyssl.so || die "emake failed"
40
41 if use examples ; then
42 cd "${S}"/programs
43 emake all
44 fi
45 }
46
47 src_test() {
48 cd "${S}"/programs
49 emake test/selftest
50 ./test/selftest || die "selftest failed"
51 }
52
53 src_install() {
54 dodir /usr/include/xyssl
55 insinto /usr/include/xyssl
56 doins include/xyssl/*.h
57 dolib.so library/libxyssl.so
58 dolib.a library/libxyssl.a
59
60 if use examples ; then
61 for p in programs/*/* ; do
62 if [ -x "${p}" ] ; then
63 f=xyssl_`basename "${p}"`
64 newbin "${p}" "${f}"
65 fi
66 done
67 for e in aes hash pkey ssl test ; do
68 docinto "${e}"
69 dodoc programs/"${e}"/*.c
70 dodoc programs/"${e}"/*.txt
71 done
72 fi
73 }
74
75
76
77 --
78 gentoo-commits@l.g.o mailing list