summaryrefslogtreecommitdiff
path: root/packages/sys-devel/distcc/distcc-scm.exheres-0
blob: f0eaf11a949b823b4ff64069476b07d7ec896298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Distributed under the terms of the GNU General Public License v2
# Copyright 1999-2018 Gentoo Foundation
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>

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}
}