blob: b87b62d2c3202ba498fb82e10dd210e724b9b6e2 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit xdg-utils
DESCRIPTION="Enlightenment window manager"
HOMEPAGE="https://www.enlightenment.org/"
SRC_URI="https://download.enlightenment.org/rel/apps/${PN}/${P}.tar.xz"
LICENSE="BSD-2"
SLOT="0.17/${PV%%_*}"
KEYWORDS="~amd64 ~x86"
E_CONF_MODS=(
applications bindings dialogs display
interaction intl menus paths
performance randr shelves theme
window-manipulation window-remembers
)
E_NORM_MODS=(
appmenu backlight battery bluez4
clock conf connman cpufreq
everything fileman fileman-opinfo gadman
geolocation ibar ibox lokker
mixer msgbus music-control notification
packagekit pager pager-plain quickaccess
shot start syscon systray
tasks teamwork temperature tiling
time winlist wireless wizard
wl-desktop-shell wl-drm wl-text-input wl-weekeyboard
wl-wl wl-x11 xkbswitch xwayland
)
IUSE_E_MODULES=(
${E_CONF_MODS[@]/#/enlightenment_modules_conf-}
${E_NORM_MODS[@]/#/enlightenment_modules_}
)
IUSE="acpi doc egl nls pam static-libs systemd udisks wayland ${IUSE_E_MODULES[@]/#/+}"
RDEPEND="
>=dev-libs/efl-1.17.0[eet,X]
virtual/udev
x11-libs/libXext
x11-libs/libxcb
x11-libs/xcb-util-keysyms
x11-misc/xkeyboard-config
acpi? ( sys-power/acpid )
egl? ( >=dev-libs/efl-1.18.0[egl,wayland] )
pam? ( sys-libs/pam )
systemd? ( sys-apps/systemd )
udisks? ( sys-fs/udisks:2 )
wayland? (
>=dev-libs/efl-1.18.0[drm,wayland]
>=dev-libs/wayland-1.11.0
x11-libs/libxkbcommon
x11-libs/pixman
)
"
DEPEND="
${RDEPEND}
sys-devel/automake:1.15
virtual/pkgconfig
nls? ( sys-devel/gettext )
"
src_prepare() {
default
eapply "${FILESDIR}"/"${P}"-quickstart.diff
xdg_environment_reset
sed -i 's/Categories=Audio/Categories=AudioVideo/g' src/modules/mixer/emixer.desktop || die
}
src_configure() {
local myconf=(
--disable-install-sysactions
--disable-policy-mobile
--enable-device-udev
$(use_enable egl wayland-egl)
$(use_enable nls)
$(use_enable pam)
$(use_enable static-libs static)
$(use_enable systemd)
$(use_enable udisks mount-udisks)
$(use_enable wayland)
)
local u c
for u in ${IUSE_E_MODULES[@]} ; do
c=${u#enlightenment_modules_}
case ${c} in
wl-*|xwayland)
if ! use wayland ; then
myconf+=( --disable-${c} )
continue
fi
;;
esac
myconf+=( $(use_enable ${u} ${c}) )
done
econf "${myconf[@]}"
}
src_install() {
insinto /etc/enlightenment
newins "${FILESDIR}"/gentoo-sysactions.conf sysactions.conf
if use doc ; then
local HTML_DOCS=( doc/. )
fi
einstalldocs
V=1 emake install DESTDIR="${D}" || die
if ! use static-libs ; then
find "${D}" -name '*.la' -delete || die
fi
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
|