Gentoo Archives: gentoo-commits

From: Maxim Koltsov <maksbotan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/awesome/
Date: Sun, 25 Mar 2018 22:04:43
Message-Id: 1522015465.0a5197761857d97984d472ac3df6f81a9d3d450d.maksbotan@gentoo
1 commit: 0a5197761857d97984d472ac3df6f81a9d3d450d
2 Author: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 25 22:02:54 2018 +0000
4 Commit: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 25 22:04:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a519776
7
8 x11-wm/awesome: several improvements in 4.x branch
9
10 - Add luajit to RDEPEND and DEPEND
11 - Fix documentation installation paths (bug 628024)
12 - Add xvfb-based test suite
13 - Re-add dropeed x86-fbsd keyword
14
15 Bug: https://bugs.gentoo.org/638140
16 Closes: https://bugs.gentoo.org/628024
17 Package-Manager: Portage-2.3.24, Repoman-2.3.6
18
19 x11-wm/awesome/awesome-4.2-r2.ebuild | 144 +++++++++++++++++++++++++++++++++++
20 1 file changed, 144 insertions(+)
21
22 diff --git a/x11-wm/awesome/awesome-4.2-r2.ebuild b/x11-wm/awesome/awesome-4.2-r2.ebuild
23 new file mode 100644
24 index 00000000000..0a12509b3fc
25 --- /dev/null
26 +++ b/x11-wm/awesome/awesome-4.2-r2.ebuild
27 @@ -0,0 +1,144 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +
33 +inherit cmake-utils eutils pax-utils versionator
34 +
35 +DESCRIPTION="A dynamic floating and tiling window manager"
36 +HOMEPAGE="https://awesomewm.org/"
37 +SRC_URI="https://github.com/awesomeWM/awesome-releases/raw/master/${P}.tar.xz"
38 +
39 +LICENSE="GPL-2"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
42 +IUSE="dbus doc elibc_FreeBSD gnome luajit test"
43 +
44 +RDEPEND="
45 + >=dev-lang/lua-5.1:0
46 + luajit? ( dev-lang/luajit:2 )
47 + dev-libs/glib:2
48 + >=dev-libs/libxdg-basedir-1
49 + >=dev-lua/lgi-0.8
50 + x11-libs/cairo[xcb]
51 + x11-libs/gdk-pixbuf:2
52 + >=x11-libs/libxcb-1.6[xkb]
53 + >=x11-libs/pango-1.19.3[introspection]
54 + >=x11-libs/startup-notification-0.10_p20110426
55 + >=x11-libs/xcb-util-0.3.8
56 + x11-libs/xcb-util-cursor
57 + >=x11-libs/xcb-util-keysyms-0.3.4
58 + >=x11-libs/xcb-util-wm-0.3.8
59 + >=x11-libs/xcb-util-xrm-1.0
60 + x11-libs/libXcursor
61 + x11-libs/libxkbcommon[X]
62 + >=x11-libs/libX11-1.3.99.901
63 + dbus? ( >=sys-apps/dbus-1 )
64 + elibc_FreeBSD? ( || ( dev-libs/libexecinfo >=sys-freebsd/freebsd-lib-10.0 ) )
65 +"
66 +
67 +# graphicsmagick's 'convert -channel' has no Alpha support, bug #352282
68 +DEPEND="${RDEPEND}
69 + >=app-text/asciidoc-8.4.5
70 + app-text/xmlto
71 + dev-util/gperf
72 + virtual/pkgconfig
73 + media-gfx/imagemagick[png]
74 + >=x11-proto/xcb-proto-1.5
75 + >=x11-proto/xproto-7.0.15
76 + doc? ( dev-lua/ldoc )
77 + test? (
78 + app-shells/zsh
79 + x11-base/xorg-server[xvfb]
80 + )
81 +"
82 +# Uncomment when these are keyworded on ppc/ppc64 (automagic deps)
83 +# dev-lua/busted
84 +# dev-lua/luacheck
85 +# )
86 +#"
87 +
88 +# Skip installation of README.md by einstalldocs, which leads to broken symlink
89 +DOCS=()
90 +PATCHES=(
91 + "${FILESDIR}/${PN}-4.0-convert-path.patch" # bug #408025
92 + "${FILESDIR}/${PN}-xsession.patch" # bug #408025
93 + "${FILESDIR}/${PN}-4.0-cflag-cleanup.patch" # bug #509658
94 +)
95 +
96 +src_configure() {
97 + # Compression of manpages is handled by portage
98 + local mycmakeargs=(
99 + -DSYSCONFDIR="${EPREFIX}"/etc
100 + -DCOMPRESS_MANPAGES=OFF
101 + -DWITH_DBUS=$(usex dbus)
102 + -DGENERATE_DOC=$(usex doc)
103 + -DAWESOME_DOC_PATH="${EPREFIX}"/usr/share/doc/${PF}
104 + )
105 + if use luajit; then
106 + mycmakeargs+=("-DLUA_INCLUDE_DIR=${EPREFIX}/usr/include/luajit-2.0")
107 + mycmakeargs+=("-DLUA_LIBRARY=${EPREFIX}/usr/$(get_libdir)/libluajit-5.1.so")
108 + fi
109 + cmake-utils_src_configure
110 +}
111 +
112 +src_test() {
113 + # awesome's test suite starts Xvfb by itself, no need for virtualx eclass
114 + HEADLESS=1 cmake-utils_src_make check -j1
115 +}
116 +
117 +src_install() {
118 + cmake-utils_src_install
119 + rm "${ED}"/usr/share/doc/${PF}/LICENSE || die
120 +
121 + pax-mark m "${ED%/}"/usr/bin/awesome
122 +
123 + exeinto /etc/X11/Sessions
124 + newexe "${FILESDIR}"/${PN}-session ${PN}
125 +
126 + # GNOME-based awesome
127 + if use gnome; then
128 + # GNOME session
129 + insinto /usr/share/gnome-session/sessions
130 + newins "${FILESDIR}"/${PN}-gnome-3.session ${PN}-gnome.session
131 +
132 + # Application launcher
133 + domenu "${FILESDIR}"/${PN}-gnome.desktop
134 +
135 + # X Session
136 + insinto /usr/share/xsessions
137 + doins "${FILESDIR}"/${PN}-gnome-xsession.desktop
138 + fi
139 +
140 + # This directory contains SVG images which we don't want to compress
141 + use doc && touch "${ED}"/usr/share/doc/${PF}/doc/images.ecompress.skip
142 +}
143 +
144 +pkg_postinst() {
145 + # bug #447308
146 + if use gnome; then
147 + elog "You have enabled the gnome USE flag."
148 + elog "Please note that quitting awesome won't kill your gnome session."
149 + elog "To really quit the session, you should bind your quit key"
150 + elog "to the following command:"
151 + elog " gnome-session-quit --logout"
152 + elog "For more info visit"
153 + elog " https://bugs.gentoo.org/show_bug.cgi?id=447308"
154 + fi
155 +
156 + # bug #440724
157 + elog "If you are having issues with Java application windows being"
158 + elog "completely blank, try installing"
159 + elog " x11-misc/wmname"
160 + elog "and setting the WM name to LG3D."
161 + elog "For more info visit"
162 + elog " https://bugs.gentoo.org/show_bug.cgi?id=440724"
163 +
164 + for v in ${REPLACING_VERSIONS}; do
165 + if [ "$(get_major_version ${v})" = "3" ]; then
166 + elog "Awesome-4 introduced breaking changes. For release notes and porting guide see"
167 + elog "https://awesomewm.org/apidoc/documentation/89-NEWS.md.html#v4 and"
168 + elog "https://awesomewm.org/apidoc/documentation/17-porting-tips.md.html#v4"
169 + fi
170 + done
171 +}