sys-libs/glibc: Add useflag doc; controlls installation of manual and dependency...
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 17 Dec 2017 22:26:52 +0000 (23:26 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 17 Dec 2017 22:27:11 +0000 (23:27 +0100)
Closes: https://bugs.gentoo.org/616190
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-libs/glibc/glibc-2.26-r3.ebuild
sys-libs/glibc/glibc-9999.ebuild

index 88a9cd4b5b3d922c1eb59eeaa1940e256924720b..ceb5b6846859f23a68c987daa5f9ac071d804e8f 100644 (file)
@@ -32,7 +32,7 @@ PATCH_VER=4
 SRC_URI+=" https://dev.gentoo.org/~dilfridge/distfiles/${P}-patches-${PATCH_VER}.tar.bz2"
 SRC_URI+=" multilib? ( https://dev.gentoo.org/~dilfridge/distfiles/gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2 )"
 
-IUSE="audit caps debug gd hardened multilib nscd selinux systemtap profile suid vanilla crosscompile_opts_headers-only"
+IUSE="audit caps debug doc gd hardened multilib nscd selinux systemtap profile suid vanilla crosscompile_opts_headers-only"
 
 # Min kernel version glibc requires
 : ${NPTL_KERN_VER:="3.2.0"}
@@ -80,6 +80,7 @@ DEPEND="${COMMON_DEPEND}
        >=app-misc/pax-utils-0.1.10
        !<sys-apps/sandbox-1.6
        !<sys-apps/portage-2.1.2
+       doc? ( sys-apps/texinfo )
 "
 RDEPEND="${COMMON_DEPEND}
        !sys-kernel/ps3-sources
@@ -286,8 +287,14 @@ glibc_do_configure() {
 
        einfo "Configuring glibc for $1"
 
+       if use doc ; then
+               export MAKEINFO=makeinfo
+       else
+               export MAKEINFO=/dev/null
+       fi
+
        local v
-       for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC CXX LD {AS,C,CPP,CXX,LD}FLAGS ; do
+       for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC CXX LD {AS,C,CPP,CXX,LD}FLAGS MAKEINFO ; do
                einfo " $(printf '%15s' ${v}:)   ${!v}"
        done
 
index a3b427221e28b4c347ff158222d0b9a9cfea0d84..68d17a224695fde6a9fca243bf3dc5732e23316e 100644 (file)
@@ -33,7 +33,7 @@ PATCH_VER="3"
 SRC_URI+=" https://dev.gentoo.org/~dilfridge/distfiles/${P}-patches-${PATCH_VER}.tar.bz2"
 SRC_URI+=" multilib? ( https://dev.gentoo.org/~dilfridge/distfiles/gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2 )"
 
-IUSE="audit caps compile-locales debug gd hardened multilib nscd selinux systemtap profile suid vanilla crosscompile_opts_headers-only"
+IUSE="audit caps compile-locales debug doc gd hardened multilib nscd selinux systemtap profile suid vanilla crosscompile_opts_headers-only"
 
 # Min kernel version glibc requires
 : ${NPTL_KERN_VER:="3.2.0"}
@@ -85,6 +85,7 @@ DEPEND="${COMMON_DEPEND}
        >=app-misc/pax-utils-0.1.10
        !<sys-apps/sandbox-1.6
        !<sys-apps/portage-2.1.2
+       doc? ( sys-apps/texinfo )
 "
 RDEPEND="${COMMON_DEPEND}
        !sys-kernel/ps3-sources
@@ -298,8 +299,14 @@ glibc_do_configure() {
 
        einfo "Configuring glibc for nptl"
 
+       if use doc ; then
+               export MAKEINFO=makeinfo
+       else
+               export MAKEINFO=/dev/null
+       fi
+
        local v
-       for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC CXX LD {AS,C,CPP,CXX,LD}FLAGS ; do
+       for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC CXX LD {AS,C,CPP,CXX,LD}FLAGS MAKEINFO ; do
                einfo " $(printf '%15s' ${v}:)   ${!v}"
        done