net-misc/rsync: move helper scripts behind USE=examples
authorMike Frysinger <vapier@gentoo.org>
Thu, 1 Jun 2017 02:59:50 +0000 (22:59 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 1 Jun 2017 02:59:50 +0000 (22:59 -0400)
These aren't generally useful, so stop installing them by default.
Plus most are written in perl.

net-misc/rsync/rsync-3.1.2.ebuild

index fb982adf33e338b2cc01c53bfc3b1c0c5edf11c0..16e2176a9d0d5046e00dcb4be752828121bf9353 100644 (file)
@@ -15,7 +15,7 @@ SLOT="0"
 if [[ ${PV} != *_pre ]] ; then
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 fi
-IUSE="acl iconv ipv6 static stunnel xattr"
+IUSE="acl examples iconv ipv6 static stunnel xattr"
 
 LIB_DEPEND="acl? ( virtual/acl[static-libs(+)] )
        xattr? ( kernel_linux? ( sys-apps/attr[static-libs(+)] ) )
@@ -64,9 +64,11 @@ src_install() {
        fi
 
        # Install the useful contrib scripts
-       exeinto /usr/share/rsync
-       doexe support/*
-       rm -f "${ED}"/usr/share/rsync/{Makefile*,*.c}
+       if use examples ; then
+               exeinto /usr/share/rsync
+               doexe support/*
+               rm -f "${ED}"/usr/share/rsync/{Makefile*,*.c}
+       fi
 
        eprefixify "${ED}"/etc/{,xinetd.d}/rsyncd*