--- evms-2.5.5-r6.ebuild 2007-07-16 06:23:43.000000000 +1000 +++ evms-2.5.5-r6.ebuild 2007-08-05 12:51:25.847250087 +1000 @@ -14,7 +14,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="debug gtk ncurses nls" +IUSE="debug gtk ncurses nls hb2" #EVMS uses libuuid from e2fsprogs RDEPEND="virtual/libc @@ -23,6 +23,7 @@ >=sys-apps/baselayout-1.9.4-r6 gtk? ( =x11-libs/gtk+-1* =dev-libs/glib-1* ) + hb2? ( >=sys-cluster/heartbeat-2 ) ncurses? ( sys-libs/ncurses >=dev-libs/glib-2.12.4-r1 )" DEPEND="${RDEPEND}" @@ -62,6 +63,9 @@ use ncurses || excluded_interfaces="--disable-text-mode" use gtk || excluded_interfaces="${excluded_interfaces} --disable-gui" + local myconf="" + use hb2 && myconf="--disable-ha" + # We have to link statically against glib because evmsn resides in /sbin econf \ --libdir=/$(get_libdir) \ @@ -70,6 +74,8 @@ --with-static-glib \ $(use_with debug) \ $(use_enable nls) \ + $(use_enable hb2) \ + ${myconf} \ ${excluded_interfaces} || die "Failed configure" emake || die "Failed emake" }