sys-libs/tevent: Make glibc dep conditional to elibc_glibc
authorMichał Górny <mgorny@gentoo.org>
Thu, 1 Mar 2018 13:31:08 +0000 (14:31 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 1 Mar 2018 13:33:29 +0000 (14:33 +0100)
sys-libs/tevent/tevent-0.9.36.ebuild

index 05ed9a03d3de5051835f8ae4a006e851a65132b2..f646f6bbe18ce65bb401165e0a5bd7f16a8275ce 100644 (file)
@@ -14,17 +14,19 @@ SRC_URI="https://www.samba.org/ftp/tevent/${P}.tar.gz"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
-IUSE="python"
+IUSE="elibc_glibc python"
 
 RDEPEND=">=sys-libs/talloc-2.1.11[${MULTILIB_USEDEP}]
        python? ( ${PYTHON_DEPS} )"
 
 DEPEND="${RDEPEND}
-       net-libs/libtirpc[${MULTILIB_USEDEP}]
        >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
-       || (
-               net-libs/rpcsvc-proto
-               <sys-libs/glibc-2.26[rpc(+)]
+       elibc_glibc? (
+               net-libs/libtirpc[${MULTILIB_USEDEP}]
+               || (
+                       net-libs/rpcsvc-proto
+                       <sys-libs/glibc-2.26[rpc(+)]
+               )
        )
        ${PYTHON_DEPS}
 "