~ubuntu-branches/ubuntu/natty/sawfish/natty

« back to all changes in this revision

Viewing changes to sawfish.ebuild.in

  • Committer: Bazaar Package Importer
  • Author(s): Luis Rodrigo Gallardo Cruz
  • Date: 2009-11-23 09:05:20 UTC
  • mfrom: (1.2.10 upstream) (3.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091123090520-3u8sefrr4lmfsiem
Tags: 1:1.5.3-2
* Remove reference to sawMILL in 00debian.jl (Closes: #557250).
* Remove empty doc dirs and replace them with symlinks (Closes: #556991).
* Rename sawfish maintainer scripts with the binary package name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 1999-2008 Gentoo Foundation
 
2
# Distributed under the terms of the GNU General Public License v2
 
3
# $Header: /var/cvsroot/gentoo-x86/x11-wm/sawfish/sawfish-1.3.3.ebuild,v 1.7 2008/10/06 17:13:50 truedfx Exp $
 
4
 
 
5
inherit eutils
 
6
 
 
7
DESCRIPTION="Extensible window manager using a Lisp-based scripting language"
 
8
HOMEPAGE="http://sawfish.wikia.com/"
 
9
SRC_URI="mirror://sourceforge/sawmill/${P}.tar.gz"
 
10
 
 
11
LICENSE="GPL-2"
 
12
SLOT="0"
 
13
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
 
14
IUSE="gnome esd nls audiofile"
 
15
 
 
16
RDEPEND=">=x11-libs/rep-gtk-@REP_GTK_MIN_VER@
 
17
        >=dev-libs/librep-@REP_MIN_VER@
 
18
        >=x11-libs/gtk+-@GTK_MIN_VER@
 
19
        >=x11-libs/pango-@PANGO_MIN_VER@
 
20
        audiofile? ( >=media-libs/audiofile-@AUDIOFILE_MIN_VER@ )
 
21
        esd? ( >=media-sound/esound-@ESD_MIN_VER@ )
 
22
        nls? ( sys-devel/gettext )"
 
23
DEPEND="${RDEPEND}
 
24
        >=dev-util/pkgconfig-0.12.0"
 
25
 
 
26
src_unpack() {
 
27
        unpack ${A}
 
28
        cd "${S}"
 
29
}
 
30
 
 
31
src_compile() {
 
32
        # Make sure we include freetype2 headers before freetype1 headers,
 
33
        # else Xft2 borks, <azarah@gentoo.org> (13 Dec 2002)
 
34
        export C_INCLUDE_PATH="${C_INCLUDE_PATH}:/usr/include/freetype2"
 
35
        export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:/usr/include/freetype2"
 
36
 
 
37
        set -- \
 
38
                --with-gdk-pixbuf \
 
39
                $(use_with audiofile) \
 
40
                $(use_with esd) 
 
41
 
 
42
        if use gnome; then
 
43
                set -- "$@" \
 
44
                        --with-gnome-prefix=/usr \
 
45
                        --enable-gnome-widgets 
 
46
        else
 
47
                set -- "$@" \
 
48
                        --disable-gnome-widgets 
 
49
        fi
 
50
 
 
51
        if ! use nls; then
 
52
                set -- "$@" \
 
53
                        --disable-nls
 
54
 
 
55
        fi
 
56
 
 
57
        econf "$@" || die "configure failed"
 
58
 
 
59
        # The following two lines allow sawfish to compile with gcc 2.95
 
60
        # (see bug 18294)
 
61
        sed -i -e 's:REP_CFLAGS=:REP_CFLAGS=-I/usr/include/freetype2 :' Makedefs
 
62
 
 
63
        emake || die "make failed"
 
64
}
 
65
 
 
66
src_install() {
 
67
        emake DESTDIR="${D}" install || die "make install failed"
 
68
        dodoc AUTHORS ChangeLog FAQ NEWS README TODO OPTIONS README.IMPORTANT KEYBINDINGS USERDOC COPYING COPYING.SOUNDS
 
69
}