1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils elisp-common
9 DESCRIPTION="Extensible window manager using a Lisp-based scripting language"
10 HOMEPAGE="https://sawfish.fandom.com/wiki/Main_Page"
11 SRC_URI="https://download.tuxfamily.org/sawfish/${MY_P}.tar.xz"
13 LICENSE="GPL-2 Artistic-2"
15 KEYWORDS="~alpha amd64 ~ia64 ppc ~ppc64 sparc x86"
16 IUSE="emacs kde nls xinerama"
19 emacs? ( >=app-editors/emacs-23.1:* )
20 >=dev-libs/librep-0.92.1
21 >=x11-libs/rep-gtk-0.90.7
22 x11-libs/gdk-pixbuf:2[X]
23 >=x11-libs/gtk+-2.24.0:2
25 kde? ( kde-frameworks/kdelibs4support )
26 nls? ( sys-devel/gettext )
27 xinerama? ( x11-libs/libXinerama )
33 S="${WORKDIR}/${MY_P}"
37 "${FILESDIR}"/${PN}-1.12.0-desktop.patch
38 "${FILESDIR}"/${PN}-1.12.0-fno-common.patch
41 DOCS=( AUTHORS ChangeLog CONTRIBUTING doc/AUTOSTART doc/KEYBINDINGS doc/OPTIONS doc/XSettings MAINTAINERS NEWS README README.IMPORTANT TODO )
45 $(use_with kde kde5session) \
46 $(use_with xinerama) \
48 --without-kde4session \
52 # Use a space because configure script reads --enable-linguas=""
53 # as "install everything". Don't use --disable-linguas, because
54 # that means --enable-linguas="no", which means "install
55 # Norwegian translations".
56 set -- "$@" --enable-linguas=" "
57 elif [[ "${LINGUAS+set}" == "set" ]]; then
59 set -- "$@" --enable-linguas=" ${LINGUAS} "
61 set -- "$@" --enable-linguas=""
69 use emacs && elisp-compile sawfish.el
74 find "${D}" -name '*.la' -delete || die
77 elisp-install ${PN} sawfish.{el,elc}
78 elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
83 use emacs && elisp-site-regen
87 use emacs && elisp-site-regen