Lines 1-6
Link Here
|
1 |
# Copyright 1999-2010 Gentoo Foundation |
1 |
# Copyright 1999-2010 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/libetpan/libetpan-0.57-r1.ebuild,v 1.2 2010/01/10 18:50:26 a3li Exp $ |
3 |
# $Header: $ |
|
|
4 |
|
5 |
EAPI="2" |
4 |
|
6 |
|
5 |
DESCRIPTION="A portable, efficient middleware for different kinds of mail access." |
7 |
DESCRIPTION="A portable, efficient middleware for different kinds of mail access." |
6 |
HOMEPAGE="http://libetpan.sourceforge.net" |
8 |
HOMEPAGE="http://libetpan.sourceforge.net" |
Lines 17-31
Link Here
|
17 |
sasl? ( dev-libs/cyrus-sasl ) |
19 |
sasl? ( dev-libs/cyrus-sasl ) |
18 |
liblockfile? ( net-libs/liblockfile )" |
20 |
liblockfile? ( net-libs/liblockfile )" |
19 |
|
21 |
|
20 |
src_unpack() { |
22 |
src_configure() { |
21 |
unpack ${A} |
|
|
22 |
cd "${S}" |
23 |
# temp fix for bug #286620, also look for db-4.8, upstream will likely fix |
24 |
# this in their next release |
25 |
sed -i -e '/db-4.7 db-4.6/s/db-4.7/db-4.8 db-4.7/' configure || die |
26 |
} |
27 |
|
28 |
src_compile() { |
29 |
local sslconf |
23 |
local sslconf |
30 |
|
24 |
|
31 |
if use ssl; then |
25 |
if use ssl; then |
Lines 45-75
Link Here
|
45 |
# in Prefix emake uses SHELL=${BASH}, export CONFIG_SHELL to the same so |
39 |
# in Prefix emake uses SHELL=${BASH}, export CONFIG_SHELL to the same so |
46 |
# libtool recognises it as valid shell (bug #300211) |
40 |
# libtool recognises it as valid shell (bug #300211) |
47 |
use prefix && export CONFIG_SHELL=${BASH} |
41 |
use prefix && export CONFIG_SHELL=${BASH} |
48 |
# The configure script contains an error, in that it doesn't check the |
42 |
|
49 |
# argument of --enable-{debug,optim}, hence --disable-debug results in |
|
|
50 |
# --enable-debug=no, which isn't checked and debugging flags are blindly |
51 |
# injected. So, avoid passing --disable-debug when we don't need it. |
52 |
econf \ |
43 |
econf \ |
53 |
$(use debug && echo --enable-debug) \ |
44 |
$(use_enable debug) \ |
54 |
$(use_enable berkdb db) \ |
45 |
$(use_enable berkdb db) \ |
55 |
$(use_with sasl) \ |
46 |
$(use_with sasl) \ |
56 |
$(use_enable ipv6) \ |
47 |
$(use_enable ipv6) \ |
57 |
$(use_enable liblockfile lockfile) \ |
48 |
$(use_enable liblockfile lockfile) \ |
58 |
${sslconf} \ |
49 |
${sslconf} |
59 |
|| die "econf failed" |
|
|
60 |
|
61 |
emake || die "emake failed" |
62 |
} |
50 |
} |
63 |
|
51 |
|
64 |
src_install() { |
52 |
src_install() { |
65 |
emake DESTDIR="${D}" install || die |
53 |
emake DESTDIR="${D}" install || die "emake install failed" |
66 |
dodoc NEWS ChangeLog |
54 |
dodoc NEWS ChangeLog |
67 |
} |
55 |
} |
68 |
|
|
|
69 |
pkg_postinst() { |
70 |
echo |
71 |
ewarn "The soname for libetpan has changed after libetpan-0.53." |
72 |
ewarn "If you have upgraded from that or earlier version, it is recommended to run" |
73 |
ewarn "revdep-rebuild to fix any linking errors caused by this change." |
74 |
echo |
75 |
} |