-
Notifications
You must be signed in to change notification settings - Fork 0
/
uwm-9999.ebuild
67 lines (55 loc) · 1.56 KB
/
uwm-9999.ebuild
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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit eutils
if [[ ${PV} == "9999" ]] ; then
inherit git-2
EGIT_REPO_URI="git:https://git.code.sf.net/p/${PN}/code"
else
SRC_URI="mirror:https://sourceforge/${PN}/${P}.tar.bz2"
fi
DESCRIPTION="uwm - µ Window Manager"
HOMEPAGE="http:https://uwm.sourceforge.net"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~arm"
IUSE="png jpeg xinerama"
DEPEND=">=x11-libs/libxcb-1.7
x11-libs/xcb-util
x11-libs/xcb-util-wm
x11-libs/xcb-util-image
x11-libs/xcb-util-keysyms
x11-libs/xcb-util-renderutil
x11-libs/libX11
sys-devel/make
media-fonts/font-alias
media-fonts/font-misc-misc
media-fonts/font-cursor-misc
png? ( media-libs/libpng )
jpeg? ( virtual/jpeg )
xinerama? ( x11-proto/xineramaproto )
"
src_compile() {
local myconf
myconf="'-DSYSTEM_CONFIG=\"/etc/system.uwmrc\"'"
use png && myconf="${myconf} -DUSE_PNG"
use jpeg && myconf="${myconf} -DUSE_JPEG"
use xinerama && myconf="${myconf} -DUSE_XINERAMA"
emake -j1 all contrib/uwm-helper CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" CONFIG="${myconf}"
}
src_install() {
echo "#!/bin/sh" > ${T}/uwm
echo "exec /usr/bin/uwm" >> ${T}/uwm
exeinto /etc/X11/Sessions
doexe "${T}"/uwm
dobin uwm contrib/uwm-helper
doman uwm.1 uwmrc.5
dodoc ChangeLog README.txt contrib/uwmrc.example
doicon contrib/uwm16x16.xpm contrib/x.xpm
}
pkg_postinst() {
ewarn "Please extract uwmrc.example from /usr/share/doc/${PF} to"
ewarn "/etc/system.uwmrc or to your \$HOME/.uwm/uwmrc or/and edit it."
}