Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/dwm/
Date: Sat, 07 Jul 2018 11:40:29
Message-Id: 1530963607.58b9c904790f0c34215d81d2fa65974d811d9da3.johu@gentoo
1 commit: 58b9c904790f0c34215d81d2fa65974d811d9da3
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 7 11:40:07 2018 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 7 11:40:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58b9c904
7
8 x11-wm/dwm: Remove 6.1 (r0)
9
10 Uses deprecated EAPI 5 and overshadowed by 6.1-r1.
11
12 Package-Manager: Portage-2.3.41, Repoman-2.3.9
13
14 x11-wm/dwm/dwm-6.1.ebuild | 81 -----------------------------------------------
15 1 file changed, 81 deletions(-)
16
17 diff --git a/x11-wm/dwm/dwm-6.1.ebuild b/x11-wm/dwm/dwm-6.1.ebuild
18 deleted file mode 100644
19 index d8a03b2546d..00000000000
20 --- a/x11-wm/dwm/dwm-6.1.ebuild
21 +++ /dev/null
22 @@ -1,81 +0,0 @@
23 -# Copyright 1999-2018 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=5
27 -inherit eutils savedconfig toolchain-funcs
28 -
29 -DESCRIPTION="a dynamic window manager for X11"
30 -HOMEPAGE="https://dwm.suckless.org/"
31 -SRC_URI="https://dl.suckless.org/${PN}/${P}.tar.gz"
32 -
33 -LICENSE="MIT"
34 -SLOT="0"
35 -KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd"
36 -IUSE="xinerama"
37 -
38 -RDEPEND="
39 - media-libs/fontconfig
40 - x11-libs/libX11
41 - x11-libs/libXft
42 - xinerama? ( x11-libs/libXinerama )
43 -"
44 -DEPEND="
45 - ${RDEPEND}
46 - xinerama? ( x11-base/xorg-proto )
47 -"
48 -
49 -src_prepare() {
50 - sed -i \
51 - -e "s/CFLAGS = -std=c99 -pedantic -Wall -Os/CFLAGS += -std=c99 -pedantic -Wall/" \
52 - -e "/^LDFLAGS/{s|=|+=|g;s|-s ||g}" \
53 - -e "s/#XINERAMALIBS =/XINERAMALIBS ?=/" \
54 - -e "s/#XINERAMAFLAGS =/XINERAMAFLAGS ?=/" \
55 - -e "s@/usr/X11R6/include@${EPREFIX}/usr/include/X11@" \
56 - -e "s@/usr/X11R6/lib@${EPREFIX}/usr/lib@" \
57 - -e "s@-I/usr/include@@" -e "s@-L/usr/lib@@" \
58 - -e "s/\/freetype2/\ -I\/usr\/include\/freetype2/" \
59 - config.mk || die
60 - sed -i \
61 - -e '/@echo CC/d' \
62 - -e 's|@${CC}|$(CC)|g' \
63 - Makefile || die
64 -
65 - restore_config config.h
66 - epatch_user
67 -}
68 -
69 -src_compile() {
70 - if use xinerama; then
71 - emake CC=$(tc-getCC) dwm
72 - else
73 - emake CC=$(tc-getCC) XINERAMAFLAGS="" XINERAMALIBS="" dwm
74 - fi
75 -}
76 -
77 -src_install() {
78 - emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
79 -
80 - exeinto /etc/X11/Sessions
81 - newexe "${FILESDIR}"/dwm-session2 dwm
82 -
83 - insinto /usr/share/xsessions
84 - doins "${FILESDIR}"/dwm.desktop
85 -
86 - dodoc README
87 -
88 - save_config config.h
89 -}
90 -
91 -pkg_postinst() {
92 - einfo "This ebuild has support for user defined configs"
93 - einfo "Please read this ebuild for more details and re-emerge as needed"
94 - einfo "if you want to add or remove functionality for ${PN}"
95 - if ! has_version x11-misc/dmenu; then
96 - elog "Installing ${PN} without x11-misc/dmenu"
97 - einfo "To have a menu you can install x11-misc/dmenu"
98 - fi
99 - einfo "You can custom status bar with a script in HOME/.dwm/dwmrc"
100 - einfo "the ouput is redirected to the standard input of dwm"
101 - einfo "Since dwm-5.4, status info in the bar must be set like this:"
102 - einfo "xsetroot -name \"\`date\` \`uptime | sed 's/.*,//'\`\""
103 -}