summaryrefslogtreecommitdiff
path: root/packages/x11-apps/redshift/redshift-1.12.exheres-0
blob: e331bdc7f503f90dc10305091f3d0a1f5a93e1cb (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
# Copyright 2014 Markus Rothe
# Distributed under the terms of the GNU General Public License v2

require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 1.13 ] ]
require github [ user="jonls" tag="v${PV}" ]
require python [ blacklist="2" multibuild=false with_opt=true option_name="gui" min_versions="3.2" ]
require gtk-icon-cache systemd-service

SUMMARY="Adjusts the color temperature of your screen according to your surroundings"
HOMEPAGE="http://jonls.dk/redshift/"

LICENCES="GPL-3"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS="
    geoclue [[ description = [ Use geoclue to get the current location ] ]]
    gui [[ description = [ Enable GUI status icon ] ]]
    ( linguas: ar bg ca cs da de el es et eu fi fr gl he hi hr it ja ka lt nb nl pl pt_BR pt ru sv zh_CN )
"

DEPENDENCIES="
    build:
        dev-util/intltool
        sys-devel/gettext[>=0.17]
        virtual/pkg-config
    build+run:
        dev-libs/glib:2[>=2.26]
        geoclue? ( gps/geoclue:2.0 )
        gui? (
            dev-python/pyxdg[python_abis:*(-)?]
            gnome-bindings/pygobject:3[python_abis:*(-)?]
            x11-libs/gtk+:3[gobject-introspection]
        )
        x11-dri/libdrm
        x11-libs/libX11
        x11-libs/libXrandr
        x11-libs/libXxf86vm
        x11-libs/libxcb
"

BUGS_TO="markus@unixforces.net"

AT_M4DIR=( m4 )

DEFAULT_SRC_CONFIGURE_PARAMS=(
    '--enable-drm'
    '--enable-nls'
    '--enable-randr'
    '--enable-vidmode'
    "--with-systemduserunitdir=${SYSTEMDUSERUNITDIR}"
)
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
    'geoclue geoclue2'
    'gui'
)

src_prepare() {
    default
    edo autopoint --force
    edo intltoolize --force --copy --automake
    autotools_src_prepare
}