1 |
jer 11/12/23 01:44:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dwm-6.0.ebuild |
5 |
Log: |
6 |
Version bump by Dmitry Potapov (bug #395707). |
7 |
|
8 |
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.76 x11-wm/dwm/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/dwm/ChangeLog?rev=1.76&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/dwm/ChangeLog?rev=1.76&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/dwm/ChangeLog?r1=1.75&r2=1.76 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/x11-wm/dwm/ChangeLog,v |
20 |
retrieving revision 1.75 |
21 |
retrieving revision 1.76 |
22 |
diff -u -r1.75 -r1.76 |
23 |
--- ChangeLog 6 Nov 2011 23:09:08 -0000 1.75 |
24 |
+++ ChangeLog 23 Dec 2011 01:44:46 -0000 1.76 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for x11-wm/dwm |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/x11-wm/dwm/ChangeLog,v 1.75 2011/11/06 23:09:08 ranger Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/dwm/ChangeLog,v 1.76 2011/12/23 01:44:46 jer Exp $ |
30 |
+ |
31 |
+*dwm-6.0 (23 Dec 2011) |
32 |
+ |
33 |
+ 23 Dec 2011; Jeroen Roovers <jer@g.o> +dwm-6.0.ebuild: |
34 |
+ Version bump by Dmitry Potapov (bug #395707). |
35 |
|
36 |
06 Nov 2011; Brent Baude <ranger@g.o> dwm-5.9.ebuild: |
37 |
Marking dwm-5.9 ppc for bug 386083 |
38 |
|
39 |
|
40 |
|
41 |
1.1 x11-wm/dwm/dwm-6.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/dwm/dwm-6.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/dwm/dwm-6.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: dwm-6.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/x11-wm/dwm/dwm-6.0.ebuild,v 1.1 2011/12/23 01:44:46 jer Exp $ |
51 |
|
52 |
EAPI="4" |
53 |
|
54 |
inherit toolchain-funcs savedconfig |
55 |
|
56 |
DESCRIPTION="a dynamic window manager for X11" |
57 |
HOMEPAGE="http://www.suckless.org/dwm/" |
58 |
SRC_URI="http://dl.suckless.org/dwm/${P}.tar.gz" |
59 |
|
60 |
LICENSE="MIT" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
63 |
IUSE="xinerama" |
64 |
|
65 |
DEPEND="x11-libs/libX11 |
66 |
xinerama? ( |
67 |
x11-proto/xineramaproto |
68 |
x11-libs/libXinerama |
69 |
)" |
70 |
RDEPEND="${DEPEND}" |
71 |
|
72 |
src_prepare() { |
73 |
sed -i \ |
74 |
-e "s/CFLAGS = -std=c99 -pedantic -Wall -Os/CFLAGS += -std=c99 -pedantic -Wall -g/" \ |
75 |
-e "/^LDFLAGS/{s|=|+=|g;s|-s ||g}" \ |
76 |
-e "s/#XINERAMALIBS =/XINERAMALIBS ?=/" \ |
77 |
-e "s/#XINERAMAFLAGS =/XINERAMAFLAGS ?=/" \ |
78 |
-e "s@/usr/X11R6/include@/usr/include/X11@" \ |
79 |
-e "s@/usr/X11R6/lib@/usr/lib@" \ |
80 |
config.mk || die "sed failed" |
81 |
|
82 |
if use savedconfig; then |
83 |
restore_config config.h |
84 |
fi |
85 |
} |
86 |
|
87 |
src_compile() { |
88 |
local msg |
89 |
use savedconfig && msg=", please check the configfile" |
90 |
if use xinerama; then |
91 |
emake CC=$(tc-getCC) |
92 |
else |
93 |
emake CC=$(tc-getCC) XINERAMAFLAGS="" XINERAMALIBS="" |
94 |
fi |
95 |
} |
96 |
|
97 |
src_install() { |
98 |
emake DESTDIR="${D}" PREFIX="/usr" install |
99 |
|
100 |
insinto /usr/share/${PN} |
101 |
newins config.h ${PF}.config.h |
102 |
|
103 |
exeinto /etc/X11/Sessions |
104 |
newexe "${FILESDIR}"/dwm-session2 dwm |
105 |
|
106 |
insinto /usr/share/xsessions |
107 |
doins "${FILESDIR}"/dwm.desktop |
108 |
|
109 |
dodoc README |
110 |
|
111 |
save_config config.h |
112 |
} |
113 |
|
114 |
pkg_postinst() { |
115 |
einfo "This ebuild has support for user defined configs" |
116 |
einfo "Please read this ebuild for more details and re-emerge as needed" |
117 |
einfo "if you want to add or remove functionality for ${PN}" |
118 |
if ! has_version x11-misc/dmenu; then |
119 |
elog "Installing ${PN} without x11-misc/dmenu" |
120 |
einfo "To have a menu you can install x11-misc/dmenu" |
121 |
fi |
122 |
einfo "You can custom status bar with a script in HOME/.dwm/dwmrc" |
123 |
einfo "the ouput is redirected to the standard input of dwm" |
124 |
einfo "Since dwm-5.4, status info in the bar must be set like this:" |
125 |
einfo "xsetroot -name \"\`date\` \`uptime | sed 's/.*,//'\`\"" |
126 |
} |