1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools unpacker
8 DESCRIPTION="Ice Window Manager with Themes"
9 HOMEPAGE="https://ice-wm.org/ https://github.com/ice-wm/icewm"
11 SRC_URI="https://github.com/ice-wm/icewm/releases/download/${PV}/${P}.tar.lz"
14 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
15 IUSE="+alsa ao bidi debug +gdk-pixbuf nls truetype uclibc xinerama"
17 # Tests broken in all versions, patches welcome, bug #323907, #389533
20 REQUIRED_USE="|| ( alsa ao )"
22 #fix for icewm preversion package names
25 # These are the core dependencies of icewm.
26 # Look into configure.ac and search for PKG_CHECK_MODULES([CORE]
30 x11-libs/libXcomposite
46 media-libs/libsndfile[alsa]
52 bidi? ( dev-libs/fribidi )
54 x11-libs/gdk-pixbuf:2[X]
60 xinerama? ( x11-libs/libXinerama )
64 $(unpacker_src_uri_depends)
68 gdk-pixbuf? ( gnome-base/librsvg:2 )
74 nls? ( >=sys-devel/gettext-0.19.6 )
78 # Fix bug #486710 - TODO: Still needed?
79 #use uclibc && PATCHES+=( "${FILESDIR}/${PN}-1.3.8-uclibc.patch" )
87 if use alsa && use ao ; then
98 --with-cfgdir=/etc/icewm
99 --with-docdir=/usr/share/doc/${PF}/html
100 --with-icesound="${icesound}"
101 --with-libdir=/usr/share/icewm
102 $(use_enable bidi fribidi)
104 $(use_enable gdk-pixbuf)
105 $(use_enable nls i18n)
107 $(use_enable xinerama)
109 if use truetype ; then
122 sed -i "s:/icewm-\$(VERSION)::" src/Makefile || die
123 sed -i "s:ungif:gif:" src/Makefile || die "libungif fix failed"
127 local DOCS=( AUTHORS ChangeLog NEWS README.md TODO VERSION )
135 exeinto /etc/X11/Sessions
136 doexe "${FILESDIR}/icewm"