summaryrefslogtreecommitdiff
blob: 33eeea8d22b2f5262d48906777b72a6530614f30 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/gnome-apps/glade/glade-0.5.11.ebuild,v 1.1 2000/11/25 13:03:13 achim Exp $

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="glade"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/glade/"${A}
HOMEPAGE="http://www.gnome.org/"

DEPEND=">=x11-libs/gtk+-1.2.8
	gnome? ( >=gnome-base/gnome-libs-1.2.8
		 >=gnome-office/gnome-db-0.2.0 )"

src_compile() {                           
  cd ${S}
  local myopts
  if [ -n "`use gnome`" ]
  then
    echo "Using Gnome"
    myopts="--prefix=/opt/gnome --without-bonobo"
  else
    myopts="--prefix=/usr/X11R6 --disable-gnome"
  fi
  try ./configure --host=${CHOST} ${myopts}
  # bonobo support does not work with 0.28 requires around 0.18
  try make
}

src_install() {                               
  cd ${S}
  local myopts
  if [ -n "`use gnome`" ]
  then 
    try make prefix=${D}/opt/gnome install
  else
    try make prefix=${D}/usr/X11R6 install
  fi
  dodoc AUTHORS COPYING* FAQ NEWS
  dodoc README* TODO
}