Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-wm/bspwm/files: bspwm-session bspwm-0.8.8-flags.patch
Date: Fri, 24 Jan 2014 08:21:02
Message-Id: 20140124082057.315A92004E@flycatcher.gentoo.org
1 radhermit 14/01/24 08:20:57
2
3 Added: bspwm-session bspwm-0.8.8-flags.patch
4 Log:
5 Initial import, ebuild by me.
6
7 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
8
9 Revision Changes Path
10 1.1 x11-wm/bspwm/files/bspwm-session
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/bspwm/files/bspwm-session?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/bspwm/files/bspwm-session?rev=1.1&content-type=text/plain
14
15 Index: bspwm-session
16 ===================================================================
17 #!/bin/sh
18 # bspwm Xsession starter, based on Xsession from x11-apps/xinit
19
20 # redirect errors to a file in user's home directory if we can
21 for errfile in "$HOME/.bspwm-errors" "${TMPDIR-/tmp}/bspwm-$USER" "/tmp/bspwm-$USER"
22 do
23 if ( cp /dev/null "$errfile" 2> /dev/null )
24 then
25 chmod 600 "$errfile"
26 exec > "$errfile" 2>&1
27 break
28 fi
29 done
30
31 userresources=$HOME/.Xresources
32 usermodmap=$HOME/.Xmodmap
33 userxkbmap=$HOME/.Xkbmap
34
35 sysresources=/etc/X11/Xresources
36 sysmodmap=/etc/X11/Xmodmap
37 sysxkbmap=/etc/X11/Xkbmap
38
39 rh6sysresources=/etc/X11/xinit/Xresources
40 rh6sysmodmap=/etc/X11/xinit/Xmodmap
41
42 # merge in defaults
43 if [ -f "$rh6sysresources" ]; then
44 xrdb -merge "$rh6sysresources"
45 fi
46
47 if [ -f "$sysresources" ]; then
48 xrdb -merge "$sysresources"
49 fi
50
51 if [ -f "$userresources" ]; then
52 xrdb -merge "$userresources"
53 fi
54
55 # merge in keymaps
56 if [ -f "$sysxkbmap" ]; then
57 setxkbmap `cat "$sysxkbmap"`
58 XKB_IN_USE=yes
59 fi
60
61 if [ -f "$userxkbmap" ]; then
62 setxkbmap `cat "$userxkbmap"`
63 XKB_IN_USE=yes
64 fi
65
66 #
67 # Eeek, this seems like too much magic here
68 #
69 if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
70 if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
71 xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config /etc/X11/xorg.conf`
72 if [ -n "$xkbsymbols" ]; then
73 setxkbmap -symbols "$xkbsymbols"
74 XKB_IN_USE=yes
75 fi
76 fi
77 fi
78
79 # xkb and xmodmap don't play nice together
80 if [ -z "$XKB_IN_USE" ]; then
81 if [ -f "$rh6sysmodmap" ]; then
82 xmodmap "$rh6sysmodmap"
83 fi
84
85 if [ -f "$sysmodmap" ]; then
86 xmodmap "$sysmodmap"
87 fi
88
89 if [ -f "$usermodmap" ]; then
90 xmodmap "$usermodmap"
91 fi
92 fi
93
94 unset XKB_IN_USE
95
96 # run all system xinitrc shell scripts.
97 if [ -d /etc/X11/xinit/xinitrc.d ]; then
98 for i in /etc/X11/xinit/xinitrc.d/* ; do
99 if [ -x "$i" ]; then
100 . "$i"
101 fi
102 done
103 fi
104
105 exec /usr/bin/sxhkd &
106 exec /usr/bin/bspwm
107
108
109
110 1.1 x11-wm/bspwm/files/bspwm-0.8.8-flags.patch
111
112 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/bspwm/files/bspwm-0.8.8-flags.patch?rev=1.1&view=markup
113 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/bspwm/files/bspwm-0.8.8-flags.patch?rev=1.1&content-type=text/plain
114
115 Index: bspwm-0.8.8-flags.patch
116 ===================================================================
117 --- bspwm-0.8.8/Makefile
118 +++ bspwm-0.8.8/Makefile
119 @@ -18,11 +18,9 @@
120 CL_SRC = bspc.c helpers.c
121 CL_OBJ = $(CL_SRC:.c=.o)
122
123 -all: CFLAGS += -Os
124 -all: LDFLAGS += -s
125 all: bspwm bspc
126
127 -debug: CFLAGS += -O0 -g -DDEBUG
128 +debug: CFLAGS += -DDEBUG
129 debug: bspwm bspc
130
131 include Sourcedeps