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.6.ebuild
Date: Fri, 16 Nov 2007 20:42:07
Message-Id: E1It80i-00036T-Ua@stork.gentoo.org
1 cedk 07/11/16 20:41:56
2
3 Modified: ChangeLog
4 Added: dwm-4.6.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.30 x11-wm/dwm/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/dwm/ChangeLog?rev=1.30&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/dwm/ChangeLog?rev=1.30&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/dwm/ChangeLog?r1=1.29&r2=1.30
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-wm/dwm/ChangeLog,v
19 retrieving revision 1.29
20 retrieving revision 1.30
21 diff -u -r1.29 -r1.30
22 --- ChangeLog 22 Sep 2007 11:16:56 -0000 1.29
23 +++ ChangeLog 16 Nov 2007 20:41:56 -0000 1.30
24 @@ -1,6 +1,11 @@
25 # ChangeLog for x11-wm/dwm
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-wm/dwm/ChangeLog,v 1.29 2007/09/22 11:16:56 cedk Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-wm/dwm/ChangeLog,v 1.30 2007/11/16 20:41:56 cedk Exp $
29 +
30 +*dwm-4.6 (16 Nov 2007)
31 +
32 + 16 Nov 2007; Cédric Krier <cedk@g.o> +dwm-4.6.ebuild:
33 + Version bump
34
35 *dwm-4.5 (22 Sep 2007)
36
37
38
39
40 1.1 x11-wm/dwm/dwm-4.6.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/dwm/dwm-4.6.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/dwm/dwm-4.6.ebuild?rev=1.1&content-type=text/plain
44
45 Index: dwm-4.6.ebuild
46 ===================================================================
47 # Copyright 1999-2007 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.6.ebuild,v 1.1 2007/11/16 20:41:56 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@g.o mailing list