Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 197403
Collapse All | Expand All

(-)ejabberd-1.1.4.ebuild (-2 / +9 lines)
Lines 2-8 Link Here
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-im/ejabberd/ejabberd-1.1.4.ebuild,v 1.1 2007/09/14 11:38:28 chainsaw Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-1.1.4.ebuild,v 1.1 2007/09/14 11:38:28 chainsaw Exp $
4
4
5
inherit eutils multilib
5
WANT_AUTOCONF=latest
6
7
inherit eutils multilib autotools
6
8
7
JABBER_ETC="/etc/jabber"
9
JABBER_ETC="/etc/jabber"
8
JABBER_RUN="/var/run/jabber"
10
JABBER_RUN="/var/run/jabber"
Lines 15-21 Link Here
15
LICENSE="GPL-2"
17
LICENSE="GPL-2"
16
SLOT="0"
18
SLOT="0"
17
KEYWORDS="~amd64 ~x86"
19
KEYWORDS="~amd64 ~x86"
18
IUSE="debug mod_irc mod_muc mod_pubsub ldap odbc ssl web zlib"
20
IUSE="debug mod_irc mod_muc mod_pubsub ldap odbc ssl web zlib hipe"
19
21
20
DEPEND=">=net-im/jabber-base-0.01
22
DEPEND=">=net-im/jabber-base-0.01
21
	>=dev-libs/expat-1.95
23
	>=dev-libs/expat-1.95
Lines 34-39 Link Here
34
36
35
	# Bug #171427
37
	# Bug #171427
36
	epatch "${FILESDIR}/${PV}-missing-declaration.patch"
38
	epatch "${FILESDIR}/${PV}-missing-declaration.patch"
39
40
	# Enable hipe support
41
	epatch "${FILESDIR}/hipe.patch"
42
	eautoreconf
37
}
43
}
38
44
39
src_compile() {
45
src_compile() {
Lines 46-51 Link Here
46
		$(use_enable web)					\
52
		$(use_enable web)					\
47
		$(use_enable odbc)					\
53
		$(use_enable odbc)					\
48
		$(use_enable zlib ejabberd_zlib)			\
54
		$(use_enable zlib ejabberd_zlib)			\
55
		$(use_enable hipe)						\
49
		|| die "econf failed"
56
		|| die "econf failed"
50
57
51
	if useq debug; then
58
	if useq debug; then
(-) (+41 lines)
Added Link Here
1
commit 32481313b4be0f590e4a557ce4b29c6f5b3e8f4e
2
Author: Samuel Tardieu <sam@rfc1149.net>
3
Date:   Mon Oct 29 11:35:15 2007 +0100
4
5
    Enable HIPE compilation
6
7
diff --git a/src/Makefile.in b/src/Makefile.in
8
index 3c5792b..e156b83 100644
9
--- a/src/Makefile.in
10
+++ b/src/Makefile.in
11
@@ -21,6 +21,10 @@ ifdef ejabberd_debug
12
   ERLC_FLAGS+=-Dejabberd_debug
13
 endif
14
 
15
+ifeq (@hipe@, true)
16
+  ERLC_FLAGS+=+native
17
+endif
18
+
19
 ifeq (@roster_gateway_workaround@, true)
20
   ERLC_FLAGS+=-DROSTER_GATEWAY_WORKAROUND
21
 endif
22
diff --git a/src/configure.ac b/src/configure.ac
23
index c77f79f..b92300f 100644
24
--- a/src/configure.ac
25
+++ b/src/configure.ac
26
@@ -36,6 +36,15 @@ AC_MOD_ENABLE(tls, yes)
27
 AC_MOD_ENABLE(odbc, no)
28
 AC_MOD_ENABLE(ejabberd_zlib, yes)
29
 
30
+AC_ARG_ENABLE(hipe,
31
+[  --enable-hipe                         Compile natively with hipe (default: no)],
32
+[case "${enableval}" in
33
+  yes) hipe=true ;;
34
+  no)  hipe=false ;;
35
+  *) AC_MSG_ERROR(bad value ${enableval} for --enable-hipe) ;;
36
+esac],[hipe=false])
37
+AC_SUBST(hipe)
38
+
39
 AC_ARG_ENABLE(roster_gateway_workaround,
40
 [  --enable-roster-gateway-workaround    Turn on workaround for processing gateway subscriptions (default: no)],
41
 [case "${enableval}" in

Return to bug 197403