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

Collapse All | Expand All

(-)/usr/portage/net-misc/asterisk/asterisk-1.6.2.13-r2.ebuild (-2 / +20 lines)
Lines 14-20 Link Here
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~x86"
15
KEYWORDS="~amd64 ~x86"
16
16
17
IUSE="alsa +caps dahdi debug doc freetds iconv jabber ldap lua keepsrc logrotate misdn newt +samples oss postgres radius snmp span speex ssl sqlite static vorbis"
17
IUSE="alsa +caps dahdi debug doc freetds iconv imap jabber ldap lua keepsrc logrotate misdn newt +samples oss postgres radius snmp span speex ssl sqlite static vorbis"
18
18
19
RDEPEND="sys-libs/ncurses
19
RDEPEND="sys-libs/ncurses
20
	dev-libs/popt
20
	dev-libs/popt
Lines 25-30 Link Here
25
		net-misc/dahdi-tools )
25
		net-misc/dahdi-tools )
26
	freetds? ( dev-db/freetds )
26
	freetds? ( dev-db/freetds )
27
	iconv? ( virtual/libiconv )
27
	iconv? ( virtual/libiconv )
28
	imap? ( >=net-libs/c-client-2007[ssl=] )
28
	jabber? ( dev-libs/iksemel )
29
	jabber? ( dev-libs/iksemel )
29
	ldap?	( net-nds/openldap )
30
	ldap?	( net-nds/openldap )
30
	lua? ( dev-lang/lua )
31
	lua? ( dev-lang/lua )
Lines 63-68 Link Here
63
	"${FILESDIR}/1.6.2/${P}-pbxstart-failed-spurious-bye.patch"
64
	"${FILESDIR}/1.6.2/${P}-pbxstart-failed-spurious-bye.patch"
64
	"${FILESDIR}/1.6.2/${P}-confbridge-menu-invocation.patch"
65
	"${FILESDIR}/1.6.2/${P}-confbridge-menu-invocation.patch"
65
	"${FILESDIR}/1.6.2/${P}-alarm-receiver-use-playtones.patch"
66
	"${FILESDIR}/1.6.2/${P}-alarm-receiver-use-playtones.patch"
67
	"${FILESDIR}/1.6.2/${PN}-1.6.2.13-imap-libs.patch"
66
)
68
)
67
69
68
pkg_setup() {
70
pkg_setup() {
Lines 76-84 Link Here
76
src_prepare() {
78
src_prepare() {
77
	base_src_prepare
79
	base_src_prepare
78
	AT_M4DIR=autoconf eautoreconf
80
	AT_M4DIR=autoconf eautoreconf
81
82
	# Custom menuselect options are defined in this file (it may remain empty)
83
	#
84
	>"${S}"/gentoo.makeopts
85
86
	# Enable IMAP storage in app_voicemail if requested
87
	#
88
	use imap && echo "MENUSELECT_OPTS_app_voicemail=IMAP_STORAGE" >> "${S}"/gentoo.makeopts
79
}
89
}
80
90
81
src_configure() {
91
src_configure() {
92
	if use imap; then
93
		local imap_libs
94
		has_version net-libs/c-client[pam] && imap_libs="-lpam"
95
		has_version net-libs/c-client[ssl] && imap_libs="${imap_libs} -lssl"
96
		export IMAP_LIBS="${imap_libs}"
97
	fi
98
82
	econf \
99
	econf \
83
		--libdir="/usr/$(get_libdir)" \
100
		--libdir="/usr/$(get_libdir)" \
84
		--localstatedir="/var" \
101
		--localstatedir="/var" \
Lines 92-97 Link Here
92
		$(use_with dahdi) \
109
		$(use_with dahdi) \
93
		$(use_with freetds tds) \
110
		$(use_with freetds tds) \
94
		$(use_with iconv) \
111
		$(use_with iconv) \
112
		$(use_with imap imap system) \
95
		$(use_with jabber iksemel) \
113
		$(use_with jabber iksemel) \
96
		$(use_with lua) \
114
		$(use_with lua) \
97
		$(use_with misdn isdnnet) \
115
		$(use_with misdn isdnnet) \
Lines 120-126 Link Here
120
}
138
}
121
139
122
src_compile() {
140
src_compile() {
123
	ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed"
141
	ASTLDFLAGS="${LDFLAGS}" emake USER_MAKEOPTS="${S}"/gentoo.makeopts || die "emake failed"
124
}
142
}
125
143
126
src_install() {
144
src_install() {

Return to bug 308561