summaryrefslogtreecommitdiff
blob: e278ce5222177931403f22fd6bbb1822796dfbea (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/x11-wm/sawfish/sawfish-20020611-r1.ebuild,v 1.1 2002/06/20 00:47:29 azarah Exp $

# Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+
DEBUG="yes"
RESTRICT="nostrip"
# force debug information
CFLAGS="${CFLAGS} -g"
CXXFLAGS="${CXXFLAGS} -g"

MY_P=${PN}-2002-06-11

S=${WORKDIR}/${MY_P}
DESCRIPTION="Extensible window manager using a Lisp-based scripting language"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/pre-gnome2/sources/${PN}/${MY_P}.tar.bz2"
HOMEPAGE="http://sawmill.sourceforge.net/"

DEPEND=">=dev-util/pkgconfig-0.12.0
	>=x11-libs/rep-gtk-20020611
	>=dev-libs/librep-20020611
	>=media-libs/imlib-1.9.10-r1
	media-libs/audiofile
	esd? ( >=media-sound/esound-0.2.22 )
	readline? ( >=sys-libs/readline-4.1 )
	nls? ( sys-devel/gettext )"

src_compile() {
	local myconf=""
	myconf="${myconf} --with-gnome-prefix=/usr"
	myconf="${myconf} --enable-gnome-widgets "
	myconf="${myconf} --enable-capplet"
	myconf="${myconf} --enable-themer"
	myconf="${myconf} --with-audiofile"
	myconf="${myconf} --with-x"
	myconf="${myconf} --with-gdk-pixbuf"
		
	use esd && 	myconf="${myconf} --with-esd" ||myconf="${myconf} --without-esd"
	use readline && myconf="${myconf} --with-readline" || myconf="${myconf} --without-readline"
	use nls ||	myconf="${myconf} --disable-linguas"
	./configure --host=${CHOST} \
		--prefix=/usr  \
		--infodir=/usr/share/info \
		--libexecdir=/usr/lib \
		--with-audiofile ${myconf} || die
# This breaks this version for some reason.
#	mkdir ${S}/src/.libs
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die
	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

}