Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/fvwm/
Date: Fri, 28 Sep 2018 17:34:22
Message-Id: 1538155862.9445bcf71684247be699b2d5db15104be71434b1.radhermit@gentoo
1 commit: 9445bcf71684247be699b2d5db15104be71434b1
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 23 07:18:19 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 28 17:31:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9445bcf7
7
8 x11-wm/fvwm: version bump to 2.6.8
9
10 Closes: https://bugs.gentoo.org/533258
11 Closes: https://bugs.gentoo.org/599144
12
13 x11-wm/fvwm/Manifest | 1 +
14 x11-wm/fvwm/fvwm-2.6.8.ebuild | 152 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 153 insertions(+)
16
17 diff --git a/x11-wm/fvwm/Manifest b/x11-wm/fvwm/Manifest
18 index 3194070dd3a..b47c86a5781 100644
19 --- a/x11-wm/fvwm/Manifest
20 +++ b/x11-wm/fvwm/Manifest
21 @@ -1 +1,2 @@
22 DIST fvwm-2.6.5.tar.bz2 2582655 BLAKE2B 02c6f3124c0bb2ffe5dd25c218e4137977030ee6e96c7d20517e10dc93b85b295d941c700786f53231045b1b76e6d069b0387942ccf55b8543b0efe9ae303520 SHA512 a1b8cf5a5124b939441834a2fb44c885c579939e4099cf2c8178ea2c4261258df4e565068593699f9446e363135a2666c9288c1bce551a6cf5c6c79287104698
23 +DIST fvwm-2.6.8.tar.gz 3915662 BLAKE2B 0b71182c5c0b5a07314fde8a673efe46712b92484e1164cd6357ad2e36e557dd822bf6c25d201092953ec10200bb0f93846af6cde0d701c65c81a4086de64652 SHA512 12e0def0a1d565c1c44356b48b4e516b7be4f51f13f91d9f8b89364ae106f6d7773e12fd17c71b6f0569c64fb3a5374c036c118cb76f739a63b1e17b5dfba287
24
25 diff --git a/x11-wm/fvwm/fvwm-2.6.8.ebuild b/x11-wm/fvwm/fvwm-2.6.8.ebuild
26 new file mode 100644
27 index 00000000000..b6a281cf445
28 --- /dev/null
29 +++ b/x11-wm/fvwm/fvwm-2.6.8.ebuild
30 @@ -0,0 +1,152 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +inherit autotools flag-o-matic desktop
36 +
37 +DESCRIPTION="An extremely powerful ICCCM-compliant multiple virtual desktop window manager"
38 +HOMEPAGE="http://www.fvwm.org/"
39 +SRC_URI="https://github.com/fvwmorg/fvwm/releases/download/${PV}/${P}.tar.gz"
40 +
41 +LICENSE="GPL-2 FVWM"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
44 +IUSE="bidi debug doc netpbm nls perl png readline rplay stroke svg tk truetype +vanilla xinerama lock"
45 +
46 +COMMON_DEPEND="
47 + sys-libs/zlib
48 + x11-libs/libICE
49 + x11-libs/libSM
50 + x11-libs/libX11
51 + x11-libs/libXau
52 + x11-libs/libxcb
53 + x11-libs/libXcursor
54 + x11-libs/libXdmcp
55 + x11-libs/libXext
56 + x11-libs/libXfixes
57 + x11-libs/libXpm
58 + x11-libs/libXrandr
59 + x11-libs/libXrender
60 + bidi? ( dev-libs/fribidi )
61 + png? ( media-libs/libpng:0= )
62 + readline? (
63 + sys-libs/ncurses:0=
64 + sys-libs/readline:0=
65 + )
66 + stroke? ( dev-libs/libstroke )
67 + svg? ( gnome-base/librsvg )
68 + truetype? (
69 + media-libs/fontconfig
70 + x11-libs/libXft
71 + )
72 + xinerama? ( x11-libs/libXinerama )
73 +"
74 +RDEPEND="${COMMON_DEPEND}
75 + dev-lang/perl
76 + perl? ( tk? (
77 + dev-lang/tk
78 + dev-perl/Tk
79 + >=dev-perl/X11-Protocol-0.56
80 + )
81 + )
82 + rplay? ( media-sound/rplay )
83 + lock? ( x11-misc/xlockmore )
84 + userland_GNU? ( sys-apps/debianutils )
85 + !x86-fbsd? ( netpbm? ( media-libs/netpbm ) )
86 +"
87 +DEPEND="${COMMON_DEPEND}
88 + virtual/pkgconfig
89 + x11-base/xorg-proto
90 + doc? ( dev-libs/libxslt )
91 +"
92 +
93 +src_prepare() {
94 + if ! use vanilla; then
95 + # Enables fast translucent menus; patch from fvwm-user mailing list.
96 + eapply -p0 "${FILESDIR}/${PN}-2.5.27-translucent-menus.diff"
97 +
98 + # Allow more mouse buttons, bug #411811
99 + eapply -p0 "${FILESDIR}/${PN}-2.6.5-mouse-buttons.patch"
100 + fi
101 +
102 + eapply -p0 "${FILESDIR}/${PN}-2.6.5-ar.patch" #474528
103 + eapply_user
104 + eautoreconf
105 +}
106 +
107 +src_configure() {
108 + local myeconfargs=(
109 + --libexecdir="${EPREFIX}"/usr/$(get_libdir)
110 + --with-imagepath=/usr/include/X11/bitmaps:/usr/include/X11/pixmaps:/usr/share/icons/fvwm
111 + --enable-package-subdirs
112 + --docdir="/usr/share/doc/${P}"
113 + $(use_enable bidi)
114 + $(use_enable debug debug-msgs)
115 + $(use_enable debug command-log)
116 + $(use_enable doc htmldoc)
117 + $(use_enable nls)
118 + $(use_enable nls iconv)
119 + $(use_enable perl perllib)
120 + $(use_enable png)
121 + $(use_with readline readline-library)
122 + $(use_with rplay rplay-library)
123 + $(use_with stroke stroke-library)
124 + $(use_enable svg rsvg)
125 + $(use_enable truetype xft)
126 + $(use_enable xinerama)
127 + )
128 +
129 + # Non-upstream email where bugs should be sent; used in fvwm-bug.
130 + export FVWM_BUGADDR="desktop-wm@g.o"
131 +
132 + # Recommended by upstream.
133 + append-flags -fno-strict-aliasing
134 +
135 + # Signed chars are required.
136 + use ppc && append-flags -fsigned-char
137 +
138 + use readline && myeconfargs+=( --without-termcap-library )
139 +
140 + econf "${myeconfargs[@]}"
141 +}
142 +
143 +src_install() {
144 + default
145 + make_session_desktop fvwm /usr/bin/fvwm
146 +
147 + if ! use lock; then
148 + find "${D}" -name '*fvwm-menu-xlock' -exec rm -f '{}' \; 2>/dev/null
149 + fi
150 +
151 + if use perl; then
152 + if ! use tk; then
153 + rm "${D}"/usr/share/fvwm/perllib/FVWM/Module/Tk.pm || die
154 + rm "${D}"/usr/share/fvwm/perllib/FVWM/Module/Toolkit.pm || die
155 + find "${D}"/usr/share/fvwm/perllib -depth -type d -exec rmdir '{}' \; 2>/dev/null
156 + fi
157 + else
158 + # Completely wipe it if ! use perl
159 + rm -r "${D}"/usr/bin/fvwm-perllib "${D}"/usr/share/man/man1/fvwm-perllib.1
160 + fi
161 +
162 + # Utility for testing FVWM behaviour by creating a simple window with
163 + # configurable hints.
164 + if use debug; then
165 + dobin "${S}"/tests/hints/hints_test
166 + newdoc "${S}"/tests/hints/README README.hints
167 + fi
168 +
169 + dodir /etc/X11/Sessions
170 + echo "/usr/bin/fvwm" > "${D}"/etc/X11/Sessions/${PN} || die
171 + fperms a+x /etc/X11/Sessions/${PN} || die
172 +
173 + dodoc docs/{COMMANDS,DEVELOPERS.md}
174 +
175 + # README file for translucent menus patch.
176 + if ! use vanilla; then
177 + dodoc "${FILESDIR}"/README.translucency
178 + ewarn "You are using a patched build, so, please, don't"
179 + ewarn "report bugs at the fvwm-workers list unless you are"
180 + ewarn "also able to reproduce them with a vanilla build (USE=vanilla)."
181 + fi
182 +}