/[gentoo-x86]/net-libs/cyassl/cyassl-2.5.0.ebuild
Gentoo

Contents of /net-libs/cyassl/cyassl-2.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Feb 6 03:16:53 2013 UTC (18 months, 2 weeks ago) by blueness
Branch: MAIN
Changes since 1.1: +4 -3 lines
Fix silent-rules, bug #449016

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/cyassl/cyassl-2.5.0.ebuild,v 1.1 2013/02/06 03:03:27 blueness Exp $
4
5 EAPI="5"
6
7 WANT_AUTOMAKE=1.12
8
9 inherit autotools eutils
10
11 DESCRIPTION="Lightweight SSL/TLS library targeted at embedded and RTOS environments"
12 HOMEPAGE="http://www.yassl.com/yaSSL/Home.html"
13 SRC_URI="http://dev.gentoo.org/~blueness/${PN}/${P}.zip"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
18
19 #Add CRYPTO_OPTS=ecc when fixed
20 CACHE_SIZE="small big +huge"
21 CRYPTO_OPTS="aes-gcm aes-ccm aes-ni camellia +hc128 md2 +psk +ripemd sha512"
22 CERT_OPTS="ocsp crl crl-monitor +sessioncerts +testcert"
23 IUSE="debug -dtls ipv6 +httpd +sniffer static-libs threads +zlib cyassl-hardening ${CACHE_SIZE} ${CRYPTO_OPTS} ${CERT_OPTS} test"
24
25 #You can only pick one cach size
26 #sha512 is broken on x86
27 #Testing freezes with dtls
28 REQUIRED_USE="^^ ( small big huge )
29 test? ( !dtls )"
30
31 DEPEND="app-arch/unzip
32 sniffer? ( net-libs/libpcap )
33 zlib? ( sys-libs/zlib )"
34 RDEPEND="${DEPEND}"
35
36 src_prepare() {
37 epatch "${FILESDIR}"/${PN}-2.0.8-disable-testsuit-ifnothreads.patch
38
39 #Bug #454300
40 epatch "${FILESDIR}"/${PN}-2.4.6-respect-CFLAGS.patch
41 eautoreconf
42 }
43
44 src_configure() {
45 local myconf=()
46
47 if use threads; then
48 myconf+=( --disable-singleThreaded )
49 else
50 myconf+=( --enable-singleThreaded )
51 fi
52
53 if use amd64; then
54 myconf+=( --enable-fastmath --enable-fasthugemath --enable-bump )
55 elif use x86; then
56 #not pie friendly, sorry x86, no fast math for you :(
57 myconf+=( --disable-fastmath --disable-fasthugemath --disable-bump )
58 fi
59
60 #There are lots of options, so we'll force a few reasonable
61 #We may change this in the future, in particular ecc needs to be fixed
62 econf \
63 --disable-silent-rules \
64 --enable-opensslExtra \
65 --enable-fortress \
66 --enable-keygen \
67 --enable-certgen \
68 --disable-debug \
69 --disable-ecc \
70 --disable-ntru \
71 --disable-noFilesystem \
72 --disable-noInline \
73 $(use_enable debug) \
74 $(use_enable small smallcache) \
75 $(use_enable big bigcache) \
76 $(use_enable huge hugecache) \
77 $(use_enable aes-gcm aesgcm) \
78 $(use_enable aes-ccm aesccm) \
79 $(use_enable aes-ni aesni) \
80 $(use_enable camellia) \
81 $(use_enable hc128) \
82 $(use_enable md2) \
83 $(use_enable psk) \
84 $(use_enable ripemd) \
85 $(use_enable sha512) \
86 $(use_enable dtls) \
87 $(use_enable ipv6) \
88 $(use_enable httpd webServer) \
89 $(use_enable ocsp) \
90 $(use_enable crl) \
91 $(use_enable crl-monitor) \
92 $(use_enable sessioncerts) \
93 $(use_enable sniffer) \
94 $(use_enable testcert) \
95 $(use_enable static-libs static) \
96 $(use_enable cyassl-hardening gcc-hardening) \
97 $(use_with zlib libz) \
98 "${myconf[@]}"
99 }
100
101 src_test() {
102 "${S}"/tests/unit
103 "${S}"/ctaocrypt/benchmark/benchmark
104 }
105
106 src_install() {
107 default
108
109 mv "${D}"/usr/share/doc/"${PN}"/* \
110 "${D}"/usr/share/doc/"${P}"/
111 rmdir "${D}"/usr/share/doc/"${PN}"/
112 }

  ViewVC Help
Powered by ViewVC 1.1.20