--- systemd-212-r2.ebuild.orig 2014-04-13 02:03:59.000000000 +0400 +++ systemd-212-r2.ebuild 2014-04-19 01:45:55.601689304 +0400 @@ -32,7 +32,10 @@ cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= ) gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0= ) gudev? ( dev-libs/glib:2=[${MULTILIB_USEDEP}] ) - http? ( >=net-libs/libmicrohttpd-0.9.33:0= ) + http? ( + >=net-libs/libmicrohttpd-0.9.33:0= + ssl? ( >=net-libs/gnutls-3.1.4:0= ) + ) introspection? ( >=dev-libs/gobject-introspection-1.31.1:0= ) kmod? ( >=sys-apps/kmod-15:0= ) lzma? ( app-arch/xz-utils:0=[${MULTILIB_USEDEP}] ) @@ -41,7 +44,6 @@ qrcode? ( media-gfx/qrencode:0= ) seccomp? ( sys-libs/libseccomp:0= ) selinux? ( sys-libs/libselinux:0= ) - ssl? ( >=net-libs/gnutls-3.1.4:0= ) xattr? ( sys-apps/attr:0= ) abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )" @@ -166,7 +168,6 @@ $(use_enable doc gtk-doc) $(use_enable gcrypt) $(use_enable gudev) - $(use_enable http microhttpd) $(use_enable introspection) $(use_enable kdbus) $(use_enable kmod) @@ -178,7 +179,6 @@ $(use_enable qrcode qrencode) $(use_enable seccomp) $(use_enable selinux) - $(use_enable ssl gnutls) $(use_enable test tests) $(use_enable xattr) @@ -193,6 +193,18 @@ # Keep using the one where the rules were installed. MY_UDEVDIR=$(get_udevdir) + if use http; then + myeconfargs+=( + --enable-microhttpd + $(use_enable ssl gnutls) + ) + else + myeconfargs+=( + --disable-microhttpd + --disable-gnutls + ) + fi + if use firmware-loader; then myeconfargs+=( --with-firmware-path="/lib/firmware/updates:/lib/firmware"