Gentoo Archives: gentoo-commits

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