blob: 99feb681017ba48c01752dc139aacc318797e628 (
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
67
68
69
70
71
72
73
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/compton/compton-9999.ebuild,v 1.8 2013/12/14 11:38:28 hasufell Exp $
EAPI=5
PYTHON_COMPAT=( python3_2 python3_3 )
inherit toolchain-funcs python-r1 git-2
DESCRIPTION="A compositor for X, and a fork of xcompmgr-dana"
HOMEPAGE="http://github.com/chjj/compton"
SRC_URI=""
EGIT_REPO_URI="git://github.com/chjj/compton.git"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="dbus +drm opengl +pcre xinerama"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
COMMON_DEPEND="${PYTHON_DEPS}
dev-libs/libconfig
x11-libs/libX11
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXrandr
x11-libs/libXrender
dbus? ( sys-apps/dbus )
opengl? ( virtual/opengl )
pcre? ( dev-libs/libpcre:3 )
xinerama? ( x11-libs/libXinerama )"
RDEPEND="${COMMON_DEPEND}
x11-apps/xprop
x11-apps/xwininfo
virtual/python-argparse[${PYTHON_USEDEP}]"
DEPEND="${COMMON_DEPEND}
app-text/asciidoc
virtual/pkgconfig
x11-proto/xproto
drm? ( x11-libs/libdrm )"
nobuildit() { use $1 || echo yes ; }
pkg_setup() {
if [[ ${MERGE_TYPE} != binary ]]; then
tc-export CC
fi
}
src_compile() {
emake docs
NO_DBUS=$(nobuildit dbus) \
NO_XINERAMA=$(nobuildit xinerama) \
NO_VSYNC_DRM=$(nobuildit drm) \
NO_VSYNC_OPENGL=$(nobuildit opengl) \
NO_REGEX_PCRE=$(nobuildit pcre) \
emake compton
}
src_install() {
NO_DBUS=$(nobuildit dbus) \
NO_VSYNC_DRM=$(nobuildit drm) \
NO_VSYNC_OPENGL=$(nobuildit opengl) \
NO_REGEX_PCRE=$(nobuildit pcre) \
default
docinto examples
nonfatal dodoc compton.sample.conf dbus-examples/*
python_foreach_impl python_newscript bin/compton-convgen.py compton-convgen
}
|