blob: 80ddb41d763058c703edef62b2b1b569007245ed (
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Enlightenment Window Manager (E16)"
HOMEPAGE="https://www.enlightenment.org https://sourceforge.net/projects/enlightenment/"
SRC_URI="https://downloads.sourceforge.net/enlightenment/${P}.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+alsa audiofile +dbus debug +dialogs gnome
libhack editline modules nls no-container opengl +pango player
pulseaudio readline +sndfile sound +themes xcomposite +xft
xi2 xinerama xpresent +xrandr +xrender +xsm +xsync zoom"
REQUIRED_USE="
?? ( editline readline )
opengl? ( xcomposite xrender )
pango? ( xft )
sound? (
^^ ( alsa player pulseaudio )
alsa? ( ^^ ( sndfile audiofile ) )
pulseaudio? ( ^^ ( sndfile audiofile ) )
)
"
BDEPEND="
nls? ( sys-devel/gettext )
virtual/pkgconfig
"
COMMON_DEPEND="
media-libs/imlib2[X,text]
virtual/libiconv
x11-libs/libX11
x11-libs/libXext
x11-misc/xbitmaps
dbus? ( sys-apps/dbus )
editline? ( dev-libs/editline:= )
opengl? (
media-libs/glu
media-libs/libglvnd[X]
)
pango? (
dev-libs/glib:2
x11-libs/pango[X]
)
readline? ( sys-libs/readline:= )
sound? (
alsa? ( media-libs/alsa-lib )
player? ( media-sound/alsa-utils )
pulseaudio? ( || (
media-libs/libpulse
media-sound/apulse[sdk]
) )
audiofile? ( media-libs/audiofile:= )
sndfile? ( media-libs/libsndfile )
)
xcomposite? (
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXfixes
)
xft? ( x11-libs/libXft )
xi2? ( x11-libs/libXi )
xinerama? ( x11-libs/libXinerama )
xpresent? ( x11-libs/libXpresent )
xrandr? ( x11-libs/libXrandr )
xrender? ( x11-libs/libXrender )
xsm? (
x11-libs/libICE
x11-libs/libSM
)
zoom? ( !xrandr? ( x11-libs/libXxf86vm ) )
"
RDEPEND="${COMMON_DEPEND}
nls? ( virtual/libintl )
themes? ( x11-themes/e16-themes )
!x11-wm/enlightenment:0
"
DEPEND="${COMMON_DEPEND}
x11-base/xorg-proto
pango? (
media-libs/fontconfig
media-libs/freetype:2
media-libs/harfbuzz:=
)
"
PATCHES=(
"${FILESDIR}"/${PN}-1.0.31-fix-docdir.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
local myconf=(
$(use_enable dbus)
$(use_enable debug libtrip)
$(use_enable dialogs)
$(use_enable libhack)
$(use_enable modules)
$(use_enable nls)
$(use_enable no-container containerless)
$(use_enable opengl glx)
$(use_enable pango)
$(use_enable xcomposite composite)
$(use_enable xft)
$(use_enable xi2)
$(use_enable xinerama)
$(use_enable xpresent)
$(use_enable xrandr)
$(use_enable xrender)
$(use_enable xsm sm)
$(use_enable xsync)
$(use_enable zoom)
$(use_with gnome gnome gnome3)
$(usev editline --with-lineedit=yes)
$(usev readline --with-lineedit=readline)
--enable-mans
--disable-docs
--disable-esdtest
--disable-gcc-cpp
--disable-werror
--disable-xscrnsaver
)
if use sound; then
use alsa && myconf+=( --enable-sound=alsa )
use pulseaudio && myconf+=( --enable-sound=pulseaudio )
use player && myconf+=( --enable-sound=player )
if use alsa || use pulseaudio; then
use sndfile && myconf+=( --with-sndldr=sndfile )
use audiofile && myconf+=( --with-sndldr=audiofile )
else
myconf+=( --without-sndldr )
fi
else
myconf+=( --disable-sound --without-sndldr )
fi
econf "${myconf[@]}"
}
src_install() {
default
docompress -x /usr/share/doc/${PF}/e16.html
dodoc COMPLIANCE docs/e16.html
dodoc -r sample-scripts
}
pkg_postinst() {
einfo "In order to use custom fonts, put them into ~/.e16/fonts/ and use"
einfo "appropriate names in ~/.e16/fonts.cfg. \"Use theme font configuration\""
einfo "in the Theme setting should be disabled for this to work."
}
|