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