blob: 29528316152cf2aed25e1643362fbf2ae4044737 (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/x11-wm/sawfish/sawfish-1.0-r1.ebuild,v 1.1 2001/10/05 23:42:41 azarah Exp $
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Extensible window manager using a Lisp-based scripting language"
SRC_URI="http://prdownloads.sourceforge.net/sawmill/"${A}
HOMEPAGE="http://sawmill.sourceforge.net/"
DEPEND=">=dev-libs/rep-gtk-0.15-r1
>=dev-libs/librep-0.14
>=media-libs/imlib-1.9.10-r1
esd? ( >=media-sound/esound-0.2.22 )
readline? ( >=sys-libs/readline-4.1 )
nls? ( sys-devel/gettext )
gnome? ( >=media-libs/gdk-pixbuf-0.11.0-r1
>=gnome-base/gnome-core-1.4.0.4-r1 )"
RDEPEND=">=dev-libs/rep-gtk-0.15-r1
>=dev-libs/librep-0.14
>=x11-libs/gtk+-1.2.10-r4
>=media-libs/imlib-1.9.10-r1
esd? ( >=media-sound/esound-0.2.22 )
gnome? ( >=media-libs/gdk-pixbuf-0.11.0-r1
>=gnome-base/gnome-core-1.4.0.4-r1 )"
src_unpack() {
unpack ${A}
cd ${S}/po
cp zh_TW.Big5.po zh_TW.Big5.po.orig
sed -e "s:\\\::g" zh_TW.Big5.po.orig > zh_TW.Big5.po
rm zh_TW.Big5.po.orig
}
src_compile() {
local myconf
if [ "`use esd`" ]
then
myconf="--with-esd"
else
myconf="--without-esd"
fi
if [ "`use gnome`" ]
then
myconf="${myconf} --with-gnome-prefix=/usr --enable-gnome-widgets --enable-capplet"
else
myconf="${myconf} --disable-gnome-widgets --disable-capplet --without-gdk-pixbuf"
fi
if [ "`use readline`" ]
then
myconf="${myconf} --with-readline"
else
myconf="${myconf} --without-readline"
fi
if [ -z "`use nls`" ]
then
myconf="${myconf} --disable-linguas"
fi
try ./configure --host=${CHOST} --prefix=/usr --infodir=/usr/share/info --libexecdir=/usr/lib --with-audiofile ${myconf}
#pmake doesn't work, stick with make
try make
}
src_install() {
try make DESTDIR=${D} install
dodoc AUTHORS BUGS COPYING ChangeLog DOC FAQ NEWS README THANKS TODO
# Add to Gnome CC's Window Manager list
insinto /usr/share/gnome/wm-properties
doins ${FILESDIR}/Sawfish.desktop
}
|