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