Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 313097 | Differences between
and this patch

Collapse All | Expand All

(-)libetpan-0.57-r1.ebuild (-26 / +14 lines)
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"
6
7
inherit eutils autotools
4
8
5
DESCRIPTION="A portable, efficient middleware for different kinds of mail access."
9
DESCRIPTION="A portable, efficient middleware for different kinds of mail access."
6
HOMEPAGE="http://libetpan.sourceforge.net"
10
HOMEPAGE="http://libetpan.sourceforge.net"
Lines 17-31 Link Here
17
	sasl? ( dev-libs/cyrus-sasl )
21
	sasl? ( dev-libs/cyrus-sasl )
18
	liblockfile? ( net-libs/liblockfile )"
22
	liblockfile? ( net-libs/liblockfile )"
19
23
20
src_unpack() {
24
src_prepare() {
21
	unpack ${A}
25
	# Fixes for bug #286620 (db-4.8 detection) and debug flag handling
22
	cd "${S}"
26
	epatch "${FILESDIR}"/${P}-configure-fixes.patch
23
	# temp fix for bug #286620, also look for db-4.8, upstream will likely fix
27
	eautoreconf
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
}
28
}
27
29
28
src_compile() {
30
src_configure() {
29
	local sslconf
31
	local sslconf
30
32
31
	if use ssl; then
33
	if use ssl; then
Lines 45-75 Link Here
45
	# in Prefix emake uses SHELL=${BASH}, export CONFIG_SHELL to the same so
47
	# in Prefix emake uses SHELL=${BASH}, export CONFIG_SHELL to the same so
46
	# libtool recognises it as valid shell (bug #300211)
48
	# libtool recognises it as valid shell (bug #300211)
47
	use prefix && export CONFIG_SHELL=${BASH}
49
	use prefix && export CONFIG_SHELL=${BASH}
48
	# The configure script contains an error, in that it doesn't check the
50
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 \
51
	econf \
53
		$(use debug && echo --enable-debug) \
52
		$(use_enable debug) \
54
		$(use_enable berkdb db) \
53
		$(use_enable berkdb db) \
55
		$(use_with sasl) \
54
		$(use_with sasl) \
56
		$(use_enable ipv6) \
55
		$(use_enable ipv6) \
57
		$(use_enable liblockfile lockfile) \
56
		$(use_enable liblockfile lockfile) \
58
		${sslconf} \
57
		${sslconf}
59
		|| die "econf failed"
60
61
	emake || die "emake failed"
62
}
58
}
63
59
64
src_install() {
60
src_install() {
65
	emake DESTDIR="${D}" install || die
61
	emake DESTDIR="${D}" install || die "emake install failed"
66
	dodoc NEWS ChangeLog
62
	dodoc NEWS ChangeLog
67
}
63
}
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
}

Return to bug 313097