Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/spectrwm/files/, x11-wm/spectrwm/
Date: Sat, 09 Dec 2017 01:19:26
Message-Id: 1512782356.96fd2a120dc0032de9caf503ddbaeeeac24fd5a2.xmw@gentoo
1 commit: 96fd2a120dc0032de9caf503ddbaeeeac24fd5a2
2 Author: Michael Weber <xmw <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 9 01:19:04 2017 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 9 01:19:16 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96fd2a12
7
8 x11-wm/spectrwm: Version bump (thanks Hadrien Lacour, bug 637436).
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 x11-wm/spectrwm/Manifest | 1 +
13 .../spectrwm/files/spectrwm-3.1.0-Makefile.patch | 23 ++++++++++
14 x11-wm/spectrwm/spectrwm-3.1.0.ebuild | 52 ++++++++++++++++++++++
15 3 files changed, 76 insertions(+)
16
17 diff --git a/x11-wm/spectrwm/Manifest b/x11-wm/spectrwm/Manifest
18 index 777681e8604..58b5defbb33 100644
19 --- a/x11-wm/spectrwm/Manifest
20 +++ b/x11-wm/spectrwm/Manifest
21 @@ -1,3 +1,4 @@
22 DIST spectrwm-2.7.2.tgz 132554 SHA256 b56cffa01ee2c58515350c1be1940140286fd18778659c6f5ada4595319f97cb SHA512 cebb0e42566125933bf2c4c9200765d360bb572fd953c510ad39e7abcf9cc507e61420441234fb1bb44d06d28526ba6c594272c173a04181d2c6798e404b7421 WHIRLPOOL 5ab24d2866d6a252c03a72fae3e0dd914f6c2041185088da5beb4c7a4a0ee5ec0c3b55cff32bef5f10f159ae1a5e66a6a217a3d67cba2d17ed324145a05391c7
23 DIST spectrwm-3.0.1.tar.gz 147331 SHA256 315fe232e8ac727c289fde8c9b3a3eba19b98739ccb98015c29ce06eacee1853 SHA512 34e5673940217916c4725e036c28bff440085b1f3a7015a334ec9fcd08a2ef97f8c060dba6a508d7c2b9c8415e4e20a2587dea099def2493803472b1b2df7ced WHIRLPOOL bf2af477df6d503d0b6bc838b635b61a14c4b6c977f9528b1b2497e17cdfeee06e93daf1f426b7e598bfd7f3f27fa7194cf2f500c09373fc09e42e0e3278334d
24 DIST spectrwm-3.0.2.tar.gz 147355 SHA256 82ce0280039de642c41684f3096abb0388926b60c37987ca1dbc53a0913cab18 SHA512 bbc5620078bd90ad6bf48b3e0218cf5398b819282322ee6d23b5b3aa2334b35f4981736157d0c442f1dde268503ec15e321cdbe08d842abc6c0a0239ac6d99c2 WHIRLPOOL 7091cace363a4ba365ea691903823523e3ac55411e3d108f969f4f51080528c345a070897c2ebc68b25f93bc3c20ee8ed234fc13a69941843b48acdd0985b183
25 +DIST spectrwm-3.1.0.tar.gz 147206 BLAKE2B abcce22bc7859dbcc109f02ea832d65091c842562579d47cd1dd83c5de82a015b02343972d4d85cf291b63bfbaf0e901616cca94d911014672ffc35436bdd3c1 SHA512 dd8e16361b979a55b210a88a1ae5d53e7086fd854e92320e09b6407d374580cc271c0e974e38606481ab57a504a86e16293edee967d251b043a1eb65e8c77687
26
27 diff --git a/x11-wm/spectrwm/files/spectrwm-3.1.0-Makefile.patch b/x11-wm/spectrwm/files/spectrwm-3.1.0-Makefile.patch
28 new file mode 100644
29 index 00000000000..71f5578bfc5
30 --- /dev/null
31 +++ b/x11-wm/spectrwm/files/spectrwm-3.1.0-Makefile.patch
32 @@ -0,0 +1,23 @@
33 +--- a/Makefile 2017-10-03 20:36:39.000000000 +0200
34 ++++ b/Makefile 2017-11-13 20:53:33.341995465 +0100
35 +@@ -9,16 +9,16 @@
36 + LIBVERSION = $(shell . $(CURDIR)/../lib/shlib_version; echo $$major.$$minor)
37 + LIBMAJORVERSION = $(shell . $(CURDIR)/../lib/shlib_version; echo $$major)
38 +
39 +-MAINT_CFLAGS = -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g
40 +-MAINT_LDFLAGS = -Wl,--as-needed
41 ++MAINT_CFLAGS = -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized
42 ++MAINT_LDFLAGS =
43 + MAINT_CPPFLAGS = -I. -D_GNU_SOURCE -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LIBVERSION)\"
44 +
45 + ifneq ("${BUILDVERSION}", "")
46 + MAINT_CPPFLAGS += -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
47 + endif
48 +
49 +-BIN_CFLAGS = -fPIE
50 +-BIN_LDFLAGS = -fPIE -pie
51 ++BIN_CFLAGS =
52 ++BIN_LDFLAGS =
53 + BIN_CPPFLAGS = $(shell pkg-config --cflags x11 x11-xcb xcb-icccm xcb-keysyms xcb-randr xcb-util xcb-xtest xcursor xft)
54 + BIN_LDLIBS = $(shell pkg-config --libs x11 x11-xcb xcb-icccm xcb-keysyms xcb-randr xcb-util xcb-xtest xcursor xft)
55 + LIB_CFLAGS = -fPIC
56
57 diff --git a/x11-wm/spectrwm/spectrwm-3.1.0.ebuild b/x11-wm/spectrwm/spectrwm-3.1.0.ebuild
58 new file mode 100644
59 index 00000000000..01858fda384
60 --- /dev/null
61 +++ b/x11-wm/spectrwm/spectrwm-3.1.0.ebuild
62 @@ -0,0 +1,52 @@
63 +# Copyright 1999-2017 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=6
67 +
68 +inherit eutils multilib toolchain-funcs vcs-snapshot
69 +
70 +DESCRIPTION="Small dynamic tiling window manager for X11"
71 +HOMEPAGE="https://github.com/conformal/spectrwm"
72 +SRC_URI="https://github.com/conformal/${PN}/archive/SPECTRWM_${PV//./_}.tar.gz -> ${P}.tar.gz"
73 +
74 +LICENSE="ISC"
75 +SLOT="0"
76 +KEYWORDS="~amd64 ~x86"
77 +IUSE=""
78 +
79 +RDEPEND="x11-misc/dmenu"
80 +DEPEND="${DEPEND}
81 + x11-libs/libX11
82 + x11-libs/libXcursor
83 + x11-libs/libXrandr
84 + x11-libs/libXtst
85 + x11-libs/xcb-util
86 + !x11-wm/scrotwm"
87 +
88 +S=${WORKDIR}/${P}/linux
89 +
90 +PATCHES=( "${FILESDIR}"/${P}-Makefile.patch )
91 +
92 +src_prepare() {
93 + default
94 + tc-export CC
95 +}
96 +
97 +src_compile() {
98 + emake PREFIX="${EROOT}usr" LIBDIR="${EROOT}usr/$(get_libdir)"
99 +}
100 +
101 +src_install() {
102 + emake PREFIX="${EROOT}usr" LIBDIR="${EROOT}usr/$(get_libdir)" DESTDIR="${D}" install
103 +
104 + cd "${WORKDIR}"/${P} || die
105 +
106 + insinto /etc
107 + doins ${PN}.conf
108 + dodoc ${PN}_*.conf {initscreen,screenshot}.sh
109 +
110 + make_session_desktop ${PN} ${PN}
111 +
112 + elog "Example keyboard config and helpful scripts can be found"
113 + elog "in ${ROOT}usr/share/doc/${PF}"
114 +}