blob: 0c169bd993b4ab5dc6cb898c7923fd62d62d39a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/eet/eet-1.4.0_beta2.ebuild,v 1.1 2010/11/18 13:26:19 tommy Exp $
EAPI=2
MY_P=${P/_beta/.beta}
inherit enlightenment
DESCRIPTION="E file chunk reading/writing library"
HOMEPAGE="http://trac.enlightenment.org/e/wiki/Eet"
SRC_URI="http://download.enlightenment.org/releases/${MY_P}.tar.bz2"
KEYWORDS="~amd64 ~x86"
IUSE="debug examples gnutls ssl static-libs +threads"
RDEPEND=">=dev-libs/eina-1.0.0_beta
media-libs/jpeg
sys-libs/zlib
gnutls? ( net-libs/gnutls )
!gnutls? ( ssl? ( dev-libs/openssl ) )"
DEPEND="${RDEPEND}
test? ( dev-libs/check
dev-util/lcov )"
S=${WORKDIR}/${MY_P}
#the tarball is missing pem files for the crypto tests
#reported upstream, will be included in the next release
RESTRICT="test"
src_configure() {
local SSL_FLAGS=""
if use gnutls; then
if use ssl; then
ewarn "You have enabled both 'ssl' and 'gnutls', so we will use"
ewarn "gnutls and not openssl for cipher and signature support"
fi
SSL_FLAGS="
--enable-cipher
--enable-signature
--disable-openssl
--enable-gnutls"
elif use ssl; then
SSL_FLAGS="
--enable-cipher
--enable-signature
--enable-openssl
--disable-gnutls"
else
SSL_FLAGS="
--disable-cipher
--disable-signature
--disable-openssl
--disable-gnutls"
fi
export MY_ECONF="
$(use_enable !debug amalgamation)
$(use_enable debug assert)
$(use_enable doc)
$(use_enable test tests)
$(use_enable test coverage)
$(use_enable threads posix-threads)
${SSL_FLAGS}
${MY_ECONF}"
enlightenment_src_configure
}
src_install() {
enlightenment_src_install
rm -r src/examples/Makefile* || die
docinto examples
dodoc src/examples/* || die
}
|