blob: 5f34b2440c0f34f619cc1876f0e9aedf8dbec45c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/icewm/icewm-1.2.23.ebuild,v 1.3 2005/10/22 05:20:12 morfic Exp $
inherit eutils
DESCRIPTION="Ice Window Manager with Themes"
HOMEPAGE="http://www.icewm.org/
http://sourceforge.net/projects/icewmsilverxp/"
#fix for icewm preversion package names
S=${WORKDIR}/${P/_}
SRC_URI="mirror://sourceforge/${PN}/${P/_}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ~sparc x86"
IUSE="esd gnome imlib nls spell truetype xinerama silverxp"
RDEPEND="virtual/x11
esd? ( media-sound/esound )
gnome? ( gnome-base/gnome-libs gnome-base/gnome-desktop dev-util/pkgconfig )
imlib? ( >=media-libs/imlib-1.9.10-r1 )
nls? ( sys-devel/gettext )
truetype? ( >=media-libs/freetype-2.0.9 )
media-fonts/artwiz-fonts
media-libs/giflib"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
cd ${S}/src
if use silverxp ; then
epatch ${FILESDIR}/${P/_}.ybutton.cc.patch
fi
echo "#!/bin/sh" > $T/icewm
echo "/usr/bin/icewm-session" >> $T/icewm
}
src_compile(){
if use truetype
then
myconf="${myconf} --enable-gradients --enable-shape --enable-movesize-fx --enable-shaped-decorations"
else
myconf="${myconf} --disable-xfreetype --enable-corefonts"
fi
CXXFLAGS="${CXXFLAGS}" econf \
--with-libdir=/usr/share/icewm \
--with-cfgdir=/etc/icewm \
--with-docdir=/usr/share/doc/${PF}/html \
$(use_with esd esd-config /usr/bin/esd-config) \
$(use_enable nls) \
$(use_enable nls i18n) \
$(use_with imlib) \
$(use_enable spell GtkSpell) \
$(use_enable x86 x86-asm) \
$(use_enable xinerama) \
$(use_enable gnome menus-gnome1) \
$(use_enable gnome menus-gnome2) \
${myconf} || die "configure failed"
sed -i "s:/icewm-\$(VERSION)::" src/Makefile || die "patch failed"
sed -i "s:ungif:gif:" src/Makefile || die "libungif fix failed"
emake || die "emake failed"
}
src_install(){
make DESTDIR=${D} install || die "make install failed"
dodoc AUTHORS BUGS CHANGES FAQ PLATFORMS README* TODO VERSION
dohtml -a html,sgml doc/*
exeinto /etc/X11/Sessions
doexe $T/icewm
insinto /usr/share/xsessions
doins ${FILESDIR}/IceWM.desktop
}
|