Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/sawfish/
Date: Wed, 19 Feb 2020 21:34:16
Message-Id: 1582148038.c84dce08114f127b2c42e29cac84a4a922ecd8b9.asturm@gentoo
1 commit: c84dce08114f127b2c42e29cac84a4a922ecd8b9
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 19 21:33:06 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 19 21:33:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84dce08
7
8 x11-wm/sawfish: Drop x11-libs/pangox-compat DEPEND, HOMEPAGE, https
9
10 Upstream commit 6d5640ecaa06948f3197b5d8cafb810cb3cf403c
11
12 Closes: https://bugs.gentoo.org/706342
13 Package-Manager: Portage-2.3.89, Repoman-2.3.20
14 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
15
16 x11-wm/sawfish/sawfish-1.12.0-r1.ebuild | 87 +++++++++++++++++++++++++++++++++
17 1 file changed, 87 insertions(+)
18
19 diff --git a/x11-wm/sawfish/sawfish-1.12.0-r1.ebuild b/x11-wm/sawfish/sawfish-1.12.0-r1.ebuild
20 new file mode 100644
21 index 00000000000..06915f975f0
22 --- /dev/null
23 +++ b/x11-wm/sawfish/sawfish-1.12.0-r1.ebuild
24 @@ -0,0 +1,87 @@
25 +# Copyright 1999-2020 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +MY_P="${P/-/_}"
31 +inherit eutils elisp-common
32 +
33 +DESCRIPTION="Extensible window manager using a Lisp-based scripting language"
34 +HOMEPAGE="https://sawfish.fandom.com/wiki/Main_Page"
35 +SRC_URI="https://download.tuxfamily.org/sawfish/${MY_P}.tar.xz"
36 +
37 +LICENSE="GPL-2 Artistic-2"
38 +SLOT="0"
39 +KEYWORDS="~alpha amd64 ia64 ppc ~ppc64 ~sh sparc x86"
40 +IUSE="emacs kde nls xinerama"
41 +
42 +RDEPEND="
43 + emacs? ( >=app-editors/emacs-23.1:* )
44 + >=dev-libs/librep-0.92.1
45 + >=x11-libs/rep-gtk-0.90.7
46 + x11-libs/gdk-pixbuf:2[X]
47 + >=x11-libs/gtk+-2.24.0:2
48 + x11-libs/libXtst
49 + kde? ( kde-frameworks/kdelibs4support )
50 + nls? ( sys-devel/gettext )
51 + xinerama? ( x11-libs/libXinerama )
52 +"
53 +DEPEND="${RDEPEND}
54 + virtual/pkgconfig
55 +"
56 +
57 +S="${WORKDIR}/${MY_P}"
58 +
59 +PATCHES=(
60 + # From Fedora
61 + "${FILESDIR}"/${P}-desktop.patch
62 +)
63 +
64 +DOCS=( AUTHORS ChangeLog CONTRIBUTING doc/AUTOSTART doc/KEYBINDINGS doc/OPTIONS doc/XSettings MAINTAINERS NEWS README README.IMPORTANT TODO )
65 +
66 +src_configure() {
67 + set -- \
68 + $(use_with kde kde5session) \
69 + $(use_with xinerama) \
70 + --with-gdk-pixbuf \
71 + --without-kde4session \
72 + --disable-static
73 +
74 + if ! use nls; then
75 + # Use a space because configure script reads --enable-linguas=""
76 + # as "install everything". Don't use --disable-linguas, because
77 + # that means --enable-linguas="no", which means "install
78 + # Norwegian translations".
79 + set -- "$@" --enable-linguas=" "
80 + elif [[ "${LINGUAS+set}" == "set" ]]; then
81 + strip-linguas -i po
82 + set -- "$@" --enable-linguas=" ${LINGUAS} "
83 + else
84 + set -- "$@" --enable-linguas=""
85 + fi
86 +
87 + econf "$@"
88 +}
89 +
90 +src_compile() {
91 + default
92 + use emacs && elisp-compile sawfish.el
93 +}
94 +
95 +src_install() {
96 + default
97 + find "${D}" -name '*.la' -delete || die
98 +
99 + if use emacs; then
100 + elisp-install ${PN} sawfish.{el,elc}
101 + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
102 + fi
103 +}
104 +
105 +pkg_postinst() {
106 + use emacs && elisp-site-regen
107 +}
108 +
109 +pkg_postrm() {
110 + use emacs && elisp-site-regen
111 +}