# Distributed under the terms of the GNU General Public License v2 # Copyright 1999-2018 Gentoo Foundation # Copyright 2018 Gluzskiy Alexandr DOWNLOADS="" SCM_REPOSITORY="https://github.com/distcc/distcc.git" require scm-git systemd-service require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 1.13 1.12 1.11 ] need_libtool=false ] SUMMARY="Distribute compilation of C code across several machines on a network" DESCRIPTION="" SLOT="0" HOMEPAGE="http://distcc.org/" PLATFORMS="~amd64 ~x86" #require net, used unprefixed toolchain, feel fee to fix/implement this RESTRICT=("test") MYOPTIONS=" gnome [[ description = [ Add GNOME 2 support ] ]] gtk hardened [[ description = [ Activate default security enhancements for toolchain (gcc, glibc, binutils) ] ]] ipv6 [[ description = [ Not recommended, great security risk ] ]] xinetd [[ description = [ Add support for the xinetd super-server ] ]] zeroconf [[ description = [ Support for DNS Service Discovery (DNS-SD) via net-dns/avahi ] ]] " DEPENDENCIES=" build: dev-lang/python[>=3.1] build+run: dev-libs/popt gnome? ( gnome-platform/libgnome:2 gnome-platform/libgnomeui:2 x11-libs/pango ) gtk? ( x11-libs/gtk+:2 ) xinetd? ( sys-apps/xinetd ) zeroconf? ( net-dns/avahi ) run: user/distcc group/distcc " src_prepare() { expatch "${FILES}/${PN}-3.0-xinetd.patch" expatch "${FILES}/${PN}-3.2_rc1-socks5.patch" option hardened && expatch "${FILES}/distcc-hardened.patch" autotools_src_prepare } src_configure() { local myconf="--disable-Werror" option ipv6 && myconf="${myconf} --enable-rfc2553" econf \ --disable-auth \ $(option_with gtk) \ $(option_with gnome) \ $(option_with zeroconf avahi) \ ${myconf} }