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-misc/dmenu: ChangeLog dmenu-3.9.ebuild
Date: Thu, 11 Sep 2008 09:31:19
Message-Id: E1KdiWC-0005bG-VM@stork.gentoo.org
1 cedk 08/09/11 09:31:16
2
3 Modified: ChangeLog
4 Added: dmenu-3.9.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.46 x11-misc/dmenu/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/dmenu/ChangeLog?rev=1.46&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/dmenu/ChangeLog?rev=1.46&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/dmenu/ChangeLog?r1=1.45&r2=1.46
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-misc/dmenu/ChangeLog,v
19 retrieving revision 1.45
20 retrieving revision 1.46
21 diff -u -r1.45 -r1.46
22 --- ChangeLog 30 Jul 2008 18:34:27 -0000 1.45
23 +++ ChangeLog 11 Sep 2008 09:31:16 -0000 1.46
24 @@ -1,6 +1,9 @@
25 # ChangeLog for x11-misc/dmenu
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/ChangeLog,v 1.45 2008/07/30 18:34:27 cedk Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/ChangeLog,v 1.46 2008/09/11 09:31:16 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> -dmenu-3.2.ebuild:
34 Remove old
35
36
37
38 1.1 x11-misc/dmenu/dmenu-3.9.ebuild
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/dmenu/dmenu-3.9.ebuild?rev=1.1&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/dmenu/dmenu-3.9.ebuild?rev=1.1&content-type=text/plain
42
43 Index: dmenu-3.9.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-misc/dmenu/dmenu-3.9.ebuild,v 1.1 2008/09/11 09:31:16 cedk Exp $
48
49 inherit toolchain-funcs savedconfig
50
51 DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System"
52 HOMEPAGE="http://www.suckless.org/programs/dmenu.html"
53 SRC_URI="http://code.suckless.org/dl/tools/${P}.tar.gz"
54
55 LICENSE="MIT"
56 SLOT="0"
57 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
58 IUSE="xinerama"
59
60 DEPEND="x11-libs/libX11
61 xinerama? ( x11-libs/libXinerama )"
62 RDEPEND=${DEPEND}
63
64 src_unpack() {
65 unpack ${A}
66 cd "${S}"
67
68 sed -i \
69 -e "s/CFLAGS = -std=c99 -pedantic -Wall -Os/CFLAGS += -std=c99 -pedantic -Wall -g/" \
70 -e "s/LDFLAGS = -s/LDFLAGS += -g/" \
71 -e "s/XINERAMALIBS =/XINERAMALIBS ?=/" \
72 -e "s/XINERAMAFLAGS =/XINERAMAFLAGS ?=/" \
73 config.mk || die "sed failed"
74
75 if use savedconfig; then
76 restore_config config.h
77 fi
78 }
79
80 src_compile() {
81 local msg
82 use savedconfig && msg=", please check the configfile"
83 if use xinerama; then
84 emake CC=$(tc-getCC) || die "emake failed${msg}"
85 else
86 emake CC=$(tc-getCC) XINERAMAFLAGS="" XINERAMALIBS="" \
87 || die "emake failed${msg}"
88 fi
89 }
90
91 src_install() {
92 emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
93
94 insinto /usr/share/${PN}
95 newins config.h ${PF}.config.h
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 }