1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="The fast and light GNUstep window manager"
9 HOMEPAGE="http://www.windowmaker.org/"
10 SRC_URI="http://www.windowmaker.org/pub/source/release/WindowMaker-extra-0.1.tar.gz"
11 EGIT_REPO_URI="git://repo.or.cz/wmaker-crm.git"
16 IUSE="gif imagemagick jpeg modelock nls png tiff webp xinerama +xpm xrandr"
19 DEPEND="media-libs/fontconfig
20 >=x11-libs/libXft-2.1.0
25 gif? ( >=media-libs/giflib-4.1.0-r3 )
26 imagemagick? ( media-gfx/imagemagick )
27 jpeg? ( virtual/jpeg:0= )
28 png? ( media-libs/libpng:0= )
29 tiff? ( media-libs/tiff:0 )
30 webp? ( media-libs/libwebp )
31 xinerama? ( x11-libs/libXinerama )
32 xrandr? ( x11-libs/libXrandr )"
34 nls? ( >=sys-devel/gettext-0.10.39 )
35 !app-i18n/scim-anthy[gtk3]"
46 for file in WindowMaker/*menu* util/wmgenmenu.c; do
47 if [[ -r $file ]] ; then
48 sed -i -e "s:/usr/local/GNUstep/Applications/WPrefs.app:${EPREFIX}/usr/bin/:g;" "$file" || die
49 sed -i -e "s:/usr/local/share/WindowMaker:${EPREFIX}/usr/share/WindowMaker:g;" "$file" || die
50 sed -i -e "s:/opt/share/WindowMaker:${EPREFIX}/usr/share/WindowMaker:g;" "$file" || die
59 myconf="$(use_enable imagemagick magick) $(use_enable jpeg) $(use_enable gif) $(use_enable png) $(use_enable tiff) $(use_enable webp) $(use_enable xpm)"
61 # non required X capabilities
62 myconf="${myconf} $(use_enable modelock) $(use_enable xrandr randr) $(use_enable xinerama)"
65 [[ -z $LINGUAS ]] && export LINGUAS="$(ls po/*.po | sed 's:po/\(.*\)\.po$:\1:' | xargs)"
67 myconf="${myconf} --disable-locale"
70 # default settings with $myconf appended
72 --sysconfdir="${EPREFIX}"/etc/X11 \
75 --with-pixmapdir="${EPREFIX}"/usr/share/pixmaps \
76 --localedir="${EPREFIX}"/usr/share/locale \
79 cd ../WindowMaker-extra-0.1
86 # WindowMaker Extra Package (themes and icons)
87 cd ../WindowMaker-extra-0.1
92 emake DESTDIR="${D}" install
94 dodoc AUTHORS BUGFORM BUGS ChangeLog INSTALL* FAQ* \
98 cd ../WindowMaker-extra-0.1
99 emake DESTDIR="${D}" install
101 newdoc README README.extra
103 # create wmaker session shell script
104 echo "#!/usr/bin/env bash" > wmaker
105 echo "${EPREFIX}/usr/bin/wmaker" >> wmaker
106 exeinto /etc/X11/Sessions/
109 insinto /usr/share/xsessions
110 doins "${FILESDIR}"/wmaker.desktop
111 make_desktop_entry /usr/bin/wmaker