From: | "Cedric Krier (cedk)" <cedk@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-wm/dwm: ChangeLog dwm-5.2.ebuild |
Date: | Thu, 11 Sep 2008 09:26:31 |
Message-Id: | E1KdiRV-0005Yf-BP@stork.gentoo.org |
1 | cedk 08/09/11 09:26:25 |
2 | |
3 | Modified: ChangeLog |
4 | Added: dwm-5.2.ebuild |
5 | Log: |
6 | Version bump |
7 | (Portage version: 2.1.4.4) |
8 | |
9 | Revision Changes Path |
10 | 1.47 x11-wm/dwm/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/dwm/ChangeLog?rev=1.47&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/dwm/ChangeLog?rev=1.47&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/dwm/ChangeLog?r1=1.46&r2=1.47 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/x11-wm/dwm/ChangeLog,v |
19 | retrieving revision 1.46 |
20 | retrieving revision 1.47 |
21 | diff -u -r1.46 -r1.47 |
22 | --- ChangeLog 30 Jul 2008 18:24:16 -0000 1.46 |
23 | +++ ChangeLog 11 Sep 2008 09:26:24 -0000 1.47 |
24 | @@ -1,6 +1,9 @@ |
25 | # ChangeLog for x11-wm/dwm |
26 | # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/x11-wm/dwm/ChangeLog,v 1.46 2008/07/30 18:24:16 cedk Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/x11-wm/dwm/ChangeLog,v 1.47 2008/09/11 09:26:24 cedk Exp $ |
29 | + |
30 | + 11 Sep 2008; Cédric Krier <cedk@g.o> ChangeLog: |
31 | + Version bump |
32 | |
33 | 30 Jul 2008; Cédric Krier <cedk@g.o> -dwm-4.2.ebuild: |
34 | Remove old |
35 | |
36 | |
37 | |
38 | 1.1 x11-wm/dwm/dwm-5.2.ebuild |
39 | |
40 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/dwm/dwm-5.2.ebuild?rev=1.1&view=markup |
41 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/dwm/dwm-5.2.ebuild?rev=1.1&content-type=text/plain |
42 | |
43 | Index: dwm-5.2.ebuild |
44 | =================================================================== |
45 | # Copyright 1999-2008 Gentoo Foundation |
46 | # Distributed under the terms of the GNU General Public License v2 |
47 | # $Header: /var/cvsroot/gentoo-x86/x11-wm/dwm/dwm-5.2.ebuild,v 1.1 2008/09/11 09:26:24 cedk Exp $ |
48 | |
49 | inherit toolchain-funcs savedconfig |
50 | |
51 | DESCRIPTION="a dynamic window manager for X11" |
52 | HOMEPAGE="http://www.suckless.org/dwm/" |
53 | SRC_URI="http://code.suckless.org/dl/dwm/${P}.tar.gz" |
54 | |
55 | LICENSE="MIT" |
56 | SLOT="0" |
57 | KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
58 | IUSE="xinerama" |
59 | |
60 | RDEPEND="x11-libs/libX11 |
61 | xinerama? ( x11-libs/libXinerama )" |
62 | DEPEND="${RDEPEND} |
63 | xinerama? ( x11-proto/xineramaproto )" |
64 | |
65 | src_unpack() { |
66 | unpack ${A} |
67 | cd "${S}" |
68 | |
69 | sed -i \ |
70 | -e "s/CFLAGS = -std=c99 -pedantic -Wall -Os/CFLAGS += -std=c99 -pedantic -Wall -g/" \ |
71 | -e "s/LDFLAGS = -s/LDFLAGS += -g/" \ |
72 | -e "s/XINERAMALIBS =/XINERAMALIBS ?=/" \ |
73 | -e "s/XINERAMAFLAGS =/XINERAMAFLAGS ?=/" \ |
74 | config.mk || die "sed failed" |
75 | |
76 | if use savedconfig; then |
77 | restore_config config.h |
78 | fi |
79 | } |
80 | |
81 | src_compile() { |
82 | local msg |
83 | use savedconfig && msg=", please check the configfile" |
84 | if use xinerama; then |
85 | emake CC=$(tc-getCC) || die "emake failed${msg}" |
86 | else |
87 | emake CC=$(tc-getCC) XINERAMAFLAGS="" XINERAMALIBS="" \ |
88 | || die "emake failed${msg}" |
89 | fi |
90 | } |
91 | |
92 | src_install() { |
93 | emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed" |
94 | |
95 | insinto /usr/share/${PN} |
96 | newins config.h ${PF}.config.h |
97 | |
98 | exeinto /etc/X11/Sessions |
99 | newexe "${FILESDIR}"/dwm-session dwm |
100 | |
101 | insinto /usr/share/xsessions |
102 | doins "${FILESDIR}"/dwm.desktop |
103 | |
104 | dodoc README |
105 | |
106 | save_config config.h |
107 | } |
108 | |
109 | pkg_postinst() { |
110 | einfo "This ebuild has support for user defined configs" |
111 | einfo "Please read this ebuild for more details and re-emerge as needed" |
112 | einfo "if you want to add or remove functionality for ${PN}" |
113 | if ! has_version x11-misc/dmenu; then |
114 | elog "Installing ${PN} without x11-misc/dmenu" |
115 | einfo "To have a menu you can install x11-misc/dmenu" |
116 | fi |
117 | einfo "You can custom status bar with a script in HOME/.dwm/dwmrc" |
118 | einfo "the ouput is redirected to the standard input of dwm" |
119 | } |