Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/fvwm/
Date: Fri, 05 Aug 2022 04:46:53
Message-Id: 1659674738.097c6312d514925063d735759708726fb084854a.sam@gentoo
1 commit: 097c6312d514925063d735759708726fb084854a
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 5 04:45:38 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 5 04:45:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=097c6312
7
8 x11-wm/fvwm: install man pages; add Python dependency
9
10 - Install man pages (only needs libxslt which is pretty common (and Perl), so do it
11 unconditionally.)
12 - Add Python dep for fvwm-menu-desktop (and then pyxdg). Funnily enough,
13 hit this last night independently.
14
15 Closes: https://bugs.gentoo.org/832507
16 Closes: https://bugs.gentoo.org/710772
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18
19 x11-wm/fvwm/fvwm-2.6.9-r1.ebuild | 170 +++++++++++++++++++++++++++++++++++++++
20 1 file changed, 170 insertions(+)
21
22 diff --git a/x11-wm/fvwm/fvwm-2.6.9-r1.ebuild b/x11-wm/fvwm/fvwm-2.6.9-r1.ebuild
23 new file mode 100644
24 index 000000000000..78393f83efc9
25 --- /dev/null
26 +++ b/x11-wm/fvwm/fvwm-2.6.9-r1.ebuild
27 @@ -0,0 +1,170 @@
28 +# Copyright 1999-2022 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=7
32 +
33 +PYTHON_COMPAT=( python3_{8..10} )
34 +inherit autotools flag-o-matic python-single-r1 desktop
35 +
36 +DESCRIPTION="An extremely powerful ICCCM-compliant multiple virtual desktop window manager"
37 +HOMEPAGE="https://www.fvwm.org/"
38 +SRC_URI="https://github.com/fvwmorg/fvwm/releases/download/${PV}/${P}.tar.gz"
39 +
40 +LICENSE="GPL-2+ FVWM"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
43 +IUSE="bidi debug doc netpbm nls perl png readline rplay stroke svg tk truetype +vanilla xinerama lock"
44 + REQUIRED_USE="${PYTHON_REQUIRED_USE}"
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 + virtual/libiconv
61 + $(python_gen_cond_dep '
62 + dev-python/pyxdg[${PYTHON_USEDEP}]
63 + ')
64 + bidi? ( dev-libs/fribidi )
65 + nls? ( virtual/libintl )
66 + png? ( media-libs/libpng:0= )
67 + readline? (
68 + sys-libs/ncurses:0=
69 + sys-libs/readline:0=
70 + )
71 + stroke? ( dev-libs/libstroke )
72 + svg? ( gnome-base/librsvg )
73 + truetype? (
74 + media-libs/fontconfig
75 + x11-libs/libXft
76 + )
77 + xinerama? ( x11-libs/libXinerama )
78 +"
79 +RDEPEND="${COMMON_DEPEND}
80 + ${PYTHON_DEPS}
81 + dev-lang/perl
82 + sys-apps/debianutils
83 + perl? ( tk? (
84 + dev-lang/tk
85 + dev-perl/Tk
86 + >=dev-perl/X11-Protocol-0.56
87 + )
88 + )
89 + rplay? ( media-sound/rplay )
90 + lock? ( x11-misc/xlockmore )
91 + netpbm? ( media-libs/netpbm )
92 +"
93 +DEPEND="${COMMON_DEPEND}
94 + x11-base/xorg-proto
95 +"
96 +BDEPEND="
97 + dev-lang/perl
98 + dev-libs/libxslt
99 + virtual/pkgconfig
100 +"
101 +
102 +src_prepare() {
103 + if ! use vanilla; then
104 + # Enables fast translucent menus; patch from fvwm-user mailing list.
105 + eapply -p0 "${FILESDIR}/${PN}-2.5.27-translucent-menus.diff"
106 +
107 + # Allow more mouse buttons, bug #411811
108 + eapply -p0 "${FILESDIR}/${PN}-2.6.5-mouse-buttons.patch"
109 + fi
110 +
111 + eapply -p0 "${FILESDIR}/${PN}-2.6.5-ar.patch" #474528
112 +
113 + # Fix for Perl 5.28
114 + eapply -p0 "${FILESDIR}/${PN}-2.6.8-perl528.patch"
115 +
116 + default
117 + eautoreconf
118 +}
119 +
120 +src_configure() {
121 + local myeconfargs=(
122 + --libexecdir="${EPREFIX}"/usr/$(get_libdir)
123 + --with-imagepath=/usr/include/X11/bitmaps:/usr/include/X11/pixmaps:/usr/share/icons/fvwm
124 + --enable-iconv
125 + --enable-package-subdirs
126 + --enable-mandoc
127 + $(use_enable bidi)
128 + $(use_enable debug debug-msgs)
129 + $(use_enable debug command-log)
130 + $(use_enable doc htmldoc)
131 + $(use_enable nls)
132 + $(use_enable perl perllib)
133 + $(use_enable png)
134 + $(use_with readline readline-library)
135 + $(use_with rplay rplay-library)
136 + $(use_with stroke stroke-library)
137 + $(use_enable svg rsvg)
138 + $(use_enable truetype xft)
139 + $(use_enable xinerama)
140 + )
141 +
142 + # Non-upstream email where bugs should be sent; used in fvwm-bug.
143 + export FVWM_BUGADDR="maintainer-needed@g.o"
144 +
145 + # Recommended by upstream, reference ????
146 + append-flags -fno-strict-aliasing
147 +
148 + # Signed chars are required.
149 + use ppc && append-flags -fsigned-char
150 +
151 + use readline && myeconfargs+=( --without-termcap-library )
152 +
153 + export ac_cv_path_PYTHON="${PYTHON}"
154 +
155 + econf "${myeconfargs[@]}"
156 +}
157 +
158 +src_install() {
159 + default
160 + make_session_desktop fvwm /usr/bin/fvwm
161 +
162 + if ! use lock; then
163 + find "${D}" -name '*fvwm-menu-xlock' -exec rm -f '{}' \; 2>/dev/null
164 + fi
165 +
166 + if use perl; then
167 + if ! use tk; then
168 + rm "${D}"/usr/share/fvwm/perllib/FVWM/Module/Tk.pm || die
169 + rm "${D}"/usr/share/fvwm/perllib/FVWM/Module/Toolkit.pm || die
170 + find "${D}"/usr/share/fvwm/perllib -depth -type d -exec rmdir '{}' \; 2>/dev/null
171 + fi
172 + else
173 + # Completely wipe it if ! use perl
174 + rm -r "${D}"/usr/bin/fvwm-perllib "${D}"/usr/share/man/man1/fvwm-perllib.1
175 + fi
176 +
177 + # Utility for testing FVWM behaviour by creating a simple window with
178 + # configurable hints.
179 + if use debug; then
180 + dobin "${S}"/tests/hints/hints_test
181 + newdoc "${S}"/tests/hints/README README.hints
182 + fi
183 +
184 + dodir /etc/X11/Sessions
185 + echo "/usr/bin/fvwm" > "${D}"/etc/X11/Sessions/${PN} || die
186 + fperms a+x /etc/X11/Sessions/${PN}
187 +
188 + dodoc docs/{COMMANDS,DEVELOPERS.md}
189 +
190 + # README file for translucent menus patch.
191 + if ! use vanilla; then
192 + dodoc "${FILESDIR}"/README.translucency
193 + ewarn "You are using a patched build, so, please, don't"
194 + ewarn "report bugs at the fvwm-workers list unless you are"
195 + ewarn "also able to reproduce them with a vanilla build (USE=vanilla)."
196 + fi
197 +}