# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-www/galeon/galeon-1.2.6.ebuild,v 1.8 2003/02/13 15:33:38 vapier Exp $ IUSE="nls" S=${WORKDIR}/${P} DESCRIPTION="A GNOME Web browser based on gecko (mozilla's rendering engine)" SRC_URI="http://download.sourceforge.net/${PN}/${P}.tar.gz mirror://sourceforge/${PN}/${P}.tar.gz" HOMEPAGE="http://galeon.sourceforge.net" LICENSE="GPL-2" KEYWORDS="x86" SLOT="0" # This version of galeon supports multiple versions. We are allowing only # mozilla 1.1-r1 and 1.2a at this time. RDEPEND="~net-www/mozilla-1.0.1 >=gnome-base/gnome-libs-1.4.1.4 <=gnome-base/libglade-0.99.0 =gnome-base/gnome-vfs-1.0* =gnome-base/gconf-1.0* >=gnome-base/oaf-0.6.7 >=dev-libs/libxml-1.8.16 >=media-libs/gdk-pixbuf-0.16.0-r1 nls? ( sys-devel/gettext >=dev-util/intltool-0.11 )" # bonobo? ( >=gnome-base/bonobo-1.0.19-r1 ) DEPEND="${RDEPEND} app-text/scrollkeeper" pkg_setup() { if [ ! -f ${ROOT}/usr/lib/mozilla/components/libwidget_gtk.so ] then eerror eerror "It seems that your Mozilla was not compiled against gtk+-1.2," eerror "but rather gtk+-2.0. As Galeon does not support this setup yet," eerror "you will have to remerge Mozilla with gtk+-1.2 support. This" eerror "can be done by taking \"gtk2\" out of your USE flags:" eerror eerror " # USE="-gtk2" emerge mozilla " eerror die "Need Mozilla compiled with gtk+-1.2!!" fi } src_unpack () { unpack ${A} cd ${S} patch -p1 < ${FILESDIR}/galeon-1.2.6-to-printpreview.patch || die } src_compile() { local myconf="--with-mozilla-snapshot=1.0" use nls || myconf="${myconf} --disable-nls" # use bonobo && myconf="${myconf} --enable-gnome-file-selector" ./configure --host=${CHOST} \ --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --with-mozilla-libs=${MOZILLA_FIVE_HOME} \ --with-mozilla-includes=${MOZILLA_FIVE_HOME}/include \ --without-debug --disable-werror \ --disable-applet \ --disable-werror \ --disable-install-schemas \ --enable-nautilus-view=no \ ${myconf} || die emake || make || die } src_install() { # galeon-config-tool was rewritten for 1.2.0 and causes sandbox # violations if gconfd is shut down... The schemas seem to install # fine without it (at least it seems like it... *sigh*) #gconftool --shutdown make prefix=${D}/usr \ mandir=${D}/usr/share/man \ sysconfdir=${D}/etc \ localstatedir=${D}/var/lib \ install || die dodoc AUTHORS ChangeLog COPYING* FAQ NEWS README TODO THANKS } pkg_postinst() { galeon-config-tool --fix-gconf-permissions galeon-config-tool --pkg-install-schemas scrollkeeper-update if [ -z "`use gnome`" ] then einfo "Please make sure libglade was built with gnome support, or" einfo "else galeon will not be able to start up." einfo einfo 'To do this, type: ' einfo 'USE="gnome" emerge libglade' fi }